CN116107568A - Mixed APP middleware technology based on HarmonyOS - Google Patents
Mixed APP middleware technology based on HarmonyOS Download PDFInfo
- Publication number
- CN116107568A CN116107568A CN202310130550.4A CN202310130550A CN116107568A CN 116107568 A CN116107568 A CN 116107568A CN 202310130550 A CN202310130550 A CN 202310130550A CN 116107568 A CN116107568 A CN 116107568A
- Authority
- CN
- China
- Prior art keywords
- middleware
- module
- page
- hong
- service interaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a hybrid APP middleware technology based on HarmonyOS, which comprises a middleware functional module, a page control module and a service interaction module, wherein: the middleware functional module is used for packaging the hong system functions and the hardware calling capability and providing the hong system services and functions for the middleware; the page control module is used for reducing the waiting time of the user, improving the concurrency capacity of the system and adopting a cache strategy; taking the dynamic switching effect of the page as a behavior of the page object, and independently outputting the dynamic switching effect; and the service interaction module is used for completing the definition of the interaction interface, the maintenance of the request queue and the parameter and configuration management. The developer can develop corresponding system application by using web development technology, is easy to start, is convenient and quick to develop projects, can rapidly complete the development of the hong Mongolian system application by using simple and well-known web front-end technology, and reduces the development cost; the buffer mechanism is arranged to ensure smooth and smooth page operation and reduce the phenomenon of blocking.
Description
Technical Field
The invention relates to the technical field of terminal application, in particular to a hybrid APP middleware technology based on HarmonyOS.
Background
Along with popularization of wireless mobile applications, mobile terminals also increasingly show a trend of diversification, and different operating systems are adopted, so that the mobile terminals have different display capabilities and data processing capabilities. The current mobile phone mainstream platform and mobile phone models are all many, and the problem of difficult adaptation, in mobile application development, generally face development expense height, cycle length, coverage rate lower scheduling problem.
Through retrieval, chinese patent with bulletin number CN201120323817.4 discloses a cross-platform mobile phone terminal middleware, and aims to achieve the effects of low cost, good universality, small user experience difference and small deployment difficulty.
However, due to the difference of the operating system and the hardware environment, the HamrnyOS of the mobile phone operating system is released, so as to accelerate the ecological construction of the hong system, realize the rapid development of the hong application, and provide the development of the hong application by using a front-end development technology mode, so that the invention designs a hybrid APP middleware technology based on the HarmonyOS.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a hybrid APP middleware technology based on HarmonyOS.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the hybrid APP middleware technology based on HarmonyOS comprises a middleware functional module, a page control module and a service interaction module, wherein:
the middleware functional module is used for packaging the hong system functions and the hardware calling capability and providing the hong system services and functions for the middleware;
the page control module is used for reducing the waiting time of the user, improving the concurrency capacity of the system and adopting a cache strategy; taking the dynamic switching effect of the page as a behavior of the page object, and independently outputting the dynamic switching effect;
the service interaction module is used for completing the definition of the interaction interface, the maintenance of the request queue and the parameter and configuration management, and the service interaction module receives the request from the web terminal and is responsible for processing the maintenance of the request queue.
Further, the system also comprises a buffer module, wherein the buffer module specifically comprises the following steps: and only three pages are stored in the memory each time, the rest historical pages are cached in the external storage of the terminal, and the loading is carried out when the historical pages are needed.
The multi-thread processing module is used for providing event processing threads for the buffer module, the main thread only processes three page buffers and distributes other tasks to other threads, and when the main thread processes the spare, the information data is interacted.
Compared with the prior art, the invention has the beneficial effects that:
the developer can develop the corresponding system application by using the web development technology, so that the developer is easy to start, and the project development is convenient and quick.
The method has the advantages that a developer can use a simple and well-known web front-end technology to rapidly finish the application development of the hong Mongolian system, and the development cost is reduced;
the buffer mechanism is arranged to ensure smooth and smooth page operation and reduce the phenomenon of blocking.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention.
FIG. 1 is a flow chart of architecture design and functions of a Harmony OS-based hybrid APP middleware;
FIG. 2 is a flow chart of page switching in an embodiment of the invention;
fig. 3 is a logic block diagram of a hybrid APP middleware system based on HarmonyOS.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
As shown in fig. 1-3, the harmyos hybrid APP-based middleware technology is developed using a kind of native B/S model, middleware provides the service functions of the system base,
the front-end development adopts a web front-end framework NoDom to develop pages, and a function interface realized through a middleware is used for calling the functions of the HarmonyOS system, so that the mobile-end application development supporting the HaromonyOS is realized.
The page control module provides front-end page loading and control functions, and realizes the page loading and caching functions by combining a caching strategy according to user configuration.
The middleware technology based on the HarmonyOS hybrid APP comprises a middleware functional module, a page control module and a service interaction module, wherein the middleware functional module is used for packaging the hong system function and the hardware calling capability and providing the hong system service and the function for the middleware;
the page control module is used for reducing the waiting time of the user, improving the concurrency capacity of the system and adopting a cache strategy; taking the dynamic switching effect of the page as a behavior of the page object, and independently outputting the dynamic switching effect;
the service interaction module is used for completing the definition of the interaction interface, the maintenance of the request queue and the parameter and configuration management, and the service interaction module receives the request from the web terminal and is responsible for processing the maintenance of the request queue.
In a specific embodiment of the present application, the system further includes a buffer module, where the buffer module specifically includes the following steps: and only three pages are stored in the memory each time, the rest historical pages are cached in the external storage of the terminal, and the loading is carried out when the historical pages are needed.
In a specific embodiment of the present application, the system further includes a multithreading module, where the multithreading module provides an event processing thread for the cache module, and the main thread processes only three page caches and distributes the rest tasks to other threads, and when the main thread processes the spare, the multithreading module interacts information data.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.
Claims (3)
1. The utility model provides a hybrid APP middleware technique based on HarmonyOS, includes middleware functional module, page control module and service interaction module, wherein:
the middleware functional module is used for packaging the hong system functions and the hardware calling capability and providing the hong system services and functions for the middleware;
the page control module is used for reducing the waiting time of the user, improving the concurrency capacity of the system and adopting a cache strategy; taking the dynamic switching effect of the page as a behavior of the page object, and independently outputting the dynamic switching effect;
the service interaction module is used for completing the definition of the interaction interface, the maintenance of the request queue and the parameter and configuration management, and the service interaction module receives the request from the web terminal and is responsible for processing the maintenance of the request queue.
2. The harmony os-based hybrid APP middleware technology of claim 1, further comprising a caching module, wherein the caching module specifically comprises the following steps of: and only three pages are stored in the memory each time, the rest historical pages are cached in the external storage of the terminal, and the loading is carried out when the historical pages are needed.
3. The harmony os-based hybrid APP middleware technology of claim 2 further comprising a multithreading module that provides event processing threads to the caching module, the main thread processing only three page caches and distributing remaining tasks to other threads, and interacting information data when the main thread processes a void.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310130550.4A CN116107568A (en) | 2023-02-17 | 2023-02-17 | Mixed APP middleware technology based on HarmonyOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310130550.4A CN116107568A (en) | 2023-02-17 | 2023-02-17 | Mixed APP middleware technology based on HarmonyOS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116107568A true CN116107568A (en) | 2023-05-12 |
Family
ID=86262314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310130550.4A Pending CN116107568A (en) | 2023-02-17 | 2023-02-17 | Mixed APP middleware technology based on HarmonyOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116107568A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116483328A (en) * | 2023-06-19 | 2023-07-25 | 广州信位通讯科技有限公司 | System and method for running HongMong APP on ThreadX embedded software platform |
-
2023
- 2023-02-17 CN CN202310130550.4A patent/CN116107568A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116483328A (en) * | 2023-06-19 | 2023-07-25 | 广州信位通讯科技有限公司 | System and method for running HongMong APP on ThreadX embedded software platform |
CN116483328B (en) * | 2023-06-19 | 2023-09-12 | 广州信位通讯科技有限公司 | System and method for running HongMong APP on ThreadX embedded software platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9104476B2 (en) | Opportunistic multitasking of VOIP applications | |
US8438409B2 (en) | Operating system (OS) virtualisation and processor utilization thresholds for minimizing power consumption in mobile phones | |
US9411390B2 (en) | Integrated circuit device having power domains and partitions based on use case power optimization | |
US8762755B2 (en) | Methods and systems for power management in a data processing system | |
JP5536014B2 (en) | Virtual device architecture for mobile phones | |
CN100517221C (en) | Efficient multiprocessor system and methods thereof | |
US9423846B2 (en) | Powered ring to maintain IO state independent of the core of an integrated circuit device | |
CN108984264A (en) | The implementation method of virtual GPU, apparatus and system | |
CN111597042A (en) | Service thread running method and device, storage medium and electronic equipment | |
US20090204835A1 (en) | Use methods for power optimization using an integrated circuit having power domains and partitions | |
CN116107568A (en) | Mixed APP middleware technology based on HarmonyOS | |
JP2015097106A (en) | Techniques for setting events in multi-threaded system | |
US20110283291A1 (en) | Mobile device and application switching method | |
CN109284183A (en) | Cardon playback method, device, computer storage medium and terminal | |
US8769547B2 (en) | Reduced data transfer during processor context switching | |
WO2024046088A1 (en) | Task scheduling method and related device | |
CN103257894A (en) | Program management method and electronic terminal | |
US11200866B1 (en) | Low latency composer | |
CN100498714C (en) | Method for constituting television software system using mode machine | |
CN104853418A (en) | Low consumption terminal and low power consumption control method | |
US20240126600A1 (en) | Service process invoking method and related apparatus | |
US7778662B2 (en) | Distribution of tasks as a function of the operating mode in mobile communication terminals having two or more microprocessors | |
CN111651233B (en) | Vehicle-mounted double-screen multimedia dynamic frequency modulation method and system and computer equipment | |
CN113608843B (en) | Coroutine implementation method and system | |
Wang et al. | Design and Implementation of a Novel User Interface for Embedded System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |