IP Library Granted Patent US 9,390,041
Granted Patent B2
US 9,390,041 · App. 13/349,099 · Granted Jul 12, 2016

Method for processing device connection, combination device and host device

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,390,041
App. No.
13/349,099
Granted
Jul 12, 2016
Kind
B2
Abstract

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.

Claims (47)

1. A processing method for a combination device connected to a host device, wherein a first network connection, established by the host device for the combination device based on a first device descriptor sent to the host device from the combination device, was not released after a last removal of the combination device from the host device, the method comprising:

after being plugged into the host device again, receiving, by the combination device, a device descriptor modification instruction sent by the host device;

modifying a default device descriptor according to the device descriptor modification instruction to produce a modified device descriptor different than the first device descriptor and performing device reconnection processing;

sending the modified device descriptor to the host device, to enable the host device to establish a new network connection for the combination device responsive to the modified device descriptor; and

accessing a network using the new network connection established by the host device.

2. The method of claim 1 , wherein the device descriptor modification instruction comprises index information of a modification mode of the device descriptor; and

the modifying the device descriptor according to the device descriptor modification instruction further comprises:

modifying the device descriptor according to an operation code corresponding to the index information.

3. The method of claim 1 , wherein the device descriptor modification instruction comprises an operation code of a modification mode of the device descriptor; and

the modifying the device descriptor according to the device descriptor modification instruction comprises:

modifying the device descriptor according to the operation code in the device descriptor modification instruction.

4. The method of claim 3 , wherein the modification mode of the device descriptor comprises at least one mode of modifying a product ID, modifying a vendor ID and modifying a device version ID.

5. The method of claim 1 , wherein the sending the modified device descriptor to the host device specifically comprises:

sending the modified device descriptor to the host device through a port of a device other than a Remote Network Driver Interface Specification (RNDIS) device.

6. A processing method for a combination device connected to a host device, wherein a first network connection, established by the host device for the combination device based on a first device descriptor sent to the host device from the combination device, was not released after a last removal of the combination device from the host device, the method comprising:

after the combination device is plugged in again, sending, by the host device, a device descriptor modification instruction to the combination device;

receiving a modified device descriptor different than the first device descriptor and modified according to the device descriptor modification instruction and sent by the combination device; and

establishing a new network connection for the combination device, responsive to the modified device descriptor.

7. The method of claim 6 , wherein the sending the device descriptor modification instruction to the combination device comprises:

sending the device descriptor modification instruction to a port of a device other than a Remote Network Driver Interface Specification (RNDIS) device in the combination device.

8. The method of claim 6 , wherein the sending the device descriptor modification instruction to the combination device comprises:

sending the device descriptor modification instruction to the combination device, wherein the device descriptor modification instruction comprises an operation code or index information of modification modes of the device descriptor.

9. The method of claim 8 , wherein a modification mode of the device descriptor comprises at least one mode of modifying the product ID, modifying the vendor ID and modifying the device version ID.

10. The method of claim 9 , wherein after the combination device is plugged in, and before sending the device descriptor modification instruction to the combination device, the method further comprises:

determining, according to an abnormal status identifier of the combination device, whether the network connection is released after the last removal of the combination device.

11. The method of claim 10 , wherein after the last removal and before the present plugging in of the combination device, the method further comprises:

determining whether identification information of the combination device exists in a list of network adapters and whether the identification information of the combination device exists on a device tree; and

if the identification information of the combination device exists in the list of network adapters but does not exists on the device tree, modifying the abnormal status identifier to be identification information indicating that the network connection is not released after the last removal of the combination device.

12. A combination device, comprising:

a transceiver unit, configured to receive a device descriptor modification instruction sent by a host device after the combination device is plugged into the host device again after a last removal of the combination device from the host device, wherein a first network connection, established by the host device for the combination device based on a first device descriptor sent to the host device from the combination device, was not released;

a processing unit, configured to modify a default device descriptor responsive to the device descriptor modification instruction to produce a modified device descriptor different than the first device descriptor and perform a device reconnection processing; and

wherein the transceiver unit is further configured to send the modified device descriptor to the host device, to enable the host device to establish a new network connection responsive to the modified device descriptor, and to access a network using the new network connection established by the host device.

13. The combination device of claim 12 , wherein the transceiver unit comprises:

a first receiving unit, configured to receive the device descriptor modification instruction sent by the host device, wherein the device descriptor modification instruction comprises index information of a modification mode of the device descriptor; and

the processing unit comprises:

a first modification unit, configured to modify the device descriptor according to an operation code corresponding to the index information.

14. The combination device of claim 12 , wherein the transceiver unit comprises:

a second receiving unit, configured to receive the device descriptor modification instruction sent by the host device, the device descriptor modification instruction comprising an operation code of modes of modifying the device descriptor; and

the processing unit comprises:

a second modification unit, configured to modify the device descriptor according to the operation code in the device descriptor modification instruction.

15. A host device, comprising:

a transceiver configured to send a device descriptor modification instruction to a combination device after the combination device is plugged in, if a network connection, established by the host device for the combination device based on a first device descriptor sent to the host device from the combination device, was not released after a last removal of the combination device from the host device;

the transceiver also configured to receive a modified device descriptor different than the first device descriptor and modified according to the device descriptor modification instruction and sent by the combination device; and

a connection establishment module, configured to establish a new network connection for the combination device responsive to the modified device descriptor.

16. The host device of claim 15 , further comprising:

a determination module, configured to determine, according to an abnormal status identifier of the combination device, whether the network connection is released after the last removal of the combination device, before the second sending module sends the device descriptor modification instruction to the combination device, and configured to determine whether identification information of the combination device exists in a list of network adapters and whether the identification information of the combination device exists on a device tree, after the last removal and before the present connection of the combination device; and

a second modification module, configured to modify the abnormal status identifier to be identification information indicating that the network connection is not released after the last removal of the combination device, if the identification information of the combination device exists in the list of network adapters but does not exist on the device tree.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 19, 2018
From: HUAWEI DEVICE (SHENZHEN) CO., LTD.
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 047603/0039 →
CHANGE OF NAME Recorded Jun 12, 2018
From: HUAWEI DEVICE CO.,LTD.
To: HUAWEI DEVICE (SHENZHEN) CO., LTD.
Reel/Frame 046340/0590 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 23, 2012
From: NIE, ZHENHUI; WANG, YEQI
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 027918/0758 →