Digital car key Bluetooth instruction processing and callback method and system

Through the unified sendCommand method and SDK to process Bluetooth instructions on iOS and Android systems, the problems of high cross-platform development costs and low code accuracy are solved, and the consistency and security of instruction processing are achieved.

CN119296210AInactive Publication Date: 2025-01-10SHENZHEN SNOWBALL TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411414847.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-01-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Due to the differences between iOS and Android mobile operating systems, developers need to write different instructions for processing code for the two systems, which increases the cost of code development and maintenance, and manually parsing instructions is prone to errors, reducing code accuracy.

Method used

Using a unified sendCommand method and SDK, the Bluetooth instructions are parsed and processed through the SDK, and the processing logic is automatically selected, and a unified interface and logical structure is provided on iOS and Android systems, reducing the need for manual parsing and processing logic selection.

Benefits of technology

It realizes cross-platform instruction processing consistency, reduces development and maintenance costs, improves code accuracy, and improves communication security through automated analysis and security authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119296210A_ABST
    Figure CN119296210A_ABST
Patent Text Reader

Abstract

The invention provides a digital car key Bluetooth instruction processing and callback method and system, and relates to the technical field of digital car keys, and the method comprises the steps: BLE equipment sends a request instruction to a digital car key App of intelligent equipment through a Bluetooth module; after the digital car key App receives the request instruction, the request instruction is transmitted to an SDK (software development kit) of the intelligent equipment through a sendCommand method; the iOS mobile operation system and the Android mobile operation system use a unified sendCommand method; the SDK generates a processing result of the request instruction; the SDK returns the processing result to the digital car key App through a callback function; the digital car key App feeds back the processing result to the BLE equipment; and the BLE device responds to the processing result and generates a response result. The code development and maintenance cost of developers can be reduced, and the code accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital car keys, and in particular to a method and system for processing and calling back Bluetooth commands of digital car keys. Background Art

[0002] Digital car keys are a modern solution that uses digital technology to unlock and start vehicles. Specifically, digital car keys digitize the original physical car keys (sensing keys or mechanical keys). The digital car key App (Application) in the smart device communicates with the BLE (Bluetooth Low Energy) device in the vehicle via Bluetooth or other means, allowing the smart device to realize the car key function, thereby eliminating the need for users to carry physical keys separately when going out.

[0003] In order to achieve the above functions, relevant developers need to write command processing and authentication logic. The current typical command processing and authentication logic is: after the digital car key App receives the command from the BLE device, the developer manually parses the command to clarify the type and content of the command. After the parsing is completed, the developer selects the target processing logic from multiple preset processing logics according to the command type. Each command corresponds to a different processing flow.

[0004] However, due to the differences between iOS and Android mobile operating systems, developers need to write separate instruction processing codes for the two mobile operating systems, which makes the code development and maintenance costs of developers high; and because the current solution requires developers to manually parse instructions and select processing logic, it further increases the code development costs of developers and is prone to code errors. Therefore, how to reduce the code development and maintenance costs of developers and improve code accuracy has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, in order to solve the above technical problems, the present invention provides a digital car key Bluetooth command processing and callback method and system.

[0006] The present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a digital car key Bluetooth command processing and callback method, comprising:

[0008] The BLE device sends a request command to the digital car key App of the smart device through its Bluetooth module;

[0009] After receiving the request instruction, the digital car key App transmits the request instruction to the SDK of the smart device through the sendCommand method; the iOS mobile operating system and the Android mobile operating system use a unified sendCommand method;

[0010] The SDK generates a processing result of the request instruction;

[0011] The SDK returns the processing result to the digital car key App through a callback function;

[0012] The digital car key App feeds back the processing result to the BLE device;

[0013] The BLE device responds to the processing result and generates a response result.

[0014] Optionally, the sendCommand method receives two parameters: a digital vehicle key identifier and a request command.

[0015] Optionally, the digital car key identifier is a digital car key ID.

[0016] Optionally, the SDK generates a processing result of the request instruction, specifically including:

[0017] After receiving the request instruction, the SDK parses the request instruction to obtain a parsing result;

[0018] The SDK selects a target processing logic from a plurality of preset processing logics according to the analysis result;

[0019] The SDK generates a processing result of the request instruction based on the target processing logic.

[0020] Optionally, the digital car key Bluetooth command processing and callback method of the present invention further includes:

[0021] The SDK automatically performs instruction security authentication during the process of parsing the request instruction.

[0022] Optionally, after the BLE device responds to the processing result and generates a response result, the digital car key Bluetooth instruction processing and callback method of the present invention further includes:

[0023] The BLE device transmits the response result back to the digital car key App.

[0024] Optionally, the smart device is a smart phone or a smart watch.

[0025] In a second aspect, the present invention further provides a digital car key Bluetooth command processing and callback system, comprising: a BLE device and a smart device;

[0026] The smart device includes a digital car key App and SDK;

