Instruction transmission method and device, storage medium and program product

The transmission of instructions in vehicle usage scenarios through Bluetooth broadcasting solves the problem that the car key cannot establish a connection with the vehicle, realizes the successful transmission and secure transmission of instructions, and improves the user experience.

CN119255232APending Publication Date: 2025-01-03XIAOMI EV TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411775485.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In vehicle usage scenarios, it is difficult for the car key to send control instructions to the vehicle, resulting in a decrease in user experience, especially when Bluetooth connection fails or the number of devices reaches a threshold.

Method used

When Bluetooth broadcasting is not established with the receiver, the target instruction is sent, including encrypting and segmenting the instructions, encrypting and decrypting using preset keys and scrolling codes, and associating the broadcast frames according to the identifier at the receiver end. to restore the command.

Benefits of technology

The command transmission is realized when the Bluetooth connection fails or the number of devices reaches the threshold, which improves the success rate of command transmission, reduces costs, and improves the security and speed of transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255232A_ABST
    Figure CN119255232A_ABST
Patent Text Reader

Abstract

The invention relates to an instruction transmission method and device, a storage medium and a program product, and belongs to the technical field of intelligent network connection.The method comprises the steps that a target instruction for a receiving end is determined; and under the condition that the Bluetooth connection with the receiving end is not established, sending the target instruction to the receiving end through Bluetooth broadcast. Thus, when the instruction is transmitted, the sending end does not need to establish Bluetooth connection with the receiving end, and the instruction can be sent to the receiving end in a Bluetooth broadcast mode. Therefore, in the scene of Bluetooth connection failure, the scheme can also realize instruction transmission, and the success rate of instruction transmission can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent network connection technology, and in particular to an instruction transmission method, device, storage medium and program product. Background Art

[0002] In vehicle use scenarios, control instructions can be sent to the vehicle through the car key. For example, the car key can establish a Bluetooth connection with the vehicle and send relevant control instructions to the vehicle through the established Bluetooth connection. However, in some scenarios, the car key may have difficulty sending the control instructions to the vehicle, resulting in a reduced user experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides an instruction transmission method, device, storage medium and program product.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a method for transmitting an instruction, the method comprising: Determine target instructions for the receiving end; In the case where a Bluetooth connection is not established with the receiving end, the target instruction is sent to the receiving end via Bluetooth broadcast.

[0005] Optionally, the sending the target instruction to the receiving end through Bluetooth broadcasting includes: Encrypting the target instruction to obtain an encrypted instruction, wherein the encrypted instruction includes at least one broadcast frame, and the broadcast frame includes a first identifier, and the first identifier is used by the receiving end to associate the at least one broadcast frame to obtain the encrypted instruction; The at least one broadcast frame is sent to the receiving end via Bluetooth broadcast.

[0006] Optionally, encrypting the target instruction to obtain an encrypted instruction includes: Determine the key used when establishing a Bluetooth connection with the receiving end last time, and obtain a first key; The target instruction is encrypted using the first key to obtain the encrypted instruction.

[0007] Optionally, the sending end and the receiving end are preset with multiple groups of keys, and the encrypting the target instruction to obtain the encrypted instruction includes: Determine a set of keys from a plurality of preset sets of keys to obtain a second key; Encrypting the target instruction by using the second key to obtain an encryption result; The encryption instruction is generated according to the encryption result and the second identifier of the second key, wherein one or more of the broadcast frames in the encryption instruction include the second identifier, and the second identifier is used by the receiving end to determine the second key used by the encryption instruction from the multiple groups of keys.

[0008] Optionally, determining a group of keys from a plurality of preset groups of keys to obtain the second key includes: Determine the current rolling code and obtain the first rolling code; Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The second identifier includes the first rolling code.

[0009] Optionally, the sending the at least one broadcast frame to the receiving end through Bluetooth broadcasting includes: For a currently selected broadcast frame, broadcast the broadcast frame at least once; A new broadcast frame is selected from unsent broadcast frames in the at least one broadcast frame.

[0010] Optionally, sending the target instruction to the receiving end through Bluetooth broadcasting without establishing a Bluetooth connection with the receiving end includes: In case the Bluetooth connection with the receiving end fails, sending the target instruction to the receiving end via Bluetooth broadcast; or, When it is determined that the number of Bluetooth devices connected to the receiving end reaches a number threshold, stop establishing a Bluetooth connection with the receiving end, and send the target instruction to the receiving end via Bluetooth broadcast; or When the Bluetooth connection with the receiving end fails and it is determined that the number of Bluetooth devices connected to the receiving end reaches a quantity threshold, the Bluetooth connection with the receiving end is stopped, and the target instruction is sent to the receiving end via Bluetooth broadcast.

[0011] According to a second aspect of an embodiment of the present disclosure, there is provided an instruction transmission method, the method comprising: Receive the target command sent by the sender via Bluetooth broadcast; Wherein, when no Bluetooth connection is established with the sending end, the sending end sends the target instruction via Bluetooth broadcast.

[0012] Optionally, the receiving end sends a target instruction via Bluetooth broadcast, including: Receiving at least one broadcast frame sent by the transmitting end through Bluetooth broadcasting, wherein the at least one broadcast frame is obtained by the transmitting end encrypting the target instruction, and the broadcast frame includes a first identifier; Associating the at least one broadcast frame according to the first identifier in the broadcast frame to obtain an encryption instruction; The encrypted instruction is decrypted to obtain the target instruction.

[0013] Optionally, the encrypted instruction is obtained by encrypting with a first key, where the first key is a key determined by the sending end and used when the sending end established a Bluetooth connection with the receiving end last time, and decrypting the encrypted instruction includes: Determine the key used when establishing a Bluetooth connection with the transmitting end last time; The encrypted instruction is decrypted using the determined key.

[0014] Optionally, the sending end is preset with multiple groups of keys, the encryption instruction is obtained by encrypting a second key in the multiple groups of keys, the multiple broadcast frames are generated by the sending end according to the encryption result of the second key and the second identifier of the second key, one or more of the broadcast frames include the second identifier, and the at least one broadcast frame is associated according to the first identifier in the broadcast frame to obtain the encryption instruction, including: Associating the at least one broadcast frame according to the first identifier in the broadcast frame to obtain the encryption instruction and the second identifier; The decrypting the encrypted instruction comprises: Determining, according to the second identifier, a second key used by the encryption instruction from a plurality of preset groups of keys; The encrypted instruction is decrypted using the second key.

