Fingerprint data transmission method and device, electronic equipment and storage medium
By establishing a transmission channel between the fingerprint hardware abstraction layer HAL and the wireless transmission module in the electronic device, the problem that electronic devices cannot communicate with the external fingerprint module is solved, and the control and scalability of external fingerprint devices is improved.
Patent Information
- Application Number
- CN202311550981.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2025-05-20
AI Technical Summary
In the prior art, it is difficult to replace the fingerprint module of the electronic device after it is damaged, and it is unable to communicate with the external fingerprint module, resulting in poor expansion.
By establishing a transmission channel between the fingerprint hardware abstraction layer HAL and the wireless transmission module, remote communication between electronic devices and external fingerprint devices is realized. The specific method includes obtaining a message of a fingerprint event, processing and generating control instructions, sending control instructions to the wireless transmission module through an inter-process communication interface, and then controlling an external fingerprint device.
It realizes control of external fingerprint equipment, improves the scalability of electronic equipment, and facilitates the maintenance and replacement of fingerprint modules.
Smart Images

Figure CN120021283A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of fingerprint biometric technology, and in particular, to a fingerprint data transmission method, apparatus, electronic device, and storage medium. Background Art
[0002] Fingerprint biometrics is a biometric technology that identifies an individual's identity by collecting, extracting, and comparing human fingerprints. With the increasing use and popularity of electronic devices, fingerprint biometric technology has been widely applied in various scenarios, such as mobile phone unlocking, mobile payment, and other fields.
[0003] In the related art, the fingerprint module needs to be integrated into the electronic device, and data is exchanged with the fingerprint module through a local communication protocol. However, this will cause difficulties in replacing the fingerprint module of the electronic device after it is damaged, and the electronic device cannot communicate with other fingerprint modules to complete corresponding functions such as unlocking or payment, resulting in poor scalability. Therefore, how to enable the electronic device to communicate with an external fingerprint device is a technical problem that needs to be solved. Summary of the Invention
[0004] This application aims to solve at least one of the technical problems in the related art to some extent.
[0005] To this end, this application proposes a fingerprint data transmission method, apparatus, electronic device, and storage medium, which realizes remote communication between the electronic device and an external fingerprint device by establishing a transmission channel between the fingerprint hardware abstraction layer HAL and the wireless transmission module.
[0006] An embodiment of one aspect of this application proposes a fingerprint data transmission method for the fingerprint hardware abstraction layer HAL of an electronic device, including:
[0007] Obtain a message of a fingerprint event sent by the fingerprint framework layer;
[0008] Process the message of the fingerprint event to generate a control instruction;
[0009] Send the control instruction to the wireless transmission module according to the inter-process communication interface; wherein, the control instruction is sent to the fingerprint device through the wireless transmission module; the control instruction is used to control the fingerprint device.
[0010] An embodiment of another aspect of this application proposes a fingerprint data transmission method for the wireless transmission module of an electronic device, including:
[0011] Obtain a control instruction of a fingerprint event sent by the fingerprint hardware abstraction layer HAL based on the inter-process communication interface;
[0012] Send the control instruction of the fingerprint event to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module; wherein, the control instruction is used to control the fingerprint device.
[0013] Another embodiment of the present application provides a fingerprint data transmission device for the fingerprint hardware abstraction layer (HAL) of an electronic device, including:
[0014] An acquisition module, configured to acquire a message of a fingerprint event sent by the fingerprint framework layer;
[0015] A generation module, configured to process the message of the fingerprint event to generate a control instruction;
[0016] A sending module, configured to send the control instruction to the wireless transmission module according to the inter-process communication interface; wherein, the control instruction is sent to the fingerprint device through the wireless transmission module; the control instruction is used to control the fingerprint device.
[0017] Another embodiment of the present application provides a fingerprint data transmission device for the wireless transmission module of an electronic device, including:
[0018] An acquisition module, configured to acquire a control instruction of a fingerprint event sent by the fingerprint hardware abstraction layer (HAL) based on the inter-process communication interface;
[0019] A sending module, configured to send the control instruction of the fingerprint event to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module; wherein, the control instruction is used to control the fingerprint device.
[0020] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method described in the foregoing one aspect or the method described in the foregoing other aspect is implemented.
[0021] Another embodiment of the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the foregoing one aspect or the method described in the foregoing other aspect is implemented.
[0022] Another embodiment of the present application provides a computer program product, on which a computer program is stored. When the program is executed by a processor, the method described in the foregoing one aspect or the method described in the foregoing other aspect is implemented.
[0023] The fingerprint data transmission method, device, electronic device, and storage medium provided by this application obtain the message of the fingerprint event sent by the fingerprint framework layer, process the message of the fingerprint event to generate a control instruction, and send the control instruction to the wireless transmission module according to the inter-process communication interface. Among them, the control instruction is sent to the fingerprint device through the wireless transmission module, and the control instruction is used to control the fingerprint device. A transmission channel is established between the fingerprint HAL and the wireless transmission module through the inter-process communication interface to realize the communication between the fingerprint HAL and the wireless transmission module, so that the control instruction can be sent to the wireless transmission module, and then the control instruction can be sent to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device and improving the scalability.
[0024] Additional aspects and advantages of this application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of this application. Brief Description of the Drawings
[0025] The above and / or additional aspects and advantages of this application will become apparent and easy to understand from the following description of the embodiments in conjunction with the drawings, where:
[0026] Figure 1 It is a schematic flowchart of a fingerprint data transmission method provided by an embodiment of this application;
[0027] Figure 2 It is a framework of fingerprint recognition provided by an embodiment of this application;
[0028] Figure 3 It is a schematic flowchart of another fingerprint data transmission method provided by an embodiment of this application;
[0029] Figure 4 It is one of the schematic architecture diagrams of fingerprint data transmission provided by an embodiment of this application;
[0030] Figure 5 It is a schematic flowchart of another fingerprint data transmission method provided by an embodiment of this application;
[0031] Figure 6 It is a schematic flowchart of another fingerprint data transmission method provided by an embodiment of this application;
[0032] Figure 7 It is the second of the schematic architecture diagrams of fingerprint data transmission provided by an embodiment of this application;
[0033] Figure 8 It is a schematic structural diagram of a fingerprint data transmission device provided by an embodiment of this application;
[0034] Figure 9Schematic structural diagram of a fingerprint data transmission device provided by an embodiment of the present application;
[0035] Figure 10 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0036] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present application, and should not be construed as a limitation to the present application.
[0037] The fingerprint data transmission method, device, electronic device, and storage medium of the embodiments of the present application will be described below with reference to the accompanying drawings.
[0038] In the related art, fingerprint modules are integrated in electronic devices, such as mobile phones. There are two ways for the hardware abstraction layer (HAL) of the software fingerprint module in the mobile phone to interact with the fingerprint module. One is to directly control the fingerprint kernel driver through the function Ioctl that manages the interface channel of the device in the device driver, and the fingerprint kernel driver then controls the pins connected to the fingerprint module through the kernel GPIO subsystem, so as to realize the interaction between the fingerprint HAL and the fingerprint module; the other is to interact with the fingerprint trusted application through the trusted execution environment interface, that is, through the driver in the code or the trusted application (TA) under the trusted execution environment (TEE), directly interact with the fingerprint module through the local communication protocol, and then the fingerprint trusted application and the fingerprint module directly interact through the serial peripheral interface (SPI) and the local communication protocol, so as to realize the interaction between the fingerprint HAL and the fingerprint module. The disadvantage of such a software structure is that the fingerprint module needs to be installed on the mobile phone, and communication with an external fingerprint module cannot be performed, resulting in difficult repair and replacement of the damaged fingerprint module of the electronic device, and at the same time, the problem of poor fingerprint expandability of the electronic device.
[0039] Therefore, this application proposes a fingerprint data transmission method, which acquires the message of the fingerprint event sent by the fingerprint framework layer, processes the message of the fingerprint event to generate a control instruction, and sends the control instruction to the wireless transmission module according to the inter-process communication interface. Among them, the control instruction is sent to the fingerprint device through the wireless transmission module, and the control instruction is used to control the fingerprint device. The transmission channel between the fingerprint HAL and the wireless transmission module is established through the inter-process communication interface to realize the communication between the fingerprint HAL and the wireless transmission module, so that the control instruction can be sent to the wireless transmission module, and then the control instruction is sent to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device and improving the scalability.
[0040] Figure 1 It is a schematic flowchart of a fingerprint data transmission method provided by an embodiment of this application.
[0041] The execution entity of the fingerprint data transmission method in the embodiment of this application is the fingerprint hardware abstraction HAL layer of the electronic device. The electronic device is a device configured with a Bluetooth module, such as a mobile phone, a pad, etc., which is not limited in this embodiment.
[0042] As Figure 1 shown, the method may include the following steps:
[0043] Step 101, acquire the message of the fingerprint event sent by the fingerprint framework layer.
[0044] In the embodiment of this application, taking an Android mobile phone as an example, Android mobile phones all use the Android software system. Android provides a biometric framework Biometrics for fingerprint biometric recognition. As Figure 2 shown, this biometric framework includes the implementation of the framework layer (Framework), and the framework layer includes the fingerprint framework layer, including FingerprintManger and FingerprintService, and provides interfaces for upper-layer applications such as System UI and Keyguard in the application layer (Application) to call the fingerprint Framework layer. The hardware abstraction layer (Hardware Abstraction Layer, HAL) implements the specific logic of fingerprints, called fingerprint HAL, which needs to be implemented by mobile phone manufacturers using the Android system. The implementation of this fingerprint HAL needs to be upward compatible with the Biometrics biometric framework interface of the Framework layer. Among them, the fingerprint framework layer is used to send the message of the fingerprint event to the fingerprint HAL through the HIDL_1 interface in related technologies.
[0045] Step 102, process the message of the fingerprint event to generate a control instruction.
[0046] In the embodiments of the present application, the fingerprint HAL processes the messages of the received fingerprint events, that is, parses the data packets of the messages of the fingerprint events to identify the types of the fingerprint events corresponding to the messages of the fingerprint events. Among them, the fingerprint events include fingerprint recognition, fingerprint entry, fingerprint entry suspension, fingerprint deletion, fingerprint enumeration, etc., which are not listed one by one here.
[0047] Since the fingerprint HAL needs to communicate with the wireless transmission module after receiving the messages of the fingerprint events, therefore, the fingerprint HAL repackages the parsed messages of the fingerprint events based on the wireless transmission protocol to obtain control instructions, where the control instructions are control instructions for the fingerprint module in the remote fingerprint device to be controlled.
[0048] Step 103, send the control instructions to the wireless transmission module according to the inter-process communication interface.
[0049] Among them, the control instructions are sent to the fingerprint device through the wireless transmission module; the control instructions are used to control the fingerprint device. Among them, the fingerprint device is independent of the electronic device and is an external or remote fingerprint device. The fingerprint device is also configured with a wireless transmission module and can realize data interaction between the electronic device and the fingerprint device based on the wireless transmission protocol.
[0050] Among them, the wireless transmission module can be a near-field communication (NFC) module, a Bluetooth module, or a method based on bridging a wireless router and then remotely networking.
[0051] In the embodiments of the present application, in the fingerprint HAL logic, the control interaction interfaces for the wireless transmission module are unified, and finally unified into an inter-process communication interface that can perform inter-process communication. The inter-process communication interface is used to realize data transmission between the fingerprint HAL and the wireless communication module. The inter-process communication interface is, for example, an interface defined based on the Interface Definition Language Interface HIDL technology, or an interface based on the Android Interface Definition Language (Android Interface Definition Language, AIDL) technology. As an implementation method, in the Android system, the process of the fingerprint HAL is registered as a binder service, that is, the server side, and then the inter-process communication interface is opened to the framework layer process of the wireless transmission module inside the Android system. After the framework layer process of the wireless transmission module obtains the inter-process communication interface as a client, it can interact with the fingerprint HAL to realize data transmission between the fingerprint HAL and the wireless transmission module through the inter-process communication interface, so as to send the control instructions for controlling the external fingerprint device to the wireless transmission module, and then through the wireless transmission module, send the control instructions to the fingerprint device to realize the control of the fingerprint device.
[0052] In the fingerprint data transmission method according to the embodiment of the present application, a message of a fingerprint event sent by the fingerprint framework layer is obtained, the message of the fingerprint event is processed to generate a control instruction, and the control instruction is sent to the wireless transmission module according to the inter-process communication interface. Among them, the control instruction is sent to the fingerprint device through the wireless transmission module, and the control instruction is used to control the fingerprint device. A transmission channel between the fingerprint HAL and the wireless transmission module is established through the inter-process communication interface to realize communication between the fingerprint HAL and the wireless transmission module, so that the control instruction can be sent to the wireless transmission module, and then the control instruction is sent to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device and improving the expandability.
[0053] Based on the above embodiment, Figure 3 is a schematic flowchart of another fingerprint data transmission method provided by the embodiment of the present application. As Figure 3 shown, the method includes the following steps:
[0054] Step 301, obtain a message of a fingerprint event sent by the fingerprint framework layer.
[0055] Step 302, process the message of the fingerprint event to generate a control instruction.
[0056] Among them, steps 301 and 302 can refer to the explanations in the foregoing embodiments, with the same principle, and will not be elaborated here.
[0057] Step 303, define an inter-process communication interface.
[0058] Among them, the inter-process communication interface includes a first transmission interface and a second transmission interface.
[0059] Among them, the inter-process communication interface is a custom interface for the present application to realize communication between the fingerprint HAL and the wireless communication module. When defining the interface, the call function, parameter passing, call method, etc. of the interface are defined based on the wireless communication module to be communicated, that is, the type of the transmitted message, the format of the transmitted message, the function name corresponding to the interface call, etc. The inter-process communication interface can be an interface based on the Hardware Interface Definition Language (HIDL) technology, or an interface based on the Android Interface Definition Language (AIDL) technology. In the embodiment of the present application, the HIDL interface will be taken as an example for subsequent description.
[0060] Step 304, based on the first transmission interface in the inter-process communication interface, send the control instruction to the wireless transmission module.
[0061] As an implementation, register the interface service corresponding to the inter-process communication interface in the ServiceManager of the Android system. The interface service can be called by the wireless transmission module to use the inter-process communication interface corresponding to the interface service, such as the first transmission interface. The fingerprint HAL obtains the callback function sent by the wireless transmission module calling the first transmission interface in the inter-process communication interface, and sends a control instruction to the wireless transmission module according to the callback function.
[0062] In the embodiment of the present application, the fingerprint HAL is registered as the server side of Binder in the ServiceManager of the Android system as a process, while the wireless transmission module can be registered as the client side of Binder, and the client side can obtain the service in the server side. The fingerprint HAL defines the inter-process communication interface and registers the interface service corresponding to the inter-process communication interface in the ServiceManager of the Android system, so that the interface service corresponding to the inter-process communication interface is in a state where it can be obtained in the system, and other processes can be registered as client sides. Thus, as a client side, other processes can call the interface service to use the interface corresponding to the interface service for data transmission.
[0063] In the embodiment of the present application, as the client side, the wireless transmission module can obtain the interface service of the server side in the Android system. After obtaining the interface service, it can use the inter-process communication interface corresponding to the interface service. Taking the HIDL interface as an example of the inter-process communication interface, the HIDL interface includes the Setnotify interface and the Invokecommand interface. Among them, the Setnotify interface, called the first transmission interface, is used for the wireless transmission module to call the first transmission interface to send a callback function. When the callback function is obtained at the HAL layer, a communication link is established between the server side of the fingerprint HAL and the client side of the wireless transmission module, that is, a communication link for the fingerprint HAL to send data to the wireless transmission module is established. Thus, a control instruction is sent to the wireless transmission module according to the callback function. Among them, the Invokecommand interface, called the second transmission interface, is used for the wireless transmission module to send the execution result data for the fingerprint event obtained from the fingerprint module, that is, the feedback data of the fingerprint event, to the fingerprint HAL, thereby establishing a communication link between the client side of the wireless transmission module and the server side of the fingerprint HAL, that is, a communication link for the wireless transmission module to send data to the fingerprint HAL is established. Among them, the communication link is also called the communication channel.
[0064] Step 305, obtain the feedback data of the fingerprint event sent by the wireless transmission module calling the second transmission interface of the inter-process communication interface.
[0065] Among them, the feedback data of the fingerprint event is obtained by the fingerprint device executing the control instruction. Different fingerprint events correspond to different control instructions. After executing the control instruction, different feedback data is obtained. As an example, the feedback data is sent in the form of a data packet.
[0066] In the embodiment of the present application, the fingerprint HAL obtains the feedback data of the fingerprint event sent by the second transmission interface that the wireless transmission module calls the inter-process communication interface, realizing the data transmission from the wireless transmission module to the fingerprint HAL.
[0067] Step 306: Parse the feedback data to obtain the execution result of the fingerprint event, and send the execution result to the fingerprint framework layer.
[0068] In the embodiment of the present application, after receiving the feedback data of the fingerprint event, the fingerprint HAL parses the feedback data in an independent thread to obtain the execution result of the fingerprint event, and calls the callback function of the fingerprint framework layer to send the execution result to the fingerprint framework layer.
[0069] Among them, different fingerprint events result in different execution results after the fingerprint device executes the corresponding control instructions. For example, if the fingerprint event is an authentication event, the execution result obtained after the fingerprint device executes the recognition control instruction is the fingerprint authentication result. The fingerprint authentication result includes successful authentication or authentication failure. If the fingerprint event is an enrollment event, that is, a new fingerprint or a re-enrollment of a certain user's fingerprint is required, the execution result is the fingerprint enrollment result, and the fingerprint enrollment result includes successful fingerprint enrollment or fingerprint enrollment failure.
[0070] As an implementation method, in practical applications, during the process of the fingerprint HAL processing a fingerprint event, another fingerprint event may be triggered during the processing. To facilitate the processing of multiple fingerprint events, the fingerprint HAL can store the results of multiple fingerprint events, that is, the feedback data, through an event queue, and then process the results of multiple fingerprint events in the event queue in sequence. For example Figure 4As shown, fingerprint events include authentication events, enrollment events, cancellation of enrollment events, deletion of fingerprint events, etc. After the fingerprint framework layer sends each fingerprint event to the fingerprint HAL for processing, control instructions for each fingerprint event are generated. The callback function of the wireless transmission module is called to send the control instructions for each fingerprint event to the wireless transmission module, and then the control instructions for each fingerprint event are sent to the fingerprint device through the wireless transmission module. The fingerprint device executes the control instructions for each fingerprint event to obtain the execution results of each fingerprint event. Each execution result is the feedback data of each fingerprint event. For example, the enrollment result is indicated by the feedback data of the enrollment event, and the feedback data of each fingerprint event is sent to the fingerprint HAL through the wireless transmission protocol. The fingerprint HAL stores each fingerprint event in the event queue and parses each fingerprint event stored in the event queue to obtain the execution results of each fingerprint event. The fingerprint HAL then calls the callback function of the fingerprint framework layer to send the execution results of each fingerprint event to the fingerprint framework layer.
[0071] In one implementation of the embodiments of the present application, the execution priority of the cancellation event among each fingerprint event is the highest. The feedback data of the fingerprint event is placed in the event queue. In one scenario, if the fingerprint event is a cancellation event, the feedback data of the cancellation event in the event queue is processed. That is to say, the execution priority of the feedback data of the cancellation event is the highest. Regardless of which fingerprint event's feedback data is currently being executed in the event queue, the feedback data of the currently executed fingerprint event is suspended, and the feedback data of the cancellation event is executed. In response to the completion of the parsing of the feedback data of the cancellation event, the execution result of the cancellation fingerprint event is sent to the fingerprint framework layer. Among them, the set processing order can be the order of first in first out.
[0072] As a scenario example, during the process of a user enrolling the fingerprint of user A through the fingerprint device, the mobile phone communicating with the fingerprint device goes into the screen-off state. After the screen-off, the user cannot view the enrollment progress, etc. Then the user needs to unlock the mobile phone through the fingerprint device. The fingerprint framework layer will send a cancellation event message to the fingerprint HAL when detecting the screen-off state. The fingerprint HAL generates a control instruction for the enrollment cancellation instruction including the cancellation of fingerprint enrollment according to the cancellation event and sends it to the fingerprint device through the Bluetooth module. The fingerprint device cancels the fingerprint enrollment according to the enrollment cancellation instruction and packages the information of the cancelled fingerprint enrollment into feedback data and sends it to the fingerprint HAL. When the fingerprint HAL recognizes that the feedback data corresponds to the cancellation event, it will first process the feedback data to identify whether the enrollment is successfully cancelled and send the execution result to the fingerprint framework layer. When the fingerprint framework layer determines that the fingerprint enrollment is cancelled, it will send a fingerprint verification event to the fingerprint HAL to execute the fingerprint verification process, so as to ensure that other fingerprint functions are not affected in the case of interrupted fingerprint enrollment.
[0073] In another scenario of the embodiment of the present application, if the fingerprint event is not a cancellation event, according to the set processing order, the feedback data of the target fingerprint event to be parsed in the event queue is determined, the execution result of the target fingerprint event is obtained by parsing the feedback data of the target fingerprint event, and the execution result of the target fingerprint event is sent to the fingerprint framework layer.
[0074] In the fingerprint data transmission method of the present application, a message of a fingerprint event sent by the fingerprint framework layer is obtained, the message of the fingerprint event is processed to generate a control instruction, and the control instruction is sent to the wireless transmission module according to the inter-process communication interface. The control instruction is sent to the fingerprint device through the wireless transmission module. The control instruction is used to control the fingerprint device. A transmission channel between the fingerprint HAL and the wireless transmission module is established through the inter-process communication interface for communication between the fingerprint HAL and the wireless transmission module, so that the control instruction can be sent to the wireless transmission module, and then the control instruction can be sent to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device by the fingerprint HAL of the electronic device. At the same time, the fingerprint device can also send the feedback data of the obtained fingerprint event to the fingerprint HAL through the second transmission interface of the inter-process communication interface called by the wireless transmission protocol, realizing the fingerprint HAL communication between the fingerprint device and the electronic device, expanding the compatibility of the electronic device with the fingerprint device, and being able to be compatible with any remote fingerprint device that meets the wireless communication protocol. It also improves the interchangeability and expandability between the fingerprint device and the electronic device. Users can replace the remote fingerprint device that meets the interface definition according to their needs, effectively improving the maintenance convenience of the fingerprint module. The remote fingerprint device can be repaired independently without affecting the user's use of the electronic device. At the same time, existing tablet computer devices of the Pad type can integrate fingerprint devices on existing Bluetooth office devices, and cooperate with the technical solutions of the foregoing embodiments of the present application to achieve the effect of quickly expanding and realizing fingerprint functions.
[0075] Based on the above embodiments, the embodiment of the present application provides another fingerprint data transmission method for the wireless transmission module of an electronic device. Figure 5 It is a schematic flowchart of another fingerprint data transmission method provided by the embodiment of the present application, as Figure 5 shown. The method includes the following steps:
[0076] Step 501, obtain a control instruction of a fingerprint event sent by the fingerprint hardware abstraction layer (HAL) based on the inter-process communication interface.
[0077] Among them, the wireless transmission module can be a near field communication (NFC) module, a Bluetooth module, or a method of bridging based on a wireless router and then remotely networking.
[0078] Step 502, send the control instruction of the fingerprint event to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module.
[0079] Among them, the control instruction is used to control the fingerprint device.
[0080] Among them, the explanations in the foregoing embodiments also apply to this embodiment, with the same principle, and will not be elaborated here.
[0081] In the fingerprint data transmission method of the embodiment of the present application, a transmission channel is established between the fingerprint HAL and the wireless transmission module through the inter-process communication interface, communication between the fingerprint HAL and the wireless transmission module is realized, and the control instruction can be sent to the wireless transmission module, and then the control instruction is sent to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device and improving the scalability.
[0082] Based on the above embodiments, the embodiment of the present application provides another fingerprint data transmission method for the wireless transmission module of an electronic device. Figure 6 It is a schematic flowchart of another fingerprint data transmission method provided by the embodiment of the present application, as Figure 6 shown, the method includes the following steps:
[0083] Step 601, obtain the control instruction of the fingerprint event sent by the fingerprint HAL based on the first transmission interface in the inter-process communication interface.
[0084] Step 602, send the control instruction of the fingerprint event to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module.
[0085] Among them, the control instruction is used to control the fingerprint device.
[0086] Step 603, call the second transmission interface of the inter-process communication interface to send the feedback data of the fingerprint event to the fingerprint HAL.
[0087] Among them, the feedback data of the fingerprint event is obtained by the fingerprint device executing the control instruction and sent to the wireless transmission module, specifically sent through the wireless transmission protocol corresponding to the wireless transmission module.
[0088] Among them, the explanations in the foregoing embodiments also apply to this embodiment, with the same principle, and will not be elaborated here.
[0089] In the fingerprint data transmission method of the present application, a transmission channel is established between the fingerprint HAL and the wireless transmission module through an inter-process communication interface to communicate between the fingerprint HAL and the wireless transmission module, enabling the control instruction to be sent to the wireless transmission module, and then the control instruction is sent to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device by the fingerprint HAL of the electronic device. At the same time, the fingerprint device can also send the feedback data of the obtained fingerprint event to the fingerprint HAL through the second transmission interface of the inter-process communication interface by using the wireless transmission protocol, realizing the fingerprint HAL communication between the fingerprint device and the electronic device, expanding the compatibility of the electronic device with the fingerprint device, being able to be compatible with any remote fingerprint device that meets the wireless communication protocol, and also improving the interchangeability and expandability between the fingerprint device and the electronic device. The user can replace the remote fingerprint device that meets the interface definition according to needs, effectively improving the maintenance convenience of the fingerprint module. The remote fingerprint device can be repaired independently without affecting the user's use of the electronic device. At the same time, existing Pad-type tablet computer devices can integrate fingerprint devices on existing Bluetooth office devices and cooperate with the technical solutions of the foregoing embodiments of the present application to achieve the effect of quickly expanding and realizing the fingerprint function.
[0090] As an example, Figure 7 FIG. is a schematic diagram of the architecture for fingerprint data transmission provided by an embodiment of the present application. As Figure 7 shown, taking the electronic device as a mobile phone and the wireless transmission module as a Bluetooth module as an example, the verification scenario and the enrollment scenario for fingerprint recognition are illustrated by examples.
[0091] As Figure 7 shown, the Bluetooth module is located in the Bluetooth framework layer and the kernel layer. The Bluetooth framework layer drives the Bluetooth kernel in the kernel layer to control the Bluetooth communication between the Bluetooth module in the mobile phone and the Bluetooth module in the remote fingerprint device, realizing the transmission of data from the Bluetooth module to the fingerprint device.
[0092] As an example, fingerprint verification implemented by a remote fingerprint device:
[0093] Step a, the fingerprint framework layer on the mobile phone side sends a message of the fingerprint verification event to the fingerprint HAL through the HIDL_1 interface. After receiving it, the fingerprint HAL parses the message of the fingerprint event to generate a control instruction for the verification event; among them, the HIDL_1 interface is a general interface defined in the Android system.
[0094] Step b: The fingerprint HAL sends a control instruction to the Bluetooth module through the Bluetooth callback function corresponding to the custom HIDL_2 interface. The control instruction includes an authentication instruction. The Bluetooth module forwards the control instruction to the fingerprint device at the remote end. After receiving the control instruction and parsing the authentication instruction, the fingerprint device monitors whether a user's finger covers the fingerprint recognition area, that is, waits for fingerprint authentication. The HIDL_2 interface is a custom interface of this application that can implement data transmission between the fingerprint HAL and the Bluetooth module.
[0095] Step c: In response to detecting that a finger has pressed on the fingerprint recognition area, the fingerprint device collects the fingerprint, performs fingerprint authentication on the collected finger fingerprint, and packages the authentication result as feedback data, which is sent to the Bluetooth module of the mobile phone via Bluetooth.
[0096] Step d: Furthermore, the Bluetooth module sends the feedback data of the fingerprint device to the fingerprint HAL by calling the second transmission interface in the HIDL_2 interface.
[0097] Step e: The fingerprint HAL parses the feedback data to obtain the authentication result, and sends the result of this fingerprint authentication event to the fingerprint framework layer. Specifically, it determines whether this authentication is successful. If the authentication is successful, it sends the successful result of this fingerprint authentication event to the fingerprint framework layer through the callback function of the HIDL_1 interface. If it fails, it sends the failure result to the fingerprint framework layer through the HIDL_1 interface.
[0098] Among them, Figure 7 the Bluetooth packet receiving and sending includes: control instructions and feedback data.
[0099] As an example, fingerprint entry implemented through a remote fingerprint device:
[0100] Step 1: After receiving the user's entry instruction, the fingerprint framework layer sends a message of the fingerprint entry event to the fingerprint HAL through the HIDL_1 interface. After receiving it, the fingerprint HAL parses the message of the fingerprint event and generates a control instruction for the entry event;
[0101] Step 2: The fingerprint HAL sends a control instruction for the entry event to the Bluetooth module through the Bluetooth callback function corresponding to the HIDL_2 interface. The control instruction includes an entry instruction. The Bluetooth module forwards the control instruction to the fingerprint device at the remote end. After receiving the control instruction and parsing the entry instruction, the fingerprint device monitors whether a user's finger covers the fingerprint recognition area, that is, waits for fingerprint entry.
[0102] Step 3: When it is detected that a finger presses on the fingerprint recognition area, the fingerprint device captures the feature point map of the finger to collect the user's fingerprint, generates the corresponding fingerprint data of the user for the collected fingerprint, packs the fingerprint data into feedback data, and sends the feedback data of the fingerprint data entered this time to the Bluetooth module via Bluetooth.
[0103] Step 4: The Bluetooth module sends the feedback data of the fingerprint data entered this time by the fingerprint device to the fingerprint HAL through the second transmission interface in the HIDL_2 interface.
[0104] Step 5: The fingerprint HAL parses and identifies the feedback data of this fingerprint entry, obtains the result of whether the entry is successful, and sends the entry result to the fingerprint framework layer through the HIDL_1 interface.
[0105] Step 6: If the fingerprint framework determines that this entry is successful, it continues to send a fingerprint entry message to the fingerprint HAL to increase the progress of fingerprint entry, so as to complete the entire fingerprint entry process through multiple entries.
[0106] This is because, during the fingerprint entry process, the user needs to press multiple times before the entry is completely successful. Each press captures the feature point map of different parts of the finger. The fingerprint software process repeats Steps 1 to 6 until the data collection of the finger is completed, and a fingerprint template of this finger is formed and saved in the remote fingerprint device.
[0107] Other fingerprint events, such as remote fingerprint processes like enumeration and deletion, are similar to the remote fingerprint verification process and will not be elaborated in this embodiment.
[0108] It should be noted that during the process of transmitting data through the HIDL_2 interface above, the data is transmitted through a cache buffer. The sender applies for a buffer of heap memory, fills the data structure into the buffer, and then sends it to the receiver through the HIDL_2 interface. The receiver receives the buffer, restores the data structure, and then retrieves the data. Among them, the sender includes the Bluetooth module and the fingerprint HAL, that is to say, the two-way communication between the Bluetooth module and the fingerprint HAL is in this data transmission form.
[0109] As an implementation method, the control instruction can carry the identification information of the fingerprint event when it is sent, and the control instruction also includes the identification information of the fingerprint event. When the Bluetooth module receives the control instruction of the fingerprint event, it can compare the identification information of the fingerprint event carried by the received control instruction with the identification information of the fingerprint event included in the control instruction to determine whether the currently received control instruction of the fingerprint event is the control instruction of the fingerprint event sent by the fingerprint HAL, so as to realize the verification of the control instruction of the fingerprint event and improve the reliability of instruction issuance.
[0110] Optionally, the mobile phone can be connected to multiple fingerprint devices. Different fingerprint devices have different requirements for Bluetooth connection with the mobile phone and data transmission. In this application, the control instruction can further include connection data. The connection data is used for the Bluetooth module to determine whether encrypted transmission is required when the Bluetooth module sends a control instruction to the target fingerprint device to be connected according to the connection data in the control instruction when receiving the control instruction of the fingerprint event sent by the fingerprint HAL, and which connection method the Bluetooth module and the target fingerprint device need to adopt.
[0111] To implement the above embodiments, an embodiment of this application further provides a fingerprint data transmission device.
[0112] Figure 8 FIG. is a schematic structural diagram of a fingerprint data transmission device provided by an embodiment of this application, for the fingerprint hardware abstraction layer (HAL) of an electronic device.
[0113] As Figure 8 shown, the device may include:
[0114] An acquisition module 81, configured to acquire a message of a fingerprint event sent by a fingerprint framework layer.
[0115] A generation module 82, configured to process the message of the fingerprint event to generate a control instruction.
[0116] A sending module 83, configured to send the control instruction to a wireless transmission module according to an inter-process communication interface; wherein, the control instruction is sent to a fingerprint device through the wireless transmission module; the control instruction is used to control the fingerprint device.
[0117] Further, in an implementation manner of the embodiment of this application, the sending module 83 is specifically configured to:
[0118] Define the inter-process communication interface; the inter-process communication interface includes a first transmission interface; based on the first transmission interface, send the control instruction to the wireless transmission module.
[0119] In an implementation manner of the embodiment of this application, the sending module 83 is specifically configured to:
[0120] Acquire feedback data of the fingerprint event sent by a second transmission interface of the wireless transmission module calling the inter-process communication interface; wherein, the feedback data of the fingerprint event is obtained by the fingerprint device executing the control instruction;
[0121] Parse the feedback data to obtain an execution result of the fingerprint event, and send the execution result to the fingerprint framework layer.
[0122] In one implementation manner of the embodiment of the present application, the sending module 83 is specifically configured to:
[0123] Put the feedback data of the fingerprint event into the event queue;
[0124] If the fingerprint event is a cancellation event, parse the feedback data of the cancellation event in the event queue to obtain the execution result of the cancelled fingerprint event;
[0125] Send the execution result of the cancelled fingerprint event to the fingerprint framework layer.
[0126] In one implementation manner of the embodiment of the present application, the sending module 83 is specifically configured to:
[0127] If the fingerprint event is not a cancellation event, determine the feedback data of the target fingerprint event to be parsed in the event queue according to the set processing order;
[0128] Parse the feedback data of the target fingerprint event to obtain the execution result of the target fingerprint event;
[0129] Send the execution result of the target fingerprint event to the fingerprint framework layer.
[0130] In one implementation manner of the embodiment of the present application, the inter-process communication interface is defined based on the Interface Definition Language (IDL) technology.
[0131] It should be noted that the foregoing explanation of the method embodiment also applies to the device of this embodiment, and details are not described herein again.
[0132] In the fingerprint data transmission device proposed by the embodiment of the present application, a message of a fingerprint event sent by the fingerprint framework layer is obtained, the message of the fingerprint event is processed to generate a control instruction, and the control instruction is sent to the wireless transmission module according to the inter-process communication interface. The control instruction is sent to the fingerprint device through the wireless transmission module. The control instruction is used to control the fingerprint device. A transmission channel between the fingerprint HAL and the wireless transmission module is established through the inter-process communication interface to realize communication between the fingerprint HAL and the wireless transmission module. It is possible to send the control instruction to the wireless transmission module, and then send the control instruction to the fingerprint device through the wireless transmission module, realizing the control of the external fingerprint device and improving the scalability.
[0133] To implement the above embodiment, the embodiment of the present application also proposes a fingerprint data transmission device.
[0134] Figure 9 It is a schematic structural diagram of a fingerprint data transmission device provided by the embodiment of the present application for the wireless transmission module of an electronic device.
[0135] As shown Figure 9 the device may include:
[0136] An acquisition module 91, configured to acquire a control instruction of a fingerprint event sent by a fingerprint hardware abstraction layer (HAL) based on an inter - process communication interface.
[0137] A sending module 92, configured to send the control instruction of the fingerprint event to a fingerprint device based on a wireless transmission protocol corresponding to the wireless transmission module; wherein, the control instruction is used to control the fingerprint device.
[0138] Further, in an implementation manner of the embodiment of the present application, the acquisition module 91 is specifically configured to:
[0139] Acquire the control instruction of the fingerprint event sent by the fingerprint HAL based on a first transmission interface in the inter - process communication interface.
[0140] In an implementation manner of the embodiment of the present application, the device further includes:
[0141] A sending module, configured to call a second transmission interface of the inter - process communication interface to send feedback data of the fingerprint event to the fingerprint HAL; wherein, the feedback data of the fingerprint event is obtained after the fingerprint device executes the control instruction and is sent to the wireless transmission module.
[0142] In an implementation manner of the embodiment of the present application, the inter - process communication interface is defined based on the Interface Definition Language (IDL) technology.
[0143] It should be noted that the foregoing explanation of the method embodiment also applies to the device of this embodiment, and details are not described herein again.
[0144] In the fingerprint data transmission device proposed in the embodiment of the present application, a transmission channel is established between the fingerprint HAL and the wireless transmission module through the inter - process communication interface, communication between the fingerprint HAL and the wireless transmission module is realized, the control instruction can be sent to the wireless transmission module, and then the control instruction is sent to the fingerprint device through the wireless transmission module, so as to realize the control of the external fingerprint device and improve the scalability.
[0145] To implement the above - mentioned embodiment, the present application also proposes an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method described in the foregoing method embodiment is implemented.
[0146] To implement the above - mentioned embodiment, the present application also proposes a non - transitory computer - readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method described in the foregoing method embodiment is implemented.
[0147] To implement the above embodiments, the present application also provides a computer program product, on which a computer program is stored. When the computer program is executed by a processor, the method described in the foregoing method embodiments is implemented.
[0148] Figure 10 FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0149] Refer to Figure 10 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0150] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0151] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may 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, a magnetic disk, or an optical disk.
[0152] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0153] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0154] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0155] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0156] The sensor component 814 includes one or more sensors for providing an assessment of the various aspects of the state of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0157] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a communication standard-based wireless network, such as WiFi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 further 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.
[0158] In an exemplary embodiment, the electronic device 800 can 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 for performing the above method.
[0159] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0160] In the description of this specification, the descriptions referring to terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without conflict, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0161] Furthermore, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically and clearly defined.
[0162] Any process or method description represented in a flowchart or otherwise described herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logic function or process. The scope of the preferred embodiments of the present application includes additional implementations, where functions may be executed not in the order shown or discussed, including in a substantially simultaneous manner according to the functions involved or in a reverse order, which should be understood by those skilled in the art to which the embodiments of the present application pertain.
[0163] The logic and / or steps represented in a flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing a logical function, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in conjunction with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection portion having one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other appropriate processing as necessary, and then storing it in a computer memory.
[0164] It should be understood that various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple 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 in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
[0165] Those of ordinary skill in the art can understand that all or part of the steps carried out in the method of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0166] In addition, in each of the embodiments of the present application, the functional units can be integrated into one processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. When the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0167] The above-mentioned storage medium can be a read-only memory, a magnetic disk, an optical disc, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. A fingerprint data transmission method, characterized in that: Fingerprint hardware abstraction layer HAL for electronic devices, including: Get the fingerprint event message sent by the fingerprint framework layer; Processing the message of the fingerprint event and generating a control instruction; The control instruction is sent to the wireless transmission module according to the inter-process communication interface; wherein the control instruction is sent to the fingerprint device through the wireless transmission module; and the control instruction is used to control the fingerprint device.
2. The method according to claim 1, characterized in that The step of sending the control instruction to the wireless transmission module according to the inter-process communication interface includes: Defining the inter-process communication interface; the inter-process communication interface includes a first transmission interface; Based on the first transmission interface, the control instruction is sent to the wireless transmission module.
3. The method according to claim 2, characterized in that After sending the control instruction to the wireless transmission module based on the first transmission interface, the method further includes: Acquire feedback data of the fingerprint event sent by the wireless transmission module calling the second transmission interface of the inter-process communication interface; wherein the feedback data of the fingerprint event is obtained by the fingerprint device executing the control instruction; The feedback data is parsed to obtain the execution result of the fingerprint event, and the execution result is sent to the fingerprint framework layer.
4. The method according to claim 3, characterized in that The step of parsing the feedback data to obtain an execution result of the fingerprint event and sending the execution result to the fingerprint framework layer includes: Put the feedback data of the fingerprint event into the event queue; If the fingerprint event is a cancel event, parsing the feedback data of the cancel event in the event queue to obtain the execution result of the cancel event; The execution result of the cancel event is sent to the fingerprint framework layer.
5. The method according to claim 4, characterized in that The method further comprises: If the fingerprint event is not a cancel event, determining the feedback data of the target fingerprint event to be parsed in the event queue according to the set processing order; Parsing the feedback data of the target fingerprint event to obtain the execution result of the target fingerprint event; The execution result of the target fingerprint event is sent to the fingerprint framework layer.
6. The method according to any one of claims 1 to 5, characterized in that The inter-process communication interface is defined based on the interface definition language HIDL technology.
7. A fingerprint data transmission method, characterized in that: A wireless transmission module for electronic equipment, comprising: Get the control instructions of the fingerprint event sent by the fingerprint hardware abstraction layer HAL based on the inter-process communication interface; The control instruction of the fingerprint event is sent to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module; wherein the control instruction is used to control the fingerprint device.
8. The method according to claim 7, characterized in that The method of obtaining the control instruction of the fingerprint event sent by the fingerprint hardware abstraction layer HAL based on the inter-process communication interface includes: Acquire a control instruction of the fingerprint event sent by the fingerprint HAL based on the first transmission interface in the inter-process communication interface.
9. The method according to claim 7, characterized in that After sending the control instruction of the fingerprint event to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module, the method further includes: The second transmission interface of the inter-process communication interface is called to send the feedback data of the fingerprint event to the fingerprint HAL; wherein the feedback data of the fingerprint event is obtained by the fingerprint device executing the control instruction and sent to the wireless transmission module.
10. The method according to any one of claims 7 to 9, characterized in that: The inter-process communication interface is defined based on the interface definition language HIDL technology.
11. A fingerprint data transmission device, characterized in that: Fingerprint hardware abstraction layer HAL for electronic devices, including: The acquisition module is used to obtain the fingerprint event message sent by the fingerprint framework layer; A generating module, used for processing the message of the fingerprint event and generating a control instruction; The sending module is used to send the control instruction to the wireless transmission module according to the inter-process communication interface; wherein the control instruction is sent to the fingerprint device through the wireless transmission module; the control instruction is used to control the fingerprint device.
12. A fingerprint data transmission device, characterized in that: A wireless transmission module for electronic equipment, comprising: An acquisition module is used to obtain control instructions of fingerprint events sent by the fingerprint hardware abstraction layer HAL based on the inter-process communication interface; The sending module is used to send the control instruction of the fingerprint event to the fingerprint device based on the wireless transmission protocol corresponding to the wireless transmission module; wherein the control instruction is used to control the fingerprint device.
13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method according to any one of claims 1 to 6 is implemented, or the method according to any one of claims 7 to 10 is implemented.
14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented, or the method according to any one of claims 7 to 10 is implemented.