RILD Thread Segmentation for AP-Modem Interaction Bottlenecks
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The interaction between an application process (AP) and a modem in Android systems is inefficient due to frequent interruptions at the modem end, reducing performance when handling multiple tasks.
Innovation Solution
Establishing multiple Radio Interface Layer Daemon (RILD) threads between the AP and modem end, each assigned a specific task type, allowing messages to be sent through corresponding threads, thereby improving interaction efficiency by enabling simultaneous processing of different tasks.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the conventional RIL sends each AT command to the serial port causing the modem end to be interrupted every time, then the message transmission can be completed, but the performance of the modem end is reduced when handling multiple tasks
Solution Approach 1:
The patent segments the single RIL thread into multiple RILD threads, each responsible for handling specific task types. This segmentation allows parallel processing of different task types without causing repeated interruptions to the modem end, thereby improving interaction efficiency while reducing time loss.
Solution Approach 2:
The patent introduces a new dimension of thread-level parallelism by creating multiple RILD threads operating simultaneously. Each thread handles different task types (communication, SIM card operations, data tasks) in parallel, transforming the single-threaded sequential processing into multi-threaded concurrent processing.
2Productivity
If multiple RILD threads are established to handle different task types simultaneously, then the interaction efficiency is improved, but the system complexity increases
Solution Approach 1:
The system segments task handling into specialized RILD threads based on task type (communication, SIM card operations, data tasks). Each thread is dedicated to specific task types, which simplifies the management logic within each thread while achieving parallel processing at the system level.
Solution Approach 2:
The RILD threads maintain message channels that can handle different types of messages within their designated task categories. This universal message channel design within each specialized thread reduces the need for complex thread-specific protocols while maintaining task-type specialization.
Data Source
AI summary
Disclosed are a method and system for interaction between an AP and a Modem. The method comprises: when an AP end sends a message to a Modem end, acquiring a service type corresponding to the message; searching, according to the service type, in pre-set multiple RILD threads for an RILD thread corresponding thereto; and sending the message to the Modem end through the RILD thread.