[0015] Optionally, the second identifier includes a first rolling code, and determining, according to the second identifier, a second key used by the encryption instruction from a plurality of preset key groups includes: Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The decrypting the encrypted instruction by using the second key includes: Determine the rolling code used by the sending end when transmitting the instruction last time, and obtain a second rolling code; When the first rolling code is greater than the second rolling code, the encrypted instruction is decrypted by using the second key.

[0016] According to a third aspect of an embodiment of the present disclosure, there is provided an instruction transmission device, the instruction transmission device comprising: A first module is configured to determine a target instruction for a receiving end; The second module is configured to send the target instruction to the receiving end via Bluetooth broadcast without establishing a Bluetooth connection with the receiving end.

[0017] Optionally, the second module includes: A first submodule encrypts the target instruction to obtain an encrypted instruction, wherein the encrypted instruction includes at least one broadcast frame, and the broadcast frame includes a first identifier, and the first identifier is used by the receiving end to associate the at least one broadcast frame to obtain the encrypted instruction; The third submodule is configured to send the at least one broadcast frame to the receiving end via Bluetooth broadcast.

[0018] Optionally, the first submodule includes: A first subunit is configured to determine a key used when a Bluetooth connection was previously established with the receiving end, and obtain a first key; The second subunit is configured to encrypt the target instruction by using the first key to obtain the encrypted instruction.

[0019] Optionally, the first submodule includes: The third subunit is configured to determine a set of keys from a plurality of preset sets of keys to obtain a second key; a fourth subunit, configured to encrypt the target instruction by using the second key to obtain an encryption result; The fifth subunit is configured to generate the encryption instruction based on the encryption result and the second identifier of the second key, wherein one or more of the broadcast frames in the encryption instruction include the second identifier, and the second identifier is used by the receiving end to determine the second key used by the encryption instruction from the multiple groups of keys.

[0020] Optionally, the third subunit is configured as: Determine the current rolling code and obtain the first rolling code; Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The second identifier includes the first rolling code.

[0021] Optionally, the third submodule includes: a sixth subunit, configured to broadcast the currently selected broadcast frame at least once; The seventh subunit is configured to select a new broadcast frame from the unsent broadcast frames in the at least one broadcast frame.

[0022] Optionally, the second module includes: The fourth submodule is configured to send the target instruction to the receiving end via Bluetooth broadcast when the Bluetooth connection with the receiving end fails; or a fifth submodule, configured to stop establishing a Bluetooth connection with the receiving end and send the target instruction to the receiving end via Bluetooth broadcast when it is determined that the number of Bluetooth devices connected to the receiving end reaches a number threshold; or The sixth submodule is configured to stop establishing a Bluetooth connection with the receiving end and send the target instruction to the receiving end via Bluetooth broadcast when the Bluetooth connection with the receiving end fails and it is determined that the number of Bluetooth devices connected to the receiving end reaches a threshold.

[0023] According to a fourth aspect of an embodiment of the present disclosure, there is provided an instruction transmission device, which is applied to a receiving end, and the instruction transmission device includes: The third module is configured to receive a target instruction sent by the sender via Bluetooth broadcast; Wherein, when no Bluetooth connection is established with the sending end, the sending end sends the target instruction via Bluetooth broadcast.

[0024] Optionally, the third module includes: A seventh submodule is configured to receive at least one broadcast frame sent by the transmitting end through Bluetooth broadcasting, wherein the at least one broadcast frame is obtained by the transmitting end by encrypting the target instruction, and the broadcast frame includes a first identifier; An eighth submodule is configured to associate the at least one broadcast frame according to the first identifier in the broadcast frame to obtain an encryption instruction; The ninth submodule is configured to decrypt the encrypted instruction to obtain the target instruction.

[0025] Optionally, the encryption instruction is obtained by encrypting a first key, where the first key is a key determined by the transmitting end and used when the transmitting end established a Bluetooth connection with the receiving end last time. The ninth submodule includes: A first processing unit is configured to determine a key used when a Bluetooth connection was previously established with the transmitting end; The second processing unit is configured to decrypt the encrypted instruction using the determined key.

[0026] Optionally, the sending end is preset with multiple groups of keys, the encryption instruction is encrypted by a second key in the multiple groups of keys, the multiple broadcast frames are generated by the sending end according to the encryption result of the second key and the second identifier of the second key, one or more of the broadcast frames include the second identifier, and the eighth submodule includes: A third processing unit is configured to associate the at least one broadcast frame according to the first identifier in the broadcast frame to obtain the encryption instruction and the second identifier; The ninth submodule comprises: a fourth processing unit, configured to determine, according to the second identifier, a second key used by the encryption instruction from a plurality of preset key groups; The fifth processing unit is configured to decrypt the encrypted instruction using the second key.

[0027] Optionally, the second identifier includes a first rolling code, and the fourth processing unit is configured to: Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The fifth processing unit is configured as follows: Determine the rolling code used by the sending end when transmitting the instruction last time, and obtain a second rolling code; When the first rolling code is greater than the second rolling code, the encrypted instruction is decrypted by using the second key.

[0028] According to a fifth aspect of an embodiment of the present disclosure, there is provided an instruction transmission device, including: processor; a memory for storing processor-executable instructions; The processor is configured to execute the steps of the method described in any one of the first aspect to the second aspect.

[0029] According to a sixth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the first to second aspects are implemented.

[0030] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method described in any one of the first to second aspects.

[0031] In the above scheme, the sending end can determine the target instruction for the receiving end, and send the target instruction to the receiving end through Bluetooth broadcast without establishing a Bluetooth connection with the receiving end. In this way, when transmitting the instruction, the sending end does not need to establish a Bluetooth connection with the receiving end, but can send the instruction to the receiving end through Bluetooth broadcast. In this way, in scenarios such as Bluetooth connection failure, the above scheme can also realize the transmission of instructions, which helps to ensure the success rate of instruction transmission.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0034] Figure 1 The figure is a flow chart of a method for transmitting instructions according to an exemplary embodiment.

