Host Device RNDIS Network Reconnection Without Restart
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In a Windows system, when a combination device with an SD card is unplugged while the SD card is being accessed, the network connection through the RNDIS device is not restored upon reconnection, requiring a user to restart the host device, which is inconvenient.
Innovation Solution
The host device sends a device descriptor modification instruction to the combination device to modify its descriptor, allowing it to establish a new network connection, considering the device as a new combination device, thus enabling network access without the need for a host device restart.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the combination device is unplugged while the SD card is being accessed, then the network connection is not restored upon reconnection, but the user experience deteriorates requiring a host device restart
Solution Approach 1:
The host device performs preliminary actions by detecting the unplugged state and preserving the network connection in advance. When the combination device is reconnected, the host device already has the connection information ready, enabling automatic reconnection without requiring user intervention or device restart.
Solution Approach 2:
The system implements feedback mechanisms where the host device monitors the connection status of the combination device. When the device is unplugged and reconnected, the host device receives feedback about the reconnection event and automatically restores the network connection based on this feedback, eliminating the need for manual restart operations.
2Reliability
If the host device maintains the network connection after device removal, then network access is preserved, but system resource consumption increases
Solution Approach 1:
The network connection state is made dynamic rather than static. The host device maintains the connection information in a suspended state after device removal, and actively restores it only when reconnection is detected. This dynamic approach allows the system to preserve connection availability while minimizing resource consumption by not maintaining full active connection state unnecessarily.
Data Source
Figure 1~2
Figure 3
Figure 4
AI summary
The embodiments of the present invention provide a method for processing device connection, a combination device and a host device. A method for processing device connection, includes: after being plugged into a host device, receiving a device descriptor modification instruction sent by the host device, modifying a device descriptor according to the device descriptor modification instruction and performing device reconnection processing, sending the modified device descriptor to the host device so that the host device establishes a new network connection according to the modified device descriptor. In the embodiments of the present invention, a user does not need to restart the host device to access the network using a RNDIS device in the combination device, which makes it convenient for the user to operate.