Android Hardware Input Processing for Bidirectional Data Control
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing Android system's data processing flow for hardware input is time-consuming and complex, limiting the application layer's ability to actively acquire and control hardware input data, with data transmission occurring only in one direction and lacking support for complex information and control functions.
Innovation Solution
A data processing method that involves acquiring and converting hardware data into a standard format, dividing it into touch event data and control protocol data, and dispatching these through an event dispatching mechanism to corresponding application software, enabling bidirectional interaction and control over hardware devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the system uses the standard Android input structure for data processing, then the system maintains compatibility and stability, but the data processing flow becomes time-consuming and complex
Solution Approach 1:
The patent segments the data processing flow into two independent channels: a standard Android input structure for basic touch events and a custom data processing channel for complex gesture recognition. This segmentation allows the custom channel to operate independently with optimized processing, reducing overall processing time while maintaining system compatibility through the standard channel.
Solution Approach 2:
The patent introduces an intermediary component that bridges the hardware driver and application layer, allowing direct data transmission for gesture processing while the standard Android input structure continues to handle basic touch events. This intermediary enables parallel processing paths, reducing the time burden on the standard structure.
2Ease of operation
If the system uses standard data encapsulation format, then the system maintains simplicity and ease of operation, but the application layer cannot acquire complex information for gesture processing
Solution Approach 1:
The patent adds another dimension to data transmission by implementing a dual-channel architecture: the standard Android input structure handles simple touch events with standard encapsulation, while the custom data processing channel handles complex gesture information with extended data formats. This dimensional addition allows complex information acquisition without compromising the simplicity of standard operations.
Solution Approach 2:
The patent segments data transmission into two types: standard touch event data through the Android input structure and complex gesture data through the custom channel. This segmentation allows each channel to be optimized for its specific purpose, with the custom channel supporting complex information formats without affecting the simplicity of standard data acquisition.
3Adaptability or versatility
If the system allows bidirectional communication between application layer and hardware driver, then the application software can actively control hardware devices, but the system complexity increases
Solution Approach 1:
The patent implements a universal data processing framework where the custom data processing channel serves multiple functions: it enables bidirectional communication for gesture control, maintains compatibility with the standard Android input structure, and provides a standardized interface for application development. This multi-functionality reduces overall system complexity by consolidating control capabilities into a unified framework.
Solution Approach 2:
The patent establishes a feedback mechanism where the application layer can send control commands to the hardware driver through the custom data processing channel, and the hardware driver can send status information back to the application layer. This feedback loop enables active control while maintaining system manageability through standardized communication protocols.
Data Source
AI summary
The present invention discloses a data processing method and device, the method including: acquiring apparatus data sent by a hardware driving module, and converting the apparatus data into data in a standard format; dividing, after parsing the apparatus data that is converted into the standard format, the apparatus data into touch event data and control protocol data; encapsulating, according to a preset first data encapsulation format, the touch event data into a touch event; dispatching, according to an event dispatching mechanism of an operating system, the touch event to corresponding application software; parsing the control protocol data, and sending the parsed control protocol data to corresponding application software. The present invention can effectively meet the requirements of an application layer for the acquisition and control of hardware underlying data, and can improve the efficiency of data transmission.