[0035] Figure 2 is a flowchart of an implementation of step S12 according to an exemplary embodiment.

[0036] Figure 3 The present invention is a flow chart showing a communication flow between a vehicle key and a vehicle according to an exemplary embodiment.

[0037] Figure 4 The figure is a flowchart of data processing according to an exemplary embodiment.

[0038] Figure 5 The figure is a flow chart of a method for transmitting instructions according to an exemplary embodiment.

[0039] Figure 6 is a flowchart of an implementation of step S51 according to an exemplary embodiment.

[0040] Figure 7 The invention is a block diagram of an instruction transmission device according to an exemplary embodiment.

[0041] Figure 8 The invention is a block diagram of an instruction transmission device according to an exemplary embodiment.

[0042] Fig. 9 is a block diagram of a vehicle according to an exemplary embodiment.

[0043] Fig.10 The invention is a block diagram showing a device for transmitting instructions according to an exemplary embodiment. DETAILED DESCRIPTION

[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0045] Before introducing the instruction transmission method, device, storage medium and program product of the present disclosure, the relevant scenarios of the embodiments of the present disclosure are first introduced.

[0046] In a vehicle usage scenario, a control command can be sent to the vehicle through the car key. For example, the car key can establish a Bluetooth connection with the vehicle and send relevant control commands to the vehicle through the established Bluetooth connection.

[0047] Generally speaking, a vehicle can be equipped with multiple Bluetooth keys, such as a mobile phone Bluetooth key and a remote control Bluetooth key. In addition, users can also share mobile phone Bluetooth keys with others, thereby generating multiple Bluetooth keys. It should be noted that too many Bluetooth devices connected to the vehicle may reduce the connection stability of the Bluetooth key, so the vehicle often has a connection limit for the Bluetooth key. When the number of connected Bluetooth keys reaches the upper limit, the vehicle may refuse other Bluetooth keys to connect to Bluetooth. In this way, since the Bluetooth key cannot connect to the vehicle, the user cannot send instructions to the vehicle through the Bluetooth key. At this time, the user cannot use the Bluetooth key to control the vehicle.

[0048] To this end, an embodiment of the present disclosure provides a command transmission method. The method may be executed, for example, by a sending end. The sending end may be various devices, such as a mobile phone, a tablet device, a wearable device, etc. In a vehicle application scenario, the sending end may be a car key. Figure 1 is a flowchart of an instruction transmission method shown in an exemplary embodiment of the present disclosure, referring to Figure 1 , the method comprising: In step S11, a target instruction for the receiving end is determined.

[0049] Taking the sending end as a car key as an example, in some scenarios, the car key can respond to the user's key operation, thereby determining the instruction corresponding to the key operation and obtaining the target instruction. The target instruction can be, for example, a door opening instruction, an in-car air conditioning opening instruction, and the like.

[0050] In step S12, when no Bluetooth connection is established with the receiving end, the target instruction is sent to the receiving end via Bluetooth broadcast.

[0051] In a possible implementation, when the Bluetooth connection with the receiving end fails, the target instruction can be sent to the receiving end via Bluetooth broadcast. Taking a car key as an example, the car key can try to establish a Bluetooth connection with the vehicle, and when the connection fails, the car key can send the target instruction to the vehicle via Bluetooth broadcast.

[0052] In a possible implementation, when it is determined that the number of Bluetooth devices connected to the receiving end reaches a quantity threshold, establishing a Bluetooth connection with the receiving end may be stopped, and the target instruction may be sent to the receiving end via Bluetooth broadcast.

[0053] Continuing with the above example, the car key can be connected to the owner's mobile phone, for example. When the number of Bluetooth devices connected to the vehicle reaches a threshold, the vehicle can send a prompt message to the owner's mobile phone indicating that the number of Bluetooth devices has reached the threshold. In this way, the car key can learn from the owner's mobile phone that the number of Bluetooth devices connected to the vehicle has reached the threshold, and stop establishing a Bluetooth connection with the vehicle. In this way, the connection stability between the vehicle and the connected Bluetooth devices can be guaranteed. In addition, the car key can send the target command to the vehicle via Bluetooth broadcast to achieve the transmission of the command.

[0054] In a possible implementation, the above two solutions may also be used in combination. For example, when the Bluetooth connection with the receiving end fails and it is determined that the number of Bluetooth devices connected to the receiving end reaches a quantity threshold, the Bluetooth connection with the receiving end is stopped, and the target instruction is sent to the receiving end via Bluetooth broadcast.

[0055] Exemplarily, the car key may attempt to establish a Bluetooth connection with the vehicle. If the Bluetooth connection fails, the car key may also determine whether the number of Bluetooth devices connected to the receiving end has reached a quantity threshold. If the number has reached the quantity threshold, the car key may stop establishing a Bluetooth connection with the receiving end and send the target command to the receiving end via Bluetooth broadcast. If the number has not reached the quantity threshold, the Bluetooth connection failure may be an occasional failure, so the car key may try to establish a Bluetooth connection with the vehicle again.

[0056] The following is an exemplary description of an implementation method in which the transmitting end sends the target instruction to the receiving end via Bluetooth broadcast.

[0057] Figure 2 is an implementation flow chart of step S12 shown in an exemplary embodiment of the present disclosure, referring to Figure 2 , the target instruction is sent to the receiving end via Bluetooth broadcast, including: In step S21, the target instruction is encrypted to obtain an encrypted instruction, where the encrypted instruction includes at least one broadcast frame.

[0058] Each of the at least one broadcast frame may include a first identifier, and the first identifier is used by the receiving end to associate the at least one broadcast frame to obtain the encryption instruction.

[0059] In one implementation, the target instruction may be encrypted to obtain an encryption result, so that one or more broadcast frames may be generated according to the encryption result, and the encrypted instruction may be generated according to the one or more broadcast frames.

[0060] In one implementation, the target instruction may be segmented to obtain one or more segmentation results. Thus, each segmentation result is encrypted to obtain one or more corresponding broadcast frames, and the encrypted instruction is generated according to the one or more broadcast frames.

