IP Library Granted Patent US 9,588,655
Granted Patent B2
US 9,588,655 · App. 14/051,657 · Granted Mar 7, 2017

Data interface configuration method and terminal 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,588,655
App. No.
14/051,657
Granted
Mar 7, 2017
Kind
B2
Abstract

Embodiments of the present invention disclose a data interface configuration method and a terminal device. The configuration method includes: receiving, by a second device, an application program command word sent by a first device; parsing the application program command word, to obtain a type of a function module corresponding to the application program command word according to a preset mapping relationship; and connecting a data interface to a corresponding function module according to a parsing result; where the data interface is a data interface on the second device, and the function module is a function module in the second device. By using solutions provided by the present invention, a terminal device may automatically configure a data interface according to an application program that currently needs to be run on a computer side.

Claims (39)

1. A data interface configuration method, comprising:

receiving, by a second device, an application program command word sent by a first device;

parsing the application program command word;

obtaining a type of a function module corresponding to the application program command word according to a preset mapping relationship;

connecting a data interface to a corresponding function module according to a parsing result, wherein the data interface is a data interface on the second device, and wherein the function module is a function module in the second device; and

connecting the data interface to a second function module of the second device according to a change in the application program command word,

wherein the data interface is connected to the second function module of the second device automatically without manual operation performed by a user, and

wherein after connecting the data interface to the corresponding function module, the method further comprises feeding back, by the second device, information of data interface connection completion to the first device to instruct the first device to complete startup of an application program.

2. The method according to claim 1 , wherein connecting the data interface to the corresponding function module according to the parsing result comprises:

determining whether a parsed type of the function module matches a function module to which the data interface is currently connected; and

connecting the data interface to the corresponding function module when the determination indicates that the parsed type of the function module does not match the function module to which the data interface is currently connected.

3. The method according to claim 1 , wherein after connecting the data interface to the corresponding function module, the method further comprises delivering the application program command word to the function module.

4. The method according to claim 1 , further comprising storing a mapping relationship between the currently received application program command word and a corresponding function module according to a user's manual configuration result when the currently received application program command word cannot be parsed.

5. The method according to claim 1 , wherein the preset mapping relationship comprises a table that is pre-stored in the second device, wherein the table comprises a plurality of command word formats and corresponding function modules, and wherein the plurality of command word formats comprise at least one “AT” command.

6. The method according to claim 1 , wherein the first device comprises a personal computer, wherein the second device comprises a mobile phone, wherein the personal computer and the mobile phone are communicatively coupled through a universal serial bus cable, and wherein the mobile phone comprises a plurality of function modules including a modem, a storage medium, and a global positioning sensor.

7. A terminal device, comprising:

a non-transitory computer readable medium having instructions stored thereon; and

a computer processor coupled to the non-transitory computer readable medium and configured to execute the instructions to:

receive an application program command word sent by a first device;

parse the application program command word to obtain a type of a function module corresponding to the application program command word;

connect a data interface to a corresponding function module according to a parsing result; and

connect the data interface to a second function module of the terminal device according to a change in the application program command word,

wherein the data interface is connected to the second function module of the terminal device automatically without manual operation performed by a user, and

wherein after the data interface is connected to the corresponding function module, the computer processor is further configured to execute the instructions to feed back, by the second device, information of data interface connection completion to the first device to instruct the first device to complete startup of an application program.

8. The terminal device according to claim 7 , wherein the computer processor is further configured to execute the instructions to:

determine whether a type of the function module parsed matches a function module to which the data interface is currently connected; and

connect the data interface to the corresponding function module when the type of the function module does not match the function module to which the data interface is currently connected.

9. The terminal device according to claim 7 , wherein the computer processor is further configured to execute the instructions to deliver the application program command word to the function module after the data interface is connected to the corresponding function module.

10. The terminal device according to claim 7 , wherein the computer processor is further configured to execute the instructions to store a mapping relationship between the currently received application program command word and a corresponding function module according to a user's manual configuration result when the currently received application program command word cannot be parsed.

11. The terminal device according to claim 7 , wherein the preset mapping relationship comprises a table that is pre-stored in the terminal device, wherein the table comprises a plurality of command word formats and corresponding function modules, and wherein the plurality of command word formats comprise at least one “AT” command.

12. The terminal device according to claim 7 , wherein the first device comprises a personal computer, wherein the terminal device comprises a mobile phone, wherein the personal computer and the mobile phone are communicatively coupled through a universal serial bus cable, and wherein the mobile phone comprises a plurality of function modules including a modem, a storage medium, and a global positioning sensor.

13. A non-transitory computer readable medium having instructions stored thereon that when executed by a processor cause the processor to perform a method comprising:

receiving, by a second device, an application program command word sent by a first device;

parsing the application program command word;

obtaining a type of a function module corresponding to the application program command word according to a preset mapping relationship; and

connecting a data interface to a corresponding function module according to a parsing result, wherein the data interface is a data interface on the second device, and wherein the function module is a function module in the second device;

connecting the data interface to a second function module of the second device according to a change in the application program command word,

wherein the data interface is connected to the second function module of the second device automatically without manual operation performed by a user, and

wherein after connecting the data interface to the corresponding function module, the method further comprises feeding back, by the second device, information of data interface connection completion to the first device to instruct the first device to complete startup of an application program.

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 18, 2013
From: WEI, LEI
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 031435/0763 →