The present disclosure relates to the field of computer technology, and in particular to, a method, device and system for automatically adapting multimode data card equipment.
In related art, when some data card products are used, first it is needed to install on a host a user interface, a PC driver and other related software. All the related software can be regarded as a customized host module. The driver is preinstalled in a host system. After the data card product is connected with the host installed with the software, the host system judges according to a certain criteria, and then selects a proper driver from the drivers preinstalled in the host system, so as to install or update the driver of the data card product under a certain mode.
After being connected to the host, data card terminal equipment, under whatever mode, needs to be identified by the host system, and then driver programs are installed thereon. Because of the diversity of customer requirements and host systems, data card terminal equipment needs to provide different modes so as to meet the different requirements for mode configuration and perform adaptive installation. That is, the data card terminal equipment needs to provide, for example, two different ports and two or more sets of configuration, then the host system will inevitably reinstall the adapted driver for the equipment in a new mode. The data card terminal equipment needs to restart USB PHY when switching its mode, which causes a certain time delay. A process of installing the driver is added, and a mode is updated and installation is performed, multiple sets of configuration should be prepared for adapting and installing the driver.
By taking network card equipment for example, on different operating systems, terminal equipment using a data card may need to switch the network card. In the process of switching the network card, it is required to perform a series of identification and judgement on the PC operating system, and the host needs to send specific commands. The data card terminal equipment reports a corresponding and correct network card. After the user performs a mode switch, the host sends the specific commands to make the data card equipment switch to the normal work mode. These specific commands are customized by manufactures, and only the software of the host module provided by the manufactures can perform the switch normally. These switch commands are comparatively time consuming, and the time of other modes is too long, so the user experience is poor.
To sum up, in related art, when the multimode data card terminal equipment performs mode adaption with the host, there are some deficiencies.
(1) It is needed to restart USB PHY during mode switch.
(2) When the host system adapts the mode driver, the driver has to be installed for many times.
(3) The time of waiting for switching to the work mode is relatively long, so the user experience is poor.
Embodiments of the present disclosure provide a method, device and system for automatically adapting multimode data card equipment, so as to at least solve the above problem.
According to a first embodiment of the present disclosure, a device for automatically adapting multimode data card equipment is provided, which 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.
According to a second embodiment of the present disclosure, multimode data card equipment is provided, which includes the above device for automatically adapting the multimode data card equipment.
According to a third embodiment of the present disclosure, a method for automatically adapting multimode data card equipment is provided, which includes that:
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 a target host, 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.
According to a fourth embodiment of the present disclosure, a system for automatically adapting multimode data card equipment is provided, which includes: a target host installed with a host module, multimode data card equipment, and the above device for automatically adapting the multimode data card;
or, the system includes: a target host installed with a host module and the above multimode data card equipment.
The technical solution provided by the embodiments of the present disclosure has the following beneficial effects:
(1) the mode adapting solution described in the embodiment of the present disclosure can automatically and conveniently install and load the mode required by a host without being affected by a host system;
(2) mode adapting installation has no need to restart USB PHY, thereby improving the stability of equipment;
(3) 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;
(4) 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; and
(5) the compatibility and stability of the host module is improved.
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.
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.
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.
The present embodiment provides a device for automatically adapting multimode data card equipment. As shown in
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
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.
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.
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.
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.
Furthermore, the present embodiment also provides a mode switching solution; when a mode switch is performed,
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.
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.
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.
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.
An exemplary embodiment of the present disclosure is given according to
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.
As shown in
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.
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.
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.
As show in
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.
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.
As shown in
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.
Step 1: The kernel layer module sends a customized instruction to inform the host module of the configuration intended to be reported.
Step 2: After receiving a request from the kernel layer module, the host module polls the customized instruction.
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.
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.
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.
Step 6: The kernel layer module sends an Acknowledgement (ACK) message to the host module.
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.
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.
At last, the USB board side and the host module complete automatic adaption, and can perform functional operations normally.
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.
The present embodiment provides a method for automatically adapting multimode data card equipment. As shown in
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.
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.
As an exemplary implementation, the specific implementation process of the steps may be as follows.
(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.
(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.
(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.
When the host module judges that the configuration information of the mode is not available, the specific implementation process is as follows.
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.
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.
Furthermore, the present embodiment also provides a mode switching solution, which is specifically:
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.
As an exemplary implementation, the automatic adaption device in the present embodiment may be integrated in the multimode data card equipment.
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.
The present embodiment provides a system for automatically adapting multimode data card equipment, which includes:
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;
or, a target host installed with a host module and the multimode data card equipment described in embodiment 2.
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.
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.
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.
Number | Date | Country | Kind |
---|---|---|---|
201410453483.0 | Sep 2014 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2015/074906 | 3/23/2015 | WO | 00 |