[0061] In addition, the broadcast frame may include a first identifier, and the first identifier is used by the receiving end to associate one or more broadcast frames to obtain an encryption instruction.

[0062] In a possible implementation manner, encrypting the target instruction to obtain the encrypted instruction includes: Determine the key used when establishing a Bluetooth connection with the receiving end last time, and obtain a first key; The target instruction is encrypted using the first key to obtain the encrypted instruction.

[0063] Figure 3 FIG. 1 is a flow chart of communication between a vehicle key and a vehicle according to an exemplary embodiment of the present disclosure, wherein the vehicle can be used as the receiving end. Figure 3 , the key can send a connectable Bluetooth key broadcast, and the vehicle can perform Bluetooth scanning to establish a Bluetooth connection with the car key. The vehicle can also read the key's unique code, and use the key that the vehicle and the key trust each other to perform two-way key authentication, and negotiate a temporary key for subsequent communications. When the key button is triggered, the remote control command can be encrypted using the temporary key to prevent brute force cracking. After the vehicle receives the encrypted command, it can use the temporary key to decrypt it, thereby obtaining the plain text of the remote control command, and then respond to the remote control command.

[0064] That is, when the car key establishes a Bluetooth connection with the vehicle, a temporary key can be negotiated between the car key and the vehicle, and the temporary key can be stored in the car key and the vehicle. Therefore, when sending a target instruction in a broadcasting manner, the car key can determine the key negotiated and used when establishing a Bluetooth connection with the vehicle last time, and obtain the first key. In this way, the target instruction can be encrypted by the first key to obtain the encrypted instruction.

[0065] It should be noted that after the car key is connected to the vehicle again, a new temporary key can be negotiated and saved, so that the first key can be automatically updated. In this way, the first key used in multiple encryption processes can be different, which helps to ensure the security of instruction transmission.

[0066] In addition, considering that the standard length of Bluetooth broadcast in relevant scenarios is 37 bytes, it may not be possible to transmit complete encryption instructions. Therefore, the encryption instructions can be segmented to generate multiple broadcast frames. In addition, in order to identify multiple broadcast frames, a first identifier can be set in each broadcast frame. After receiving the broadcast frame, the receiving end can associate multiple broadcast frames according to the first identifier to obtain the encryption instruction.

[0067] Figure 4 is a flowchart of a data processing shown in an exemplary embodiment of the present disclosure, referring to Figure 4 , the encryption instruction can be divided to generate broadcast frames A, B and C. Among them, the broadcast frames A, B and C can include a first identifier. As an example, the first identifier can be an identifier of the sending end, such as the unique identifier (device unique code) of the above-mentioned car key. In this way, after receiving multiple broadcast frames, the receiving end can combine the broadcast frames with the same first identifier to obtain the encryption instruction.

[0068] In some embodiments, the first identifier may also include a sequence number of the broadcast frame in the plurality of broadcast frames. For example, the first identifier may include the aforementioned "A", "B", "C". In this way, after determining the plurality of broadcast frames, the receiving end may associate the plurality of broadcast frames based on the sequence numbers, such as sequentially splicing broadcast frames A, B, and C. This helps to improve the speed at which the receiving end restores the encrypted instruction.

[0069] By adopting the above scheme, the target instruction can be encrypted using the key used by the transmitter and the receiver when the Bluetooth connection was established last time, thereby improving the security of instruction transmission. In addition, the above scheme can also segment the encrypted instruction and attach the first identifier to the segmented broadcast frame. In this way, the receiver can associate multiple broadcast frames according to the first identifier, which helps the receiver to restore the encrypted instruction.

[0070] In some scenarios, the target instruction may also be encrypted by other keys. For example, in a possible implementation, the sending end and the receiving end are preset with multiple sets of keys, and the target instruction is encrypted to obtain an encrypted instruction, including: Determine a set of keys from a plurality of preset sets of keys to obtain a second key; The target instruction is encrypted using the second key to obtain an encryption result.

[0071] It is worth noting that, in a scenario where multiple sets of keys are preset, the sender encrypts the target instruction using the selected second key. Therefore, when generating multiple broadcast frames, the information of the second key can also be attached to the broadcast frame. Exemplarily, the encrypted instruction can be generated based on the encryption result and the second identifier of the second key.

[0072] One or more of the broadcast frames in the encryption instruction include the second identifier, and the second identifier is used by the receiving end to determine the second key used by the encryption instruction from the multiple sets of keys. In one embodiment, the second identifier can be a unique identification code of the second key, and in one embodiment, the second identifier can also be a sequence number of the second key in the multiple sets of keys.

[0073] Continuing with the above example of command transmission between the car key and the vehicle, for example, keys 1-5, that is, 5 groups of keys, can be pre-stored in the car key and the vehicle. In this way, the car key can select a group of keys from the 5 groups of keys to obtain a second key. Exemplarily, the car key can select key 2 as the second key, so as to encrypt the target instruction by key 2 to obtain an encrypted result. In addition, the multiple broadcast frames can be generated according to the encryption result and the identifier of the key 2, and the encrypted instruction can be generated according to the multiple broadcast frames. Among them, one or more broadcast frames include the identifier of the key 2. For example, there can be 1-5 broadcast frames among the 5 broadcast frames that include the identifier of the key 2.

[0074] In a possible implementation, the second key may also be selected in combination with the rolling code. Exemplarily, an association relationship between the rolling code and multiple groups of keys may be established. In this way, the sending end may determine the current rolling code, obtain the first rolling code, and determine the second key based on the first rolling code and the association relationship between the rolling code and the multiple groups of keys. In this case, the second identifier may include the first rolling code.

[0075] In a possible implementation manner, the number of changes of the rolling code may also be recorded, and when the number of changes of the rolling code reaches a threshold number, the preset keys in the sending end and the receiving end are updated.

[0076] By adopting the above scheme, the target instruction can be encrypted by a preset key, thereby improving the security of instruction transmission. In addition, the above scheme can also segment the encryption result and attach a first identifier to the segmented broadcast frame. In this way, the receiving end can associate multiple broadcast frames according to the first identifier, which helps the receiving end to restore the encrypted instruction. Moreover, at least one of the multiple broadcast frames includes an identifier of the second key. In this way, the receiving end can determine the second key from multiple groups of keys according to the identifier of the second key, and then use the second key to decrypt the encrypted instruction to obtain the target instruction.