[0027] The BLE device, the digital car key App and the SDK are used to execute the digital car key Bluetooth instruction processing and callback method as described above.

[0028] The present invention adopts the above technical scheme, a digital car key Bluetooth command processing and callback method, including: a BLE device sends a request command to a digital car key App of a smart device through its Bluetooth module; after receiving the request command, the digital car key App passes the request command to the SDK of the smart device through a sendCommand method; the iOS mobile operating system and the Android mobile operating system use a unified sendCommand method; the SDK generates a processing result of the request command; the SDK returns the processing result to the digital car key App through a callback function; the digital car key App feeds back the processing result to the BLE device; the BLE device responds to the processing result and generates a response result.

[0029] Based on this, since both the iOS mobile operating system and the Android mobile operating system use a unified sendCommand method, that is, the iOS mobile operating system and the Android mobile operating system use a unified instruction processing interface and callback mechanism, this ensures the consistency of the development process, so that the present invention does not need to write respective instruction processing codes for the iOS mobile operating system and the Android mobile operating system, so that the present invention can reduce the code development and maintenance costs of developers; and, through the unified sendCommand method, there is no need for developers to manually parse instructions and select processing logic, so that the present invention further reduces the code development costs of developers and improves code accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 It is a flowchart of a method for processing and calling back a Bluetooth command of a digital car key provided by an embodiment of the present invention;

[0032] Figure 2It is a structural diagram of a digital car key Bluetooth command processing and callback system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0034] Example

[0035] Figure 1 FIG. 1 is a flow chart of a method for processing and calling back a Bluetooth command of a digital car key provided by an embodiment of the present invention. Figure 1 As shown, this process includes:

[0036] Step 101: The BLE device sends a request command to the digital car key App of the smart device through its Bluetooth module.

[0037] Specifically, a Bluetooth connection is established between the BLE device and the smart device, and the BLE device can send a request instruction to the digital car key App of the smart device through the Bluetooth connection. The request instruction can specifically be a request to unlock the vehicle or a request for authentication.

[0038] The smart device may be a smart phone or a smart watch. The mobile operating system in the smart device may be an iOS (iPhone Operating System) mobile operating system or an Android (Android Operating System) mobile operating system.

[0039] Step 102: After receiving the request instruction, the digital car key App passes the request instruction to the SDK of the smart device by calling the sendCommand method in the SDK; the iOS mobile operating system and the Android mobile operating system use a unified sendCommand method.

[0040] Specifically, the iOS mobile operating system and the Android mobile operating system use different SDKs, but both provide a unified sendCommand method for processing the sending, parsing, and callback of instructions. That is, the SDK provides a unified interface and logical structure on different platforms (iOS mobile operating system and Android mobile operating system), so that developers only need to care about interface calls without having to worry about the underlying differences.

[0041] The sendCommand method receives two parameters: a digital car key identifier and a request command (command). The digital car key identifier is a digital car key ID, and the digital car key ID can specifically be a vehicle ID (cardId).

[0042] Step 103: The SDK generates a processing result of the request instruction.

[0043] In the embodiment of the present invention, the processing result of the SDK generating the request instruction may specifically include:

[0044] (1031) After receiving the request instruction, the SDK parses the request instruction and obtains the parsing result.

[0045] Specifically, after receiving the request instruction, the SDK parses the request instruction and confirms the instruction type of the request instruction, such as unlocking, vehicle condition inquiry or Bluetooth authentication request.

[0046] (1032) The SDK selects a target processing logic from a plurality of preset processing logics based on the analysis result.

[0047] Specifically, the SDK selects a target processing logic that matches the current request instruction from multiple preset processing logics based on the analysis results. For example, if the request instruction is an unlock request, the corresponding target processing logic is to execute the unlock operation; or if the request instruction is a Bluetooth authentication request, the corresponding target processing logic is to complete the authentication.

[0048] (1033) The SDK generates a processing result of the request instruction based on the target processing logic.

[0049] In addition, the digital car key Bluetooth instruction processing and callback method of the present invention may also include: the SDK automatically performs instruction security authentication during the process of parsing the request instruction.

[0050] Specifically, the SDK performs Bluetooth security authentication to ensure the security of data transmission during communication. By encrypting and parsing the data, security vulnerabilities in the instruction transmission process are eliminated.

[0051] Compared with the existing solution in which developers parse request instructions, the present invention can avoid the situation in which developers introduce security vulnerabilities during instruction parsing, so that the present invention improves communication security.

[0052] In addition, in this scenario, the processing result generated by the SDK may include the Bluetooth communication status code, the processed instruction information and the authentication result. Since the processing result provides detailed authentication and instruction execution results, the present invention ensures the safety and traceability of the operation.

[0053] In a specific example, the processing results are as follows:

[0054] sendCommand result code=0;

[0055] sendCommand result message = Authentication command executed successfully;

[0056] sendCommand result commandType=0101.

