METHOD, DEVICE AND SYSTEM FOR AUTOMATICALLY ADAPTING MULTIMODE DATA CARD EQUIPMENT
20170262323 ยท 2017-09-14
Assignee
Inventors
Cpc classification
G06F9/4411
PHYSICS
G06F9/44505
PHYSICS
G06F9/545
PHYSICS
International classification
Abstract
A method, device and system for automatically adapting multimode data card equipment are provided. The device includes: a kernel layer module, which is arranged to establish a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to a target host, and perform mode adaption with the host module via a customized instruction; and a functional layer module, which is arranged to configure a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption performed by the kernel layer module.
Claims
1. A device for automatically adapting multimode data card equipment, comprising: a kernel layer module, which is arranged to establish a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to a target host, and perform mode adaption with the host module via a customized instruction; and a functional layer module, which is arranged to configure a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption performed by the kernel layer module.
2. The device as claimed in claim 1, wherein the kernel layer module is arranged to send, to the host module via the customized instruction, configuration information of a mode intended to be reported by the multimode data card equipment, and determine the adapted mode according to a feedback message of the host module; wherein the feedback message comprises: an indication message indicating to perform mode configuration according to the mode intended to be reported or an indication message indicating to perform mode configuration according to a mode required by the target host.
3. The device as claimed in claim 2, wherein the kernel layer module is further arranged to, when the feedback message comprises the indication message indicating to perform mode configuration according to the mode required by the target host, extract from the feedback message a configuration index of the mode required by the target host, obtain configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, configure a port of the multimode data card equipment according to the configuration information, and inform the functional layer module to configure the mode according to the configuration information corresponding to the configuration index.
4. The device as claimed in claim 1, wherein the kernel layer module is further arranged to, when the target host performs a mode switch, receive a configuration index of a target mode which is sent by the host module, obtain configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, configure a port of the multimode data card equipment according to the configuration information, and inform the functional layer module to configure the mode according to the configuration information corresponding to the configuration index of the target mode, so as to complete the mode switch.
5. Multimode data card equipment, comprising a device as claimed in claim 1.
6. A method for automatically adapting multimode data card equipment, comprising: establishing, by an automatic adaption device, a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to a target host, performing, by the automatic adaption device, mode adaption with the host module via a customized instruction, and configuring, by the automatic adaption device, a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption.
7. The method as claimed in claim 6, wherein performing, by the automatic adaption device, mode adaption with the host module via the customized instruction, and configuring, by the automatic adaption device, the mode of the multimode data card equipment according to the adapted mode obtained through the mode adaption comprises: sending to the host module via the customized instruction, by the automatic adaption device, configuration information of a mode intended to be reported by the multimode data card equipment; judging, by the host module, whether the configuration information of the mode is available; when judging that the configuration information of the mode is available, sending, by the host module, a feedback message of Acknowledgement (ACK); or else, sending, by the host module, a feedback message carrying information of a mode required by the target host to the automatic adaption device; and based on the feedback message, configuring, by the automatic adaption device, the mode according to the mode intended to be reported or the mode required by the target host.
8. The method as claimed in claim 7, wherein when judging that the configuration information of the mode is not available, sending to the automatic adaption device, by the host module, the feedback message carrying information of a configuration index of the mode required by the target host; and obtaining, by the automatic adaption device, configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, and configuring, by the automatic adaption device, a port and mode of the multimode data card equipment according to the configuration information.
9. The method as claimed in claim 6, further comprising: when the target host performs a mode switch, sending, by the host module, a configuration index of a target mode to the automatic adaption device; and obtaining, by the automatic adaption device, configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, and configuring a port and mode of the multimode data card equipment according to the configuration information, so as to complete the mode switch.
10. The method as claimed in claim 6, wherein the automatic adaption device is integrated in the multimode data card equipment.
11. A system for automatically adapting multimode data card equipment, comprising: a target host installed with a host module, multimode data card equipment, and the device for automatically adapting the multimode data card equipment as claimed in claim 1; or, comprising: a target host installed with a host module and the multimode data card equipment, the multimode data card equipment comprising a device for automatically adapting multimode data card equipment, the device comprising: a kernel layer module, which is arranged to establish a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to a target host, and perform mode adaption with the host module via a customized instruction; and a functional layer module, which is arranged to configure a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption performed by the kernel layer module.
12. The device as claimed in claim 2, wherein the kernel layer module is further arranged to, when the target host performs a mode switch, receive a configuration index of a target mode which is sent by the host module, obtain configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, configure a port of the multimode data card equipment according to the configuration information, and inform the functional layer module to configure the mode according to the configuration information corresponding to the configuration index of the target mode, so as to complete the mode switch.
13. The device as claimed in claim 3, wherein the kernel layer module is further arranged to, when the target host performs a mode switch, receive a configuration index of a target mode which is sent by the host module, obtain configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, configure a port of the multimode data card equipment according to the configuration information, and inform the functional layer module to configure the mode according to the configuration information corresponding to the configuration index of the target mode, so as to complete the mode switch.
14. Multimode data card equipment, comprising a device as claimed in claim 2.
15. Multimode data card equipment, comprising a device as claimed in claim 3.
16. Multimode data card equipment, comprising a device as claimed in claim 4.
17. The method as claimed in claim 7, wherein the automatic adaption device is integrated in the multimode data card equipment.
18. The method as claimed in claim 8, wherein the automatic adaption device is integrated in the multimode data card equipment.
19. The method as claimed in claim 9, wherein the automatic adaption device is integrated in the multimode data card equipment.
20. A system for automatically adapting multimode data card equipment, comprising: a target host installed with a host module, multimode data card equipment, and the device for automatically adapting the multimode data card equipment as claimed in claim 2; or, comprising: a target host installed with a host module and multimode data card equipment, the multimode data card equipment comprising a device for automatically adapting multimode data card equipment, the device comprising: a kernel layer module, which is arranged to establish a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to a target host, and perform mode adaption with the host module via a customized instruction; and a functional layer module, which is arranged to configure a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption performed by the kernel layer module.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solution of the present disclosure or the traditional art, the accompanying drawings needed in description of the embodiments or the traditional art are simply introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, for the ordinary skill in the art, some other accompanying drawings can also be obtained according to these on the premise of not contributing creative effort.
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0031] The technical solution in the embodiments of the present disclosure is clearly and completely described below in combination with the accompanying drawings. Obviously, the embodiments described below are just a part but not all of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all the other embodiments obtained by the ordinary skill in the art without contributing creative effort shall fall within the scope of protection of the present disclosure.
[0032] Embodiments of the present disclosure provide a method, device and system for automatically adapting multimode data card equipment. The solution provided by the embodiments of the present disclosure can not only solve the disadvantages of related art, but also introduce multiple sets of configuration, so as to flexibly and conveniently adapt to drivers of different modes. The detailed implementation process of the present disclosure is described below through some specific embodiments.
Embodiment 1
[0033] The present embodiment provides a device for automatically adapting multimode data card equipment. As shown in
[0034] a kernel layer module 110, which is arranged to establish a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to a target host, and perform mode adaption with the host module via a customized instruction; and
[0035] a functional layer module 120, which is arranged to configure a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption performed by the kernel layer module.
[0036] Based on the above structure framework and implementation principle, several specific and exemplary implementation modes under the above structure are given below for detailing and optimizing the functions of the devices described in the present embodiment, specifically relating to the following contents.
[0037] The kernel layer module 110 may be arranged to send configuration information of a mode intended to be reported by the multimode data card equipment to the host module via the customized instruction, and determine the adapted mode according to a feedback message of the host module. In the present embodiment, the feedback message may include: an indication message indicating to perform mode configuration according to the mode intended to be reported or the mode required by the target host.
[0038] Furthermore, the kernel layer module 110 may be arranged to extract, when the feedback message includes the indication message indicating to perform mode configuration according to the mode required by the target host, from the feedback message a configuration index of the mode required by the target host, obtain configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, configure a port of the multimode data card equipment according to the configuration information, and inform the functional layer module to configure the mode according to the configuration information corresponding to the configuration index.
[0039] Furthermore, the present embodiment also provides a mode switching solution; when a mode switch is performed,
[0040] the kernel layer module 110 may be further arranged to, when the target host performs a mode switch, receive a configuration index of a target mode which is sent by the host module, obtain configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, configure a port of the multimode data card equipment according to the configuration information, and inform the functional layer module to configure the mode according to the configuration information corresponding to the configuration index of the target mode, so as to complete the mode switch.
[0041] To sum up, the device of the present embodiment provides a solution for automatically and conveniently installing and loading the mode required by a host without being affected by a host system. The solution is flexible and convenient, and better solves the problem in related art.
Embodiment 2
[0042] The present embodiment provides multimode data card equipment, in which the device for automatically adapting the multimode data card equipment described in embodiment 1 is integrated.
[0043] Because the specific composition and implementation principle of the device for automatically adapting the multimode data card equipment have been elaborated in embodiment 1, so the structure and function of the device will not be repeated in the present embodiment. Besides, the multimode data card equipment includes the device described in embodiment 1, so the multimode data card equipment also has the technical effects described in embodiment 1.
[0044] An exemplary embodiment of the present disclosure is given according to
[0045] In the present embodiment, the device for automatically adapting multimode data card equipment is integrated in the multimode data card equipment. The multimode data card equipment is a USB type device (called a USB board side for short hereinafter). The host module sets an application layer submodule for accommodating the technical solution provided by the embodiment of the present disclosure. The implementation is elaborated below by taking a network card device for example.
[0046] As shown in
[0047] The process of installing the multimode data card equipment of the present disclosure in the target host can be completed by only installing the application layer submodule in the target host once. In the subsequent use and running of the multimode data card equipment, the main work is to automatically adapt a proper network card driver between the application layer submodule of the host module and the automatic adaption device contained in the multimode data card equipment. The board side reports to the network card the related information of the USB board side required by the target host, and according to the customized instruction, the target host selects the proper network card and loads and installs the corresponding driver.
[0048] The application layer submodule may include the requirements of providers and/or customers, or adopt a default mode. The default mode is selecting an adapted network card driver with an automatic dialling mode after adapting to the mode of the USB board side. So, the excellent capability of inheritance and compatibility between new and old products can be provided for the customers.
[0049] The USB board side includes: the kernel layer module and the functional layer module. The kernel layer module is in charge of the adaption between the network card and the host module. After the adaption is conducted successfully, the functional layer module needs to select a network card driver suiting the host module from the configuration set and perform corresponding configuration. That is, the functional layer module of the USB board side includes a configuration set including multiple configurations of the network card, and a network card driver is selected to perform the configuration after the host module and the kernel layer module perform adaption.
[0050] As show in
[0051]
[0052] That is, after the host module establishes the communication connection with the USB board side, the host module and the kernel layer module of the USB board side automatically adapt, and the USB board side installs the network card driver adapting to the target host and establishes a certain specific interfaces connection (an interrupt or bulk in/out pipe connection), then the USB board side can work normally according to the connection.
[0053] Based on the above principle and structural elaboration, the specific work flow of automatically adapting the multimode data card equipment according to an exemplary embodiment of the present disclosure is given below. The flow mainly includes that: the host module establishes a default Pipe 0 connection with the USB board side, then the kernel layer module of the USB board side sends a customized instruction to inform the host module of the configuration intended to be reported, and performs a series of interactions with the host module to finally adapt the proper network card driver.
[0054] As shown in
[0055] Before the flow starts, all the connections established between the host module and the USB board side are default Pipe 0 connections. After that, the following steps are executed.
[0056] Step 1: The kernel layer module sends a customized instruction to inform the host module of the configuration intended to be reported.
[0057] Step 2: After receiving a request from the kernel layer module, the host module polls the customized instruction.
[0058] Step 3: The host module judges the configuration intended to be reported by the kernel layer module, so as to check whether the configuration information is available; if the configuration information is available, the host module informs the USB board side to report the configuration of the network card; or else, perform Step 4.
[0059] Step 4: The host module obtains the configuration index of the configuration supported by the target host, and informs the kernel layer module of the configuration index through a customized instruction.
[0060] Step 5: After receiving the configuration index, the kernel layer module obtains the configuration information of the network card from the configuration set of the network card, and configures the port according to the configuration information.
[0061] Step 6: The kernel layer module sends an Acknowledgement (ACK) message to the host module.
[0062] Step 7: After receiving the ACK message, the host module confirms that the kernel layer module has configured according to the configuration of the network card required.
[0063] Step 8: While sending the ACK message to the host module, the kernel layer module informs the functional layer module to switch according to the configuration of the network card required.
[0064] At last, the USB board side and the host module complete automatic adaption, and can perform functional operations normally.
[0065] To sum up, a perfect solution is provided in virtue of the technical solution of the present disclosure. The perfect solution realizes that the USB network driver is automatically adapted flexibly and conveniently, and the host module and the USB board side automatically adapt the network card configuration truly.
Embodiment 3
[0066] The present embodiment provides a method for automatically adapting multimode data card equipment. As shown in
[0067] S601: An automatic adaption device establishes a communication connection with a host module preinstalled at a target host side after the multimode data card equipment is accessed to the target host.
[0068] S602: The automatic adaption device performs mode adaption with the host module via a customized instruction, and configures a mode of the multimode data card equipment according to an adapted mode obtained through the mode adaption.
[0069] As an exemplary implementation, the specific implementation process of the steps may be as follows.
[0070] (1) The automatic adaption device sends, to the host module via the customized instruction, configuration information of a mode intended to be reported by the multimode data card equipment.
[0071] (2) The host module judges whether the configuration information of the mode is available; when judging that the configuration information of the mode is available, the host module sends a feedback message of Acknowledgement; or else, the host module sends a feedback message carrying information of a mode required by the target host to the automatic adaption device.
[0072] (3) Based on the feedback message received, the automatic adaption device configures the mode according to the mode intended to be reported or the mode required by the target host.
[0073] When the host module judges that the configuration information of the mode is not available, the specific implementation process is as follows.
[0074] The host module sends to the automatic adaption device the feedback message carrying information of a configuration index of the mode required by the target host.
[0075] The automatic adaption device obtains configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, and configures a port and mode of the multimode data card equipment according to the configuration information.
[0076] Furthermore, the present embodiment also provides a mode switching solution, which is specifically:
[0077] when the target host performs the mode switch, the host module sends a configuration index of a target mode to the automatic adaption device; and the automatic adaption device obtains configuration information corresponding to the configuration index from a configuration set of the multimode data card equipment according to the configuration index, and configures a port and mode of the multimode data card equipment according to the configuration information of the mode, so as to complete the mode switch.
[0078] As an exemplary implementation, the automatic adaption device in the present embodiment may be integrated in the multimode data card equipment.
[0079] To sum up, the method of the present embodiment provides a solution for automatically and conveniently installing and loading the mode required by a host without being affected by a host system. The solution is flexible and convenient, and better solves the problem in related art.
Embodiment 4
[0080] The present embodiment provides a system for automatically adapting multimode data card equipment, which includes:
[0081] a target host installed with a host module, multimode data card equipment, and the device for automatically adapting the multimode data card equipment described in embodiment 1;
[0082] or, a target host installed with a host module and the multimode data card equipment described in embodiment 2.
[0083] Because the specific composition and implementation principle of the device for automatically adapting the multimode data card equipment have been elaborated in embodiment 1, so the structure and function of the device will not be repeated in the present embodiment. Besides, the system of the present embodiment includes the device described in embodiment 1, so the system of the present embodiment also has the technical effects described in embodiment 1.
[0084] Obviously, those skilled in the art can make various modifications and variations to the present disclosure without departing from its principle and scope. If these modifications and variations of the present disclosure belong to the scope of the claims of the present disclosure and its equivalent technology, the present disclosure is intended to include these modifications and variations.
INDUSTRIAL APPLICABILITY
[0085] As mentioned above, the method, device and system for automatically adapting multimode data card equipment provided by the embodiments of the present disclosure have beneficial effects which are described as follows. In related art, it is needed to restart USB PHY during the mode switch, and when the host system adapts the mode driver, the time for installing the driver for many times and switching to the work mode is relatively long, so the user experience is poor. By virtue of the solution proposed by the embodiments of the present disclosure, the above mentioned problems can be solved. The mode required by the host can be automatically and conveniently installed and loaded without being affected by the host system. The mode adapting installation has no need to restart USB PHY, thereby improving the stability of equipment. The configuration of different modes adapting to the data card products can be performed with the multimode data card equipment by only installing the host module on the target host once. The realization of mode configuration information of the multimode data card device does not require multiple developments and multiple configurations, thereby simplifying the development of a terminal device. The compatibility and stability of the host module is improved.