[0077] It should be noted that the information included in the broadcast frame can be set based on demand. In a possible implementation, one or more broadcast frames may include information of the sender, such as a brand logo. This helps the receiving end identify whether the broadcast frame needs to be received. Taking a vehicle as an example, the vehicle can compare the brand logo of the car key in the broadcast frame with its own brand logo to see if they are consistent. If the two are consistent, the broadcast frame is received, and if the two are inconsistent, the broadcast frame is discarded.

[0078] Reference Figure 2 In step S22, at least one broadcast frame is sent to the receiving end via Bluetooth broadcast.

[0079] In one implementation, broadcast frames may be selected sequentially and broadcast once.

[0080] In a possible implementation manner, the currently selected broadcast frame may be broadcast at least once (one or more times), and a new broadcast frame may be selected from unsent broadcast frames in the at least one broadcast frame.

[0081] Reference Figure 4 For broadcast frames A, B, and C, broadcast frame A may be selected and broadcasted multiple times (e.g., broadcasted multiple times continuously). Then, broadcast frame B may be selected and broadcasted multiple times. Finally, broadcast frame C may be selected and broadcasted multiple times.

[0082] Considering that Bluetooth broadcasts may be sent in frequency hopping on channels 37, 38, and 39, repeated broadcasts help increase the possibility that the broadcast frames are received by the receiving end. In a possible implementation, the interval between repeated broadcasts can be less than a duration threshold, such as the interval between two broadcast frames A is less than the duration threshold. In this way, by setting a smaller broadcast interval, it helps to shorten the broadcast duration, achieve fast broadcasting, and reduce the delay in command sending.

[0083] In the above scheme, the sending end can determine the target instruction for the receiving end, and send the target instruction to the receiving end through Bluetooth broadcast without establishing a Bluetooth connection with the receiving end. In this way, when transmitting the instruction, the sending end does not need to establish a Bluetooth connection with the receiving end, but can send the instruction to the receiving end through Bluetooth broadcast. In this way, in scenarios such as Bluetooth connection failure, the above scheme can also realize the transmission of instructions, which helps to ensure the success rate of instruction transmission.

[0084] Moreover, in the command transmission scenario between the car key and the vehicle, when the car key cannot establish a Bluetooth connection with the vehicle, other communication methods (such as NFC) may be used to establish a connection with the vehicle. To this end, a corresponding communication module needs to be configured in the car key, which increases the cost of the car key. The above solution can transmit the command to the vehicle without adding relevant modules, which has a lower cost.

[0085] In addition, the method of sending instructions via Bluetooth connection requires establishing a Bluetooth connection first. For example, the vehicle needs to scan the connection broadcast of the car key. It should be noted that it takes several seconds to establish a connection (determined by the broadcast transmission frequency and the vehicle-side scanning duty cycle), while the above solution transmits instructions via Bluetooth broadcast, which can deliver instructions to the vehicle before the Bluetooth connection is established, and has a faster speed.

[0086] Based on the same inventive concept, an embodiment of the present disclosure provides a method for transmitting a command. The method may be executed by a receiving end, for example, and the receiving end may be the receiving end involved in the above embodiment. In a scenario where a car key transmits a command to a vehicle, the receiving end may be the vehicle. Figure 5 is a flowchart of an instruction transmission method shown in an exemplary embodiment of the present disclosure, referring to Figure 5 , the method comprising: In step S51, a target instruction sent by a transmitting end via Bluetooth broadcast is received.

[0087] Wherein, when no Bluetooth connection is established with the sending end, the sending end sends the target instruction via Bluetooth broadcast.

[0088] Figure 6 is an implementation flow chart of step S51 shown in an exemplary embodiment of the present disclosure, referring to Figure 6 In a possible implementation manner, the receiving end broadcasts a target instruction via Bluetooth, including: In step S61, at least one broadcast frame sent by a transmitting end via Bluetooth broadcast is received, wherein the at least one broadcast frame is obtained by the transmitting end encrypting the target instruction, and the broadcast frame includes a first identifier.

[0089] In step S62, the at least one broadcast frame is associated according to the first identifier in the broadcast frame to obtain an encryption instruction.

[0090] In step S63, the encrypted instruction is decrypted to obtain the target instruction.

[0091] The implementation method of sending multiple broadcast frames by the transmitter has been described in detail in the above embodiments. For the sake of brevity of the specification, this embodiment of the present disclosure will not be described in detail.

[0092] In one implementation, the encrypted instruction is encrypted by a first key, where the first key is a key determined by the transmitting end and used when the transmitting end established a Bluetooth connection with the receiving end the last time, and decrypting the encrypted instruction includes: Determine the key used when establishing a Bluetooth connection with the transmitting end last time; The encrypted instruction is decrypted using the determined key.

[0093] Taking the car key as the transmitter and the vehicle as the receiver as an example, when the car key establishes a Bluetooth connection with the vehicle, a temporary key can be negotiated between the car key and the vehicle, and the temporary key can be stored in the car key and the vehicle. Therefore, when sending the target instruction in a broadcast manner, the car key can determine the key negotiated and used when the Bluetooth connection with the vehicle was established last time, and obtain the first key. In this way, the target instruction can be encrypted by the first key to obtain the encrypted instruction. After receiving the encrypted instruction, the vehicle can also determine the key used when the Bluetooth connection with the transmitter was established last time, and decrypt the encrypted instruction by the determined key.

[0094] In one implementation, the transmitting end and the receiving end are preset with multiple groups of keys, the encryption instruction is obtained by encrypting a second key in the multiple groups of keys, the multiple broadcast frames are generated by the transmitting end according to the encryption result of the second key and the second identifier of the second key, one or more of the broadcast frames include the second identifier, and the at least one broadcast frame is associated according to the first identifier in the broadcast frame to obtain the encryption instruction, including: Associating the at least one broadcast frame according to the first identifier in the broadcast frame to obtain the encryption instruction and the second identifier; The decrypting the encrypted instruction comprises: Determining, according to the second identifier, a second key used by the encryption instruction from a plurality of preset groups of keys; The encrypted instruction is decrypted using the second key.

