Hybrid App Framework for Cross-Platform Printer Communication
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional mobile applications face challenges in executing image processing efficiently due to limitations in communication with external devices, particularly printers, and require separate development for different operating systems, leading to increased development costs and reduced flexibility.
Innovation Solution
A hybrid application framework with a three-layered structure, comprising a script layer, native layer, and OS layer, enables seamless communication with external devices by requesting and executing native instructions, allowing for dynamic UI design and function addition while supporting multiple communication protocols.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If a script layer (JavaScript) is used for application development, then cross-platform compatibility and ease of development are improved, but execution speed and reliability for complex image processing deteriorate
Solution Approach 1:
The application is divided into two layers: a script layer (HTML5/CSS3/JavaScript) for UI and control logic, and a native layer (C/C++) for performance-critical image processing operations. This segmentation allows each layer to be optimized for its specific function while working together through defined interfaces.
Solution Approach 2:
A hybrid application execution environment acts as an intermediary between the script layer and native layer. It translates script instructions into native code execution, manages memory allocation, and handles communication between layers, ensuring reliable execution of complex image processing tasks while maintaining cross-platform compatibility.
2Speed
If separate native applications are developed for each operating system, then execution speed is improved, but development cost and time increase
Solution Approach 1:
The script layer uses universal web standards (HTML5, CSS3, JavaScript) that can run on any operating system with a compatible execution environment. The native layer is written in C/C++ with platform-specific compilation, allowing the same codebase to execute efficiently on multiple OSes (iOS, Android, Windows, macOS) without requiring separate development for each platform.
3Speed
If image processing is performed in the mobile device, then processing speed is improved, but communication limitations with external devices (printers) cause failures
Solution Approach 1:
The hybrid application execution environment serves as an intermediary that manages communication between the mobile device and external printers. It handles protocol translation, error correction, and data formatting to ensure reliable communication while maintaining fast local image processing capabilities.
4Adaptability or versatility
If Web application architecture is used, then flexibility and dynamic UI design are improved, but operation speed for complex image processing deteriorates
Solution Approach 1:
The application architecture segments functionality into a flexible script layer for dynamic UI design and a high-performance native layer for image processing. The script layer can be easily modified and updated without recompiling the entire application, while the native layer provides optimized execution for computationally intensive tasks through pre-compiled C/C++ code.
Data Source
AI summary
When communicating with a printing apparatus used for the print function of an application, communication with the printing apparatus is requested of a second layer constituted by an instruction set which is translated in advance to be able to execute the instruction set by a processor, in a first layer constituted by a script instruction set which is translated to be able to execute the script instruction set by the processor when executing the application and is executed. In the second layer, communication with the printing apparatus is performed in accordance with the request.