[0057] Step 104: The SDK returns the processing result to the digital car key App through a callback function.

[0058] Specifically, the SDK provides a sendCommand method that accepts a callback function as a parameter. When the command is executed, the SDK calls the callback function and passes a result object (i.e., the processing result) to the callback function. For the iOS mobile operating system, the result object can be of the CarKeySDKResult type, and for the Android mobile operating system, the result object can be of the Result type.

[0059] Step 105: The digital car key App feeds back the processing result to the BLE device.

[0060] Step 106: The BLE device responds to the processing result and generates a response result.

[0061] The present invention adopts the above-mentioned technical scheme. Since both the iOS mobile operating system and the Android mobile operating system use a unified sendCommand method, that is, the iOS mobile operating system and the Android mobile operating system use a unified instruction processing interface and callback mechanism, thus ensuring the consistency of the development process, so that the present invention does not need to write respective instruction processing codes for the iOS mobile operating system and the Android mobile operating system, so that the present invention can reduce the code development and maintenance costs of developers; and, through the unified sendCommand method, there is no need for developers to manually parse instructions and select processing logic, so that the present invention further reduces the code development costs of developers and improves code accuracy.

[0062] Furthermore, compared to the existing solution in which developers parse request instructions, the present invention automatically performs instruction security authentication during the process of parsing request instructions through SDK, so that the present invention can avoid the situation where developers introduce security vulnerabilities during the instruction parsing process, thereby improving communication security.

[0063] In the embodiment of the present invention, after the BLE device responds to the processing result and generates a response result, the digital car key Bluetooth instruction processing and callback method of the present invention may also include:

[0064] The BLE device sends the response result back to the digital car key App.

[0065] Based on a general inventive concept, the present invention also provides a digital car key Bluetooth command processing and callback system.

[0066] Figure 2 Schematic diagram of a digital car key Bluetooth command processing and callback system provided by an embodiment of the present invention. Figure 2 As shown, the system includes: a BLE device 21 and a smart device 22.

[0067] The smart device 22 includes a digital car key App 221 and an SDK 222 .

[0068] The BLE device 21, the digital car key App 221 and the SDK 222 are used to execute the digital car key Bluetooth instruction processing and callback method as described above.

[0069] It should be noted that for the specific implementation details of the BLE device 21, the digital car key App 221 and the SDK 222 executing the above-mentioned digital car key Bluetooth command processing and callback method, please refer to the relevant description content of the aforementioned embodiment, which will not be repeated here.

[0070] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0071] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0072] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0073] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0074] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0075] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0076] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0077] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A digital car key Bluetooth command processing and callback method, characterized in that: include: The BLE device sends a request command to the digital car key App of the smart device through its Bluetooth module; After receiving the request instruction, the digital car key App transmits the request instruction to the SDK of the smart device through the sendCommand method; the iOS mobile operating system and the Android mobile operating system use a unified sendCommand method; The SDK generates a processing result of the request instruction; The SDK returns the processing result to the digital car key App through a callback function; The digital car key App feeds back the processing result to the BLE device; The BLE device responds to the processing result and generates a response result.

2. The method for processing and calling back Bluetooth commands of a digital car key according to claim 1, characterized in that: The sendCommand method receives two parameters: a digital vehicle key identifier and a request command.

3. The method for processing and calling back Bluetooth commands of a digital car key according to claim 2, characterized in that: The digital car key identifier is a digital car key ID.

4. The method for processing and calling back Bluetooth commands of a digital car key according to claim 1, characterized in that: The SDK generates a processing result of the request instruction, specifically including: After receiving the request instruction, the SDK parses the request instruction to obtain a parsing result; The SDK selects a target processing logic from a plurality of preset processing logics according to the analysis result; The SDK generates a processing result of the request instruction based on the target processing logic.

5. The method for processing and calling back Bluetooth commands of a digital car key according to claim 4, characterized in that: Also includes: The SDK automatically performs instruction security authentication during the process of parsing the request instruction.

6. The method for processing and calling back Bluetooth commands of a digital car key according to claim 1, characterized in that: After the BLE device responds to the processing result and generates a response result, the method further includes: The BLE device transmits the response result back to the digital car key App.

7. The method for processing and calling back Bluetooth commands of a digital car key according to claim 1, characterized in that: The smart device is a smart phone or a smart watch.

8. A digital car key Bluetooth command processing and callback system, characterized in that: include: BLE devices and smart devices; The smart device includes a digital car key App and SDK; The BLE device, the digital car key App and the SDK are used to execute the digital car key Bluetooth instruction processing and callback method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Authentication method and device

    CN110189442A

  • Digital key wake-up method, wake-up unit and permission terminal

    CN110363894A

  • Data synchronization method, device and equipment and computer readable storage medium

    CN112311853A

  • Vehicle control method and device

    CN112887920A

  • Vehicle non-inductive unlocking system and method, vehicle and storage medium

    CN116142129A