[0095] As an example, the first identifier may be an identifier of the transmitting end, such as the unique identifier (device unique code) of the above-mentioned car key. In this way, after receiving multiple broadcast frames, the receiving end may combine broadcast frames with the same first identifier to obtain the encryption instruction.

[0096] In some implementations, the first identifier may also include a sequence number of the broadcast frame in the plurality of broadcast frames. Figure 4For example, the first identifier may include "A", "B", and "C". In this way, after determining multiple broadcast frames, the receiving end may associate the multiple broadcast frames based on the sequence numbers, such as sequentially splicing broadcast frames A, B, and C, thereby restoring the encryption instruction and the identifier of the second key. Figure 4 In some scenarios, the first identifier may also include manufacturer information.

[0097] In this way, the second key can be determined according to the second identifier of the second key, and the encrypted instruction can be decrypted to obtain the target instruction.

[0098] For example, in one embodiment, the second identifier includes a first rolling code, and determining the second key used by the encryption instruction from a plurality of preset key groups according to the second identifier includes: The second key is determined according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys.

[0099] In one implementation, the second identifier may also include a sequence number of the second key in the plurality of key groups. In this way, the receiving end may determine the second key from the plurality of key groups according to the second identifier.

[0100] After obtaining the second key, the encrypted instruction can be decrypted by the second key. In one embodiment, the receiving end can directly use the second key to decrypt the encrypted instruction. In one embodiment, the receiving end can also verify the encrypted instruction and decrypt it while ensuring the encryption quality and security.

[0101] Taking the second identifier including the first rolling code as an example, the receiving end can determine the rolling code used by the sending end when transmitting the instruction last time, and obtain the second rolling code. In this way, the receiving end can compare the first rolling code with the second rolling code, and when the first rolling code is greater than the second rolling code, the encrypted instruction can be decrypted by the second key. In addition, when the first rolling code is less than or equal to the second rolling code, it can be determined that the receiving end may be subject to a replay attack, and therefore the decryption of the encrypted instruction can be stopped. In this way, by verifying the rolling code before decryption, it helps to improve the security of instruction transmission.

[0102] In the above scheme, the sending end can determine the target instruction for the receiving end, and send the target instruction to the receiving end through Bluetooth broadcast without establishing a Bluetooth connection with the receiving end. In this way, when transmitting the instruction, the sending end does not need to establish a Bluetooth connection with the receiving end, but can send the instruction to the receiving end through Bluetooth broadcast. In this way, in scenarios such as Bluetooth connection failure, the above scheme can also realize the transmission of instructions, which helps to ensure the success rate of instruction transmission.

[0103] Based on the same inventive concept, an embodiment of the present disclosure provides an instruction transmission device. Figure 7 is a block diagram of an instruction transmission device shown in an exemplary embodiment of the present disclosure, referring to Figure 7 , the instruction transmission device comprises: The first module 701 is configured to determine a target instruction for a receiving end; The second module 702 is configured to send the target instruction to the receiving end via Bluetooth broadcasting without establishing a Bluetooth connection with the receiving end.

[0104] In this way, the sending end can determine the target instruction for the receiving end, and send the target instruction to the receiving end through Bluetooth broadcast without establishing a Bluetooth connection with the receiving end. In this way, when transmitting instructions, the sending end does not need to establish a Bluetooth connection with the receiving end, but can send instructions to the receiving end through Bluetooth broadcast. In this way, in scenarios such as Bluetooth connection failure, the above scheme can also realize the transmission of instructions, which helps to ensure the success rate of instruction transmission.

[0105] Optionally, the second module 702 includes: A first submodule is configured to encrypt the target instruction to obtain an encrypted instruction, wherein the encrypted instruction includes at least one broadcast frame, and the broadcast frame includes a first identifier, and the first identifier is used by the receiving end to associate the at least one broadcast frame to obtain the encrypted instruction; The third submodule is configured to send the at least one broadcast frame to the receiving end via Bluetooth broadcast.

[0106] Optionally, the first submodule includes: A first subunit is configured to determine a key used when a Bluetooth connection was previously established with the receiving end, and obtain a first key; The second subunit is configured to encrypt the target instruction by using the first key to obtain the encrypted instruction.

[0107] Optionally, the first submodule includes: The third subunit is configured to determine a set of keys from a plurality of preset sets of keys to obtain a second key; a fourth subunit, configured to encrypt the target instruction by using the second key to obtain an encryption result; The second submodule includes: The fifth subunit is configured to generate the encryption instruction based on the encryption result and the second identifier of the second key, wherein one or more of the broadcast frames in the encryption instruction include the second identifier, and the second identifier is used by the receiving end to determine the second key used by the encryption instruction from the multiple groups of keys.

[0108] Optionally, the third subunit is configured as: Determine the current rolling code and obtain the first rolling code; Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The second identifier includes the first rolling code.

[0109] Optionally, the third submodule includes: a sixth subunit, configured to broadcast the currently selected broadcast frame at least once; The seventh subunit is configured to select a new broadcast frame from the unsent broadcast frames in the at least one broadcast frame.

[0110] Optionally, the second module 702 includes: The fourth submodule is configured to send the target instruction to the receiving end via Bluetooth broadcast when the Bluetooth connection with the receiving end fails; or a fifth submodule, configured to stop establishing a Bluetooth connection with the receiving end and send the target instruction to the receiving end via Bluetooth broadcast when it is determined that the number of Bluetooth devices connected to the receiving end reaches a number threshold; or The sixth submodule is configured to stop establishing a Bluetooth connection with the receiving end and send the target instruction to the receiving end via Bluetooth broadcast when the Bluetooth connection with the receiving end fails and it is determined that the number of Bluetooth devices connected to the receiving end reaches a threshold.

[0111] Based on the same inventive concept, an embodiment of the present disclosure provides an instruction transmission device. Figure 8 is a block diagram of an instruction transmission device shown in an exemplary embodiment of the present disclosure, referring to Figure 8 , the instruction transmission device comprises: The third module 801 is configured to receive a target instruction sent by a sending end via Bluetooth broadcast; Wherein, when no Bluetooth connection is established with the sending end, the sending end sends the target instruction via Bluetooth broadcast.

