Summary of the invention
In order to solve the inconvenience that present manual installation driver brings to the user, the system and the method thereof that the invention provides a kind of Computer Automatic Recognition mobile phone and the mobile phone driver is installed, it can be when mobile phone be connected to computer, automatically for the user mobile phone driver of correspondence is installed to computer automatically according to the identifying information of this mobile phone, the webserver is brought in constant renewal in mobile phone driver database according to the automatic driver that generates of each main frame simultaneously.
For achieving the above object, Computer Automatic Recognition mobile phone of the present invention and the system that the mobile phone driver is installed comprise the main frame and the webserver, main frame is connected by netting twine with the webserver, main frame is provided with processor, storer and USB interface, and the webserver is provided with processor and storer; Copy has mobile phone driver database in the storer of main frame and the storer of the webserver, the USB interface of main frame is connected with mobile phone, the processor of main frame reads the identifying information in the mobile phone, and processor is retrieved the mobile phone driver corresponding with identifying information from the mobile phone driver database of main frame storer; If there is not corresponding mobile phone driver in the main frame storer, host-processor is sent to the webserver with identifying information by main frame, and the processor of the webserver is retrieved corresponding mobile phone driver according to identifying information in the mobile phone driver database of webserver stores device; If there is not corresponding mobile phone driver in main frame storer and the webserver stores device, host-processor generates corresponding mobile phone driver according to identifying information; After retrieval or generation obtained the mobile phone driver, host-processor was installed to driver on the main frame.
Mobile phone driver on the automatic collection network of the processor of the webserver of the present invention, and the mobile phone driver of collecting is saved in the storer of the webserver.
Computer Automatic Recognition mobile phone of the present invention and the method that the mobile phone driver is installed comprise the steps: step 11: when mobile phone is connected to computer, main frame reads the identifying information of mobile phone; Step 12: the main frame processor is according to the corresponding driver of retrieval in the mobile phone driver database of identifying information in the main frame storer; Step 13: the driver that retrieves is installed on the main frame.
If do not retrieve corresponding driver in the mobile phone driver database of main frame processor in the main frame storer, then carry out following steps: step 21: the main frame processor uploads to the webserver with identifying information by netting twine; Step 22: the processor of the webserver is according to the corresponding driver of retrieval in the mobile phone driver database of identifying information in the storer of the webserver; Step 23: the driver that retrieves is sent on the main frame; Step 24: this driver is installed on the main frame.
If do not retrieve corresponding driver in the mobile phone driver database of the webserver in the webserver stores device, then carry out following steps: step 31: the main frame processor adds the identification of the manufacturer in the identifying information and device descriptive information respectively in the Manufacturer node and String node of facility information file of general driving program in the main frame storer, revises the facility information file of general driving program; Step 32: the main frame processor is installed to amended general driving program on the main frame.
The main frame processor adds amended general driving program in the mobile phone driver database in the main frame storer to.
The simultaneous computer host-processor is sent to the webserver with amended general driving program, and adds in the interior mobile phone driver database of webserver stores device.
Main frame of the present invention intercoms by netting twine mutually with the webserver, and the mobile phone driver database root of main frame upgrades automatically according to the mobile phone driver database of the webserver.
Compared with prior art, the invention has the beneficial effects as follows, can be when mobile phone be connected to computing machine, automatically carry out the identification of cell phone apparatus and the installation of corresponding mobile phone driver, need not user's manual operation, under the situation of retrieval, can also create a driver automatically according to the facility information of mobile phone, thereby guarantee that various types of mobile phones can both normally be connected on the computing machine less than corresponding driver.Simultaneously, mobile phone driver database is constantly collected the new mobile phone driver of creating from each main frame, and retrieval has guaranteed the reliability that mobile phone is connected with computing machine less than the situation of corresponding driver in database thereby reduced.
Embodiment
" handset identity information " of the present invention is DeviceInfo, is the data message that is complementary with mobile phone model, and it comprises hardware ID sign (Hardware ID), device descriptive information etc.; The hardware ID sign comprises identification of the manufacturer and product mark, and the main frame and the webserver can be according to the corresponding drivers of hardware ID sign retrieval of mobile phone.
" general driving program " of the present invention is one section driver that can change the facility information file according to type of cell phone, the facility information file is called INF again, it is the english abbreviation of Device Information File, being Microsoft company for hardware device manufacturer issues a kind of file layout that its driver is released, is to be used for the file of data messages such as description equipment or file under the Windows operating system.INF comprises identification of the manufacturer node (Manufacturer node) and device description node (String node), can revise the content of these nodes according to the identifying information correspondence of mobile phone, to create the driver of this mobile phone.
Computer Automatic Recognition mobile phone of the present invention and the system that the mobile phone driver is installed comprise the main frame and the webserver, main frame is connected by netting twine with the webserver, main frame is provided with processor, storer and USB interface, and the webserver is provided with processor and storer; Copy has mobile phone driver database in the storer of main frame and the storer of the webserver, the USB interface of main frame is connected with mobile phone, the processor of main frame reads the identifying information in the mobile phone, and processor is retrieved the mobile phone driver corresponding with identifying information from the mobile phone driver database of main frame storer; If there is not corresponding mobile phone driver in the main frame storer, host-processor is sent to the webserver with identifying information by main frame, and the processor of the webserver is retrieved corresponding mobile phone driver according to identifying information in the mobile phone driver database of webserver stores device; If there is not corresponding mobile phone driver in main frame storer and the webserver stores device, the handset processes device generates corresponding mobile phone driver according to identifying information; After retrieval or generation obtained the mobile phone driver, host-processor was installed to driver on the main frame.
Mobile phone driver on the automatic collection network of the processor of the webserver of the present invention, and the mobile phone driver of collecting is saved in the storer of the webserver.
Computer Automatic Recognition mobile phone of the present invention and the method that the mobile phone driver is installed comprise the steps: step 11: when mobile phone is connected to computer, main frame reads the identifying information of mobile phone; Step 12: the main frame processor is according to the corresponding driver of retrieval in the mobile phone driver database of identifying information in the main frame storer; Step 13: the driver that retrieves is installed on the main frame.
If do not retrieve corresponding driver in the mobile phone driver database of main frame processor in the main frame storer, then carry out following steps: step 21: the main frame processor uploads to the webserver with identifying information by netting twine; Step 22: the processor of the webserver is according to the corresponding driver of retrieval in the mobile phone driver database of identifying information in the storer of the webserver; Step 23: the driver that retrieves is sent on the main frame; Step 24: this driver is installed on the main frame.
If do not retrieve corresponding driver in the mobile phone driver database of the webserver in the webserver stores device, then carry out following steps: step 31: the main frame processor adds the identification of the manufacturer in the identifying information and device descriptive information respectively in the Manufacturer node and String node of facility information file of general driving program in the main frame storer, revises the facility information file of general driving program; Step 32: the main frame processor is installed to amended general driving program on the main frame.
The main frame processor adds amended general driving program in the mobile phone driver database in the main frame storer to.
The simultaneous computer host-processor is sent to the webserver with amended general driving program, and adds in the interior mobile phone driver database of webserver stores device.
Main frame of the present invention intercoms by netting twine mutually with the webserver, and the mobile phone driver database root of main frame upgrades automatically according to the mobile phone driver database of the webserver.
Embodiment 1:
Main frame uploads to the handset identity sign on the webserver and discerns, if there is the driver of this mobile phone in the mobile phone driver database of the webserver, then relevant information is returned to main frame, otherwise returns sky; A kind of attainable program code is as follows:
enum?DeviceType
{
iPhone,
Android,
Oms,
M8,
Wm,
S60,
S40,
UnSupport,
None,
}
Class DeviceInfo//facility information
{
String DeviceType; // device type
String HardwareId; // equipment id
String HardwardIndex; // equipment complex index
String DeviceTag; // standby
}
Class DriverExeInfo//device drives information
{
String HardwareId; // equipment id
Byte[] x86, //x86 drives literature kit [zip]
Byte[] x64, //x64 drives literature kit [zip]
}
Embodiment 2:
Be the detailed process that a kind of main frame generates driver automatically below:
Supposing to be connected does not all have corresponding driver in the driver database of mobile phone on the main frame and the webserver on the main frame, then main frame carries out following steps automatically:
(1). main frame obtains this handset identity information;
(2). main frame reads the Manufacturer node of the facility information file [INF] of general driving program;
(3). judge whether the identification of the manufacturer in this handset identity information is present in the facility information file Manufacturer node,, otherwise enter step (4) if exist then enter step (6);
(4). the identification of the manufacturer of this mobile phone is added in the Manufacturer node of facility information file;
(5). the device descriptive information of this mobile phone is added the String joint of facility information file;
(6). this driver is installed.