[0112] By using the above device, the sending end can determine the target instruction for the receiving end, and send the target instruction to the receiving end through Bluetooth broadcast without establishing a Bluetooth connection with the receiving end. In this way, when transmitting the instruction, the sending end does not need to establish a Bluetooth connection with the receiving end, but can send the instruction to the receiving end through Bluetooth broadcast. In this way, in scenarios such as Bluetooth connection failure, the above scheme can also realize the transmission of instructions, which helps to ensure the success rate of instruction transmission.

[0113] Optionally, the third module includes: A seventh submodule is configured to receive at least one broadcast frame sent by the transmitting end through Bluetooth broadcasting, wherein the at least one broadcast frame is obtained by the transmitting end by encrypting the target instruction, and the broadcast frame includes a first identifier; an eighth submodule, configured to associate the at least one broadcast frame according to the first identifier in the broadcast frame to obtain the encryption instruction; The ninth submodule is configured to decrypt the encrypted instruction to obtain the target instruction.

[0114] Optionally, the encryption instruction is obtained by encrypting a first key, where the first key is a key determined by the transmitting end and used when the transmitting end established a Bluetooth connection with the receiving end last time. The ninth submodule includes: A first processing unit is configured to determine a key used when a Bluetooth connection was previously established with the transmitting end; The second processing unit is configured to decrypt the encrypted instruction using the determined key.

[0115] Optionally, the sending end is preset with multiple groups of keys, the encryption instruction is encrypted by a second key in the multiple groups of keys, the multiple broadcast frames are generated by the sending end according to the encryption result of the second key and the second identifier of the second key, one or more of the broadcast frames include the second identifier, and the eighth submodule includes: A third processing unit is configured to associate the at least one broadcast frame according to the first identifier in the broadcast frame to obtain the encryption instruction and the second identifier; The ninth submodule comprises: a fourth processing unit, configured to determine, according to the second identifier, a second key used by the encryption instruction from a plurality of preset key groups; The fifth processing unit is configured to decrypt the encrypted instruction using the second key.

[0116] Optionally, the second identifier includes a first rolling code, and the fourth processing unit is configured to: Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The fifth processing unit is configured as follows: Determine the rolling code used by the sending end when transmitting the instruction last time, and obtain a second rolling code; When the first rolling code is greater than the second rolling code, the encrypted instruction is decrypted by using the second key.

[0117] The present disclosure provides an instruction transmission device, including: processor; a memory for storing processor-executable instructions; The processor is configured to execute the steps of the instruction transmission method provided in any embodiment of the present disclosure.

[0118] An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the instruction transmission method provided in any embodiment of the present disclosure are implemented.

[0119] An embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the instruction transmission method provided in any embodiment of the present disclosure.

[0120] Regarding the instruction transmission device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the instruction transmission method, and will not be elaborated here.

[0121] Fig. 9 6 is a block diagram of a vehicle 600 according to an exemplary embodiment. For example, the vehicle 600 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 600 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0122] Reference Fig. 9 , the vehicle 600 may include various subsystems, for example, an infotainment system 610, a perception system 620, a decision control system 630, a drive system 640, and a computing platform 650. The vehicle 600 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 600 may be interconnected by wire or wireless means.

[0123] In some embodiments, the infotainment system 610 may include a communication system, an entertainment system, and a navigation system, etc.

[0124] The perception system 620 may include several sensors for sensing information about the environment around the vehicle 600. For example, the perception system 620 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.

[0125] The decision control system 630 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0126] The drive system 640 may include components that provide powered motion for the vehicle 600. In one embodiment, the drive system 640 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0127] Some or all functions of the vehicle 600 are controlled by a computing platform 650. The computing platform 650 may include at least one first processor 651 and a first memory 652, and the first processor 651 may execute instructions 653 stored in the first memory 652.

[0128] The first processor 651 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0129] The first memory 652 can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0130] In addition to the instructions 653 , the first memory 652 may also store data, such as road maps, route information, and data such as the location, direction, and speed of the vehicle. The data stored in the first memory 652 may be used by the computing platform 650 .

[0131] In the embodiment of the present disclosure, the first processor 651 may execute instruction 653 to complete all or part of the steps of the above-mentioned instruction transmission method.

[0132] Fig.10 1 is a block diagram of a device 1000 for transmitting instructions according to an exemplary embodiment. For example, the device 1000 may be a mobile phone, a tablet device, a wearable device, etc.

[0133] Reference Fig.10 , the device 1000 may include one or more of the following components: a processing component 1002 , a second memory 1004 , a power component 1006 , a multimedia component 10010 , an audio component 1010 , an input / output interface 1012 , a sensor component 1014 , and a communication component 1016 .

[0134] The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more second processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned instruction transmission method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 10010 and the processing component 1002.

[0135] The second memory 1004 is configured to store various types of data to support operations on the device 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phone book data, messages, pictures, videos, etc. The second memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0136] The power supply component 1006 provides power to the various components of the device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.

[0137] The multimedia component 10010 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 10010 includes a front camera and / or a rear camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0138] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the device 1000 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the second memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

[0139] The input / output interface 1012 provides an interface between the processing component 1002 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0140] The sensor assembly 1014 includes one or more sensors for providing various aspects of the status assessment of the device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000, the sensor assembly 1014 can also detect the position change of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, the orientation or acceleration / deceleration of the device 1000, and the temperature change of the device 1000. The sensor assembly 1014 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0141] The communication component 1016 is configured to facilitate wired or wireless communication between the device 1000 and other devices. The device 1000 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0142] In an exemplary embodiment, the apparatus 1000 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned instruction transmission method.

[0143] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a second memory 1004 including instructions, and the instructions can be executed by the second processor 1020 of the device 1000 to complete the above instruction transmission method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0144] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".

[0145] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., modules) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0146] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0147] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0148] In addition, unless otherwise specified, the features of some embodiments of the present disclosure described herein may be combined with each other. As used herein, the term "and / or" includes any one of the related listed items and any combination of any two or more; similarly, "at least one of . . . " includes any one of the related listed items and any combination of any two or more.

[0149] Although terms such as "first", "second" and "third" may be used herein to describe various modules, these modules are not limited to these terms. On the contrary, these terms are only used to distinguish one module from another. Therefore, without departing from the teachings of the various examples, the first module mentioned in the examples described herein may also be referred to as the second module. In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

Claims

1. A command transmission method, characterized in that: The method comprises: Determine target instructions for the receiving end; In the case where a Bluetooth connection is not established with the receiving end, the target instruction is sent to the receiving end via Bluetooth broadcast.

2. The method according to claim 1, characterized in that The sending of the target instruction to the receiving end via Bluetooth broadcasting includes: Encrypting the target instruction to obtain an encrypted instruction, wherein the encrypted instruction includes at least one broadcast frame, and the broadcast frame includes a first identifier, and the first identifier is used by the receiving end to associate the at least one broadcast frame to obtain the encrypted instruction; The at least one broadcast frame is sent to the receiving end via Bluetooth broadcast.

3. The method according to claim 2, characterized in that The step of encrypting the target instruction to obtain the encrypted instruction includes: Determine the key used when establishing a Bluetooth connection with the receiving end last time, and obtain a first key; The target instruction is encrypted using the first key to obtain the encrypted instruction.

4. The method according to claim 2, characterized in that: The step of encrypting the target instruction to obtain the encrypted instruction includes: Determine a set of keys from a plurality of preset sets of keys to obtain a second key; Encrypting the target instruction by using the second key to obtain an encryption result; The encryption instruction is generated according to the encryption result and the second identifier of the second key, wherein one or more of the broadcast frames in the encryption instruction include the second identifier, and the second identifier is used by the receiving end to determine the second key used by the encryption instruction from the multiple groups of keys.

5. The method according to claim 4, characterized in that The step of determining a set of keys from a plurality of preset sets of keys to obtain a second key comprises: Determine the current rolling code and obtain the first rolling code; Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The second identifier includes the first rolling code.

6. The method according to claim 2, characterized in that The sending the at least one broadcast frame to the receiving end through Bluetooth broadcasting includes: For a currently selected broadcast frame, broadcast the broadcast frame at least once; A new broadcast frame is selected from unsent broadcast frames in the at least one broadcast frame.

7. The method according to any one of claims 1 to 6, characterized in that The step of sending the target instruction to the receiving end through Bluetooth broadcasting without establishing a Bluetooth connection with the receiving end includes: In case the Bluetooth connection with the receiving end fails, sending the target instruction to the receiving end via Bluetooth broadcast; or, When it is determined that the number of Bluetooth devices connected to the receiving end reaches a number threshold, stop establishing a Bluetooth connection with the receiving end, and send the target instruction to the receiving end via Bluetooth broadcast; or When the Bluetooth connection with the receiving end fails and it is determined that the number of Bluetooth devices connected to the receiving end reaches a quantity threshold, the Bluetooth connection with the receiving end is stopped, and the target instruction is sent to the receiving end via Bluetooth broadcast.

8. A command transmission method, characterized in that: The method comprises: Receive the target command sent by the sender via Bluetooth broadcast; Wherein, when no Bluetooth connection is established with the sending end, the sending end sends the target instruction via Bluetooth broadcast.

9. The method according to claim 8, characterized in that The receiving end sends a target instruction via Bluetooth broadcast, including: Receiving at least one broadcast frame sent by the transmitting end through Bluetooth broadcasting, wherein the at least one broadcast frame is obtained by the transmitting end encrypting the target instruction, and the broadcast frame includes a first identifier; Associating the at least one broadcast frame according to the first identifier in the broadcast frame to obtain an encryption instruction; The encrypted instruction is decrypted to obtain the target instruction.

10. The method according to claim 9, characterized in that The encrypted instruction is encrypted by a first key, where the first key is a key determined by the transmitting end and used when the transmitting end establishes a Bluetooth connection with the receiving end last time, and the decrypting of the encrypted instruction includes: Determine the key used when establishing a Bluetooth connection with the transmitting end last time; The encrypted instruction is decrypted using the determined key.

11. The method according to claim 9, characterized in that The transmitting end is preset with multiple groups of keys, the encryption instruction is obtained by encrypting the second key in the multiple groups of keys, the multiple broadcast frames are generated by the transmitting end according to the encryption result of the second key and the second identifier of the second key, one or more of the broadcast frames include the second identifier, and the at least one broadcast frame is associated according to the first identifier in the broadcast frame to obtain the encryption instruction, including: Associating the at least one broadcast frame according to the first identifier in the broadcast frame to obtain the encryption instruction and the second identifier; The decrypting the encrypted instruction comprises: Determining, according to the second identifier, a second key used by the encryption instruction from a plurality of preset groups of keys; The encrypted instruction is decrypted using the second key.

12. The method according to claim 11, characterized in that The second identifier includes a first rolling code, and determining the second key used by the encryption instruction from a plurality of preset key groups according to the second identifier includes: Determine the second key according to the first rolling code and the association relationship between the rolling code and the multiple groups of keys; The decrypting the encrypted instruction by using the second key includes: Determine the rolling code used by the sending end when transmitting the instruction last time, and obtain a second rolling code; When the first rolling code is greater than the second rolling code, the encrypted instruction is decrypted by using the second key.

13. A command transmission device, characterized in that: The device comprises: A first module is configured to determine a target instruction for a receiving end; The second module is configured to send the target instruction to the receiving end via Bluetooth broadcast without establishing a Bluetooth connection with the receiving end.

14. A command transmission device, characterized in that: The device comprises: The third module is configured to receive a target instruction sent by the sender via Bluetooth broadcast; Wherein, when no Bluetooth connection is established with the sending end, the sending end sends the target instruction via Bluetooth broadcast.

15. A command transmission device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the steps of the method according to any one of claims 1 to 12.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

17. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Bluetooth device control method and device

    CN104318741A

  • Method and device for pairing Bluetooth remote controller with multiple devices, equipment and storage medium

    CN114071439A

  • Communication method and device based on Bluetooth

    CN115134764A

  • Vehicle-mounted wireless control system, method, device and equipment and storage medium

    CN115250435A

  • Bluetooth connection method and system and electronic equipment

    CN115580844A