CN104461950B - A kind of information processing method and device - Google Patents

A kind of information processing method and device Download PDF

Info

Publication number
CN104461950B
CN104461950B CN201310451591.XA CN201310451591A CN104461950B CN 104461950 B CN104461950 B CN 104461950B CN 201310451591 A CN201310451591 A CN 201310451591A CN 104461950 B CN104461950 B CN 104461950B
Authority
CN
China
Prior art keywords
electronic equipment
equipment
electronic
class
management program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310451591.XA
Other languages
Chinese (zh)
Other versions
CN104461950A (en
Inventor
陈实
詹鹏
陈军
林洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310451591.XA priority Critical patent/CN104461950B/en
Publication of CN104461950A publication Critical patent/CN104461950A/en
Application granted granted Critical
Publication of CN104461950B publication Critical patent/CN104461950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/105Program control for peripheral devices where the programme performs an input/output emulation function

Abstract

The invention discloses a kind of information processing method and devices, for solve in the prior art response electronic equipment access response time it is long the technical issues of, described information processing method is applied to the first electronic equipment, the first management program being managed to the first class of electronic devices is at least installed in first electronic equipment, when the second electronic equipment is connect with first electronic equipment, the input output request packet that second electronic equipment is sent to first electronic equipment is obtained;The equipment identification information in the input output request packet is obtained, to judge whether second electronic equipment is first class of electronic devices according to the equipment identification information, obtains a judging result;When it is first class of electronic devices that the judging result, which shows second electronic equipment, the first administration interface of first management program is exported.

Description

A kind of information processing method and device
Technical field
The present invention relates to electronic technology field, more particularly to a kind of information processing method and device.
Background technology
In the prior art, PC(Personal computer), PAD (tablet computer) passes through the pipes such as mobile phone assistant, cell phone managing expert Other electronic equipments such as routine access mobile phone are managed, is controlled and is managed with other electronic equipments to mobile phone etc., for example, file It arranges, software installation etc..
The prior art passes through USB (Universal Serial Bus, universal serial bus) bus when other electronic equipments With PC(Personal computer)Or PAD (tablet computer) connections, (I/O request package, input are defeated by IRP for usb bus Go out request bag) notice PNP(Plug-and-Play, plug and play)Manager, other electronics of PNP manager inquiry connection are set Standby, other electronic equipments report the facility information of the electronic equipment of connection by usb bus step by step, so as to pass through USB device piece Act process judges the device type of other electronic equipments of access, then loads driver corresponding with device type, is driving After dynamic program loading is completed, when judging other electronic equipments of access for Android phone according to enumeration process, ADB (Android Debug Bridge, Android debugging bridge)Driving notifies corresponding Android phone management program, and then could bullet Go out the administration interface of Android phone management program.
Since the device type of access electronic equipment, Yi Ji are just can determine that after enumeration process is completed in the prior art After load driver program is completed, device manager is notified with the administration interface of pop-up device management program by application layer, because This, the prior art there is technical issues that the response time for responding electronic equipment access.
Invention content
An embodiment of the present invention provides a kind of information processing method and devices, are set for solving response electronics in the prior art The technical issues of response time of standby access is long.
In a first aspect, an embodiment of the present invention provides a kind of information processing method, applied to the first electronic equipment, described The first management program being managed to the first class of electronic devices is at least installed in one electronic equipment, the method includes:
When the second electronic equipment is connect with first electronic equipment, second electronic equipment is obtained to described first The input output request packet that electronic equipment is sent;
The equipment identification information in the input output request packet is obtained, described in judging according to the equipment identification information Whether the second electronic equipment is first class of electronic devices, obtains a judging result;
When it is first class of electronic devices that the judging result, which shows second electronic equipment, output described first First administration interface of management program.
Optionally, when second electronic equipment is connect by universal serial bus with first electronic equipment, institute It states in operating status with relevant first driver of the universal serial bus in the first electronic equipment.
Optionally, the input output request for obtaining second electronic equipment and being sent to first electronic equipment Packet, specially:
The universal serial bus notifies the plug and play manager that there are second by the input output request packet Electronic equipment accesses first electronic equipment;
First driver obtains the input output request packet.
Optionally, the equipment identification information in the input output request packet is obtained, with according to the equipment identification information Judge whether second electronic equipment is first class of electronic devices, obtaining a judging result is specially:
First driver obtains supplier's identification code of second electronic equipment from the input and output packet, Product ID and device type code;
First driver is according at least to supplier's identification code, the product ID and/or the equipment Type codes judge whether second electronic equipment is first class of electronic devices, obtain the judging result.
Optionally, described when the judging result shows that second electronic equipment is first class of electronic devices When, before the first administration interface for exporting first management program, the method further includes:
Control first management program in operating status.
Optionally, it is described described when the judging result shows that second electronic equipment is set for first electron-like When standby, the first administration interface for exporting first management program specifically includes:
When it is first class of electronic devices that the judging result, which shows second electronic equipment, first driving Program sends a notification message to first management program;
First management program is controlled by first management program and popped up after the notification message is received First administration interface;
First administration interface is shown on the display unit of first electronic equipment.
Optionally, the plug and play pipe is notified by the input output request packet in the universal serial bus After device is managed there are the second electronic equipment access first electronic equipment, the method further includes:
USB device enumeration process is performed, to load M the second driver corresponding with second electronic equipment, M is Positive integer more than or equal to 1.
Optionally, first administration interface is popped up by first management program described, in the described first electricity After first administration interface is shown on the display unit of sub- equipment, the method further includes:
It detects whether the USB device enumeration process terminates, obtains a testing result;
At the end of the testing result shows the USB device enumeration process, shown on first administration interface The device-dependent message of second electronic equipment.
Second aspect, an embodiment of the present invention provides a kind of devices, and applied to the first electronic equipment, first electronics is set The first management program being managed to the first class of electronic devices is at least installed in standby, described device includes:
Obtaining unit, for when the second electronic equipment is connect with first electronic equipment, obtaining second electronics The input output request packet that equipment is sent to first electronic equipment;
Judging unit, for obtaining the equipment identification information in the input output request packet, with according to the equipment mark Know information and judge whether second electronic equipment is first class of electronic devices, obtain a judging result;
Output unit shows that second electronic equipment is first class of electronic devices for working as the judging result When, the first administration interface of output first management program.
Optionally, when second electronic equipment is connect by universal serial bus with first electronic equipment, institute It states in operating status with relevant first driver of the universal serial bus in the first electronic equipment.
Optionally, the obtaining unit specifically includes:
First transmission sub-unit is inserted for the universal serial bus by the way that input output request packet notice is described I.e. with manager, there are the second electronic equipments to access first electronic equipment;
First obtains subelement, and the input output request packet is obtained for first driver.
Optionally, judging unit specifically includes:
Second obtains subelement, and second electronics is obtained from the input and output packet for first driver Supplier's identification code of equipment, product ID and device type code;
Judgment sub-unit, for first driver according at least to supplier's identification code, the product identification Code and/or the device type code judge whether second electronic equipment is first class of electronic devices, sentence described in acquisition Disconnected result.
Optionally, described device further includes:
Control unit, for controlling first management program in operating status.
Optionally, the output unit specifically includes:
Second transmission sub-unit shows that second electronic equipment is first electron-like for working as the judging result During equipment, first driver sends a notification message to first management program;
Subelement is controlled, for first management program after the notification message is received, passes through described first First administration interface is popped up in management program control;
First administration interface is shown on the display unit of first electronic equipment.
Optionally, described device further includes:
Execution unit, for performing USB device enumeration process, to load M corresponding with second electronic equipment a the Two drivers, M are the positive integer more than or equal to 1.
Optionally, described device further includes:
Detection unit for detecting whether the USB device enumeration process terminates, obtains a testing result;
Display unit, for working as at the end of the testing result shows the USB device enumeration process, in the described first pipe The device-dependent message of second electronic equipment is shown on reason interface.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
In an embodiment of the present invention, when the second electronic equipment is connect with first electronic equipment, described the is obtained The input output request packet that two electronic equipments are sent to first electronic equipment;Obtain setting in the input output request packet Standby identification information, to judge whether second electronic equipment is that first electron-like is set according to the equipment identification information It is standby, obtain a judging result;It is defeated when it is first class of electronic devices that the judging result, which shows second electronic equipment, Go out the first administration interface of first management program.Therefore, it is sent and inputted to the first electronic equipment by the second electronic equipment When exporting request bag, the equipment of the first electronic equipment of access can be judged by the equipment identification information in input output request packet Type, withouts waiting for device enumeration and drive load process responds to the access of the second electronic equipment, pops up to the second electricity The first administration interface that sub- equipment is managed, therefore before device enumeration and drive load, respond to the second electronics The access of equipment shortens the response time of response the second electronic equipment access, efficiently solves and respond electronics in the prior art The technical issues of response time of equipment access is long, and then the access of quick response electronic equipment is realized, so as to quickly export The technique effect of first administration interface.
Further, the universal serial bus is employed in one embodiment, and institute is notified by the input output request packet Stating plug and play manager, there are the second electronic equipment access first electronic equipments;Described in first driver obtains The technological means of input output request packet, therefore in the USB interface of the second electronic equipment newly connection to the first electronic equipment, with Relevant first driver of universal serial bus obtains the input output request packet, therefore the first electronic equipment can be quick Respond the access of USB device.
Description of the drawings
Fig. 1 is the broad flow diagram of information processing method in the embodiment of the present invention;
Fig. 2 is the flow chart that quick response mobile phone accesses in the embodiment of the present invention;
Fig. 3 is the structure chart of device during the present invention is implemented.
Specific embodiment
An embodiment of the present invention provides a kind of information processing method and device, for solving quickly ring in the prior art The technical issues of answering the access of electronic equipment.
For technical solution in the embodiment of the present invention to solve the technical issues of above-mentioned, general thought is as follows:
The first management program being managed to the first class of electronic devices, institute are at least installed in first electronic equipment The method of stating includes:When the second electronic equipment is connect with first electronic equipment, second electronic equipment is obtained to described The input output request packet that first electronic equipment is sent;The equipment identification information in the input output request packet is obtained, with root Judge whether second electronic equipment is first class of electronic devices according to the equipment identification information, obtain one and judge knot Fruit;When it is first class of electronic devices that the judging result, which shows second electronic equipment, output first management First administration interface of program.
During by the second electronic equipment to the first electronic equipment transmission input output request packet, it can be asked by input and output The equipment identification information in packet is asked to judge the device type of the first electronic equipment of access, withouts waiting for device enumeration and driving Loading procedure responds to the access of the second electronic equipment, pops up the first administration interface being managed to the second electronic equipment, because This responds to the access of the second electronic equipment before device enumeration and drive load, shortens the second electronics of response and sets The response time of standby access, efficiently solve response electronic equipment access in the prior art response time it is long the technical issues of, And then the access of quick response electronic equipment is realized, so as to quickly export the technique effect of the first administration interface.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
An embodiment of the present invention provides a kind of information processing methods, and applied to the first electronic equipment, first electronics is set The first management program being managed to the first class of electronic devices is at least installed in standby, first electronic equipment can be PC (Personal computer), PAD(Personal digital assistant)Or tablet computer.
As shown in Figure 1, this method comprises the following steps:
S101:When the second electronic equipment is connect with the first electronic equipment, obtain the second electronic equipment and set to the first electronics The input output request packet that preparation is sent;
S102:The equipment identification information in input output request packet is obtained, to judge the second electricity according to equipment identification information Whether sub- equipment is the first class of electronic devices, obtains a judging result;
S103:When it is the first class of electronic devices that judging result, which shows the second electronic equipment, the first management program of output First administration interface.
Wherein, in step S101, the second electronic equipment being connect with the first electronic equipment can be functional mobile phone, intelligent Any electronic equipment that can be connect with the second electronic equipment of mobile phone, USB flash disk etc..
In specific implementation process, it is connect for the second electronic equipment by universal serial bus with the first electronic equipment Situation, increases in the embodiment of the present invention in operating status for the first driver of USB filtration drives, is set for the second electronics Standby situation about being connect by other connection modes with the first electronic equipment, then increased driver for and other connection modes pair The driver answered is in operating status.Specifically, when the first driver is USB filtration drives, as long as in the first electronics Under equipment is in operating status after starting, USB filtration drives are just constantly in operating status.
The embodiment of the present invention is by taking the second electronic equipment accesses the first electronic equipment by USB interface as an example, to of the invention real The technical solution applied in example is described in detail, then when the second electronic equipment is connect by USB interface with the first electronic equipment, Step S101 is performed, i.e.,:When the second electronic equipment is connect with the first electronic equipment, the second electronic equipment is obtained to the first electronics The IRP that equipment is sent.
Specifically, the second electronic equipment is sent by universal serial bus to the PNP manager of the first electronic equipment IRP, with by IRP notify PNP manager exist the second electronic equipment access the first electronic equipment, then the embodiment of the present invention exist For usb bus during PNP manager sends IRP, the first driver in operating status obtains the IRP.
After execution of step S101, step S102 is then performed:Obtain the device identification letter in input output request packet Breath to judge whether the second electronic equipment is the first class of electronic devices according to equipment identification information, obtains a judging result;
Preferably, step S101 includes step 1:First driver obtains the equipment mark of the second electronic equipment from IRP Know information and include supplier identification code VID, product ID PID and device type code;Step 2:First driver is at least According to supplier's identification code VID, the product ID PID and/or the device type code judge the second electronic equipment Whether it is the first class of electronic devices, obtains the judging result.
For example, it is assumed that the first management program installed on the first electronic equipment is the cell phone managing journey being managed to mobile phone Sequence, such as mobile phone assistant, cell phone managing expert etc., then in step 2, the first driver is identified according at least to the supplier Code VID, the product ID PID and/or the device type code judge whether the second electronic equipment is mobile phone.
When it is the first class of electronic devices that judging result, which shows the second electronic equipment, step S103 is performed, i.e.,:Sentence when described Break the result shows that when second electronic equipment is first class of electronic devices, export the first pipe of first management program Manage interface.
Preferably, before step S103 is performed, following steps are further included:The first management program is controlled to be in operation shape State.Further, after controlling the first management program in operating status, when the judging result shows that second electronics is set During for being first class of electronic devices, first driver sends a notification message to first management program;Institute The first management program is stated after the notification message is received, passes through first management program control pop-up, first pipe Manage interface;First administration interface is shown on the display unit of first electronic equipment.
It can be realized by above-mentioned steps S101~S103 and be judged by the equipment identification information in input output request packet The device type of the second electronic equipment of the first electronic equipment is accessed, withouts waiting for the completion of USB device enumeration process, therefore, The device type of the second electronic equipment is just can determine that in kernel-driven state, is withouted waiting for USB device enumeration process and is completed with regard to energy First management program is directly notified there are first kind interface of electronic equipment, therefore the first management program quickly can bullet by the first driving Go out the first administration interface for managing the first class of electronic devices.
Preferably, in one embodiment, in order to realize the information exchange of the first class of electronic devices and the first electronic equipment, The universal serial bus notifies the plug and play manager that there are the second electronic equipments by the input output request packet It accesses after first electronic equipment, further includes following steps:USB device enumeration process is performed, with loading and described second Corresponding M the second driver of electronic equipment, M are the positive integer more than or equal to 1.
Specifically, the first electronic equipment obtains and described according to USB device enumeration process from the second electronic equipment The relevant device descriptive information of two electronic equipments, then, the first electronic equipment is according to the relevant equipment of the second electronic equipment Description information loads the second driver corresponding with the second electronic equipment.Wherein, M the second drivers include control second The driver that electronic equipment and the first electronic equipment interact, for example, it is Android system that the second electronic equipment, which is operating system, During the electronic equipment of system, the second driver of loading includes ADB drivers.Since USB device enumeration process is this field Technology known to technical staff, therefore details are not described herein.
Further, after step S103 is performed, following steps are further included:Whether detect the USB device enumeration process Terminate, obtain a testing result;At the end of the testing result shows the USB device enumeration process, in the described first pipe The device-dependent message of second electronic equipment is shown on reason interface.
Specifically, in specific implementation process, the second electronic equipment detects whether the USB device enumeration process terminates It is specifically as follows the first management program and detects whether the second driver corresponding with the second electronic equipment loads completion.For example, When first class of electronic devices is mobile phone, whether the first management program detection ADB drivers load completion, when testing result shows At the end of the USB device enumeration process, first management program obtains the device-dependent message of second electronic equipment, To show the device-dependent message of second electronic equipment on first administration interface.
Wherein, the equipment that the first management program can obtain second electronic equipment from above-mentioned USB device enumeration process Relevant information can also obtain the equipment phase of second electronic equipment from the notification information that above-mentioned first management program obtains Close information.
Below using the first electronic equipment as PC (personal computer), it is equipped with to manage on the first electronic equipment The cell phone managing program of Android intelligent(That is the first management program)For, increase by a USB filter drive programs in PC (That is the first driver), when PC starts, control the USB device driver in operating status and control to manage The cell phone managing program of Android intelligent is in operating status.Below with reference to Fig. 2 to the technical side in the embodiment of the present invention Case is illustrated, but is not used in the limitation present invention.
Step 1:Usb bus notifies PNP manager by IRP;To pass through USB interface when there are an Android intelligents When being connected to PC, the Android intelligent sends IRP by usb bus to PNP manager.
After step 1 is performed, including following parallel A flows and B flows, wherein, A flows and B flows are mutual It does not influence.
A flows include the step 2~step 6 performed successively:
Step 2:USB filter drive programs intercept and capture IRP;To obtain the supplier of Android intelligent knowledge from IRP The equipment identification informations such as other code VID, product ID PID, device type code.
Step 3:Determine whether that Android phone accesses;USB filter drive programs are according to the equipment identification information of acquisition Judge to access the no for Android intelligent of PC.
Step 4:When judging result is when being, notice cell phone managing program Android phone accesses;USB filtration drive journeys Sequence sends a notification message to cell phone managing program in operating status.
Step 5:Cell phone managing program gets the notification message of filter drive program transmission;
Step 6:Cell phone managing program pop-up cell phone managing interface, to show cell phone managing circle on the display unit of PC Face.
By performing step 1~step 6, PC can quickly pop up the access of response Android phone, pop up cell phone managing Interface.
B flows include step 7:USB device enumeration process is performed, is believed according to the equipment of the Android intelligent of acquisition Breath loads ADB drivers corresponding with the Android intelligent.The step 7 is existing mature technology, in order to illustrate book It is succinct, will herein be described in detail.
Then, cell phone managing program performs step 8~step 10 successively:
Step 8:Cell phone managing program is after the step 5 in having performed A flows, and whether detection USB device enumeration process It completes.
Step 9:After detection USB device enumeration process is completion, Android phone device-dependent message, tool are obtained Body can obtain the device-dependent message of the Android intelligent by the enumeration process of step 7 or be connect from step 5 The device-dependent message of the Android intelligent is obtained in the notification message received.Wherein, the device-dependent message packet of acquisition Include mobile phone title, mobile phone model, Android versions, processor model, status information, phone memory etc..
Step 10:Android phone device-dependent message is shown on cell phone managing interface.
After 1~step 10 of above-mentioned steps has been performed, PC can be controlled and managed to the Android intelligent Reason.
Based on same inventive concept, an embodiment of the present invention provides a kind of devices, applied to the first electronic equipment, described The first management program being managed to the first class of electronic devices is at least installed, described device includes in one electronic equipment:
Obtaining unit 301, for when the second electronic equipment is connect with first electronic equipment, obtaining second electricity The input output request packet that sub- equipment is sent to first electronic equipment;
Judging unit 302, for obtaining the equipment identification information in the input output request packet, with according to the equipment Whether the second electronic equipment described in identification information judgment is first class of electronic devices, obtains a judging result;
Output unit 303 shows that second electronic equipment is set for first electron-like for working as the judging result When standby, the first administration interface of first management program is exported.
Further, in specific implementation process, when second electronic equipment passes through universal serial bus and described first When electronic equipment connects, operation is in relevant first driver of the universal serial bus in first electronic equipment State.
The obtaining unit 301 specifically includes:
First transmission sub-unit is inserted for the universal serial bus by the way that input output request packet notice is described I.e. with manager, there are the second electronic equipments to access first electronic equipment;
First obtains subelement, and the input output request packet is obtained for first driver.
Further, in specific implementation process, judging unit 302 specifically includes:
Second obtains subelement, and second electronics is obtained from the input and output packet for first driver Supplier's identification code of equipment, product ID and device type code;
Judgment sub-unit, for first driver according at least to supplier's identification code, the product identification Code and/or the device type code judge whether second electronic equipment is first class of electronic devices, sentence described in acquisition Disconnected result.
Further, in specific implementation process, described device further includes:
Control unit, for controlling first management program in operating status.
Further, in specific implementation process, the output unit 303 specifically includes:
Second transmission sub-unit shows that second electronic equipment is first electron-like for working as the judging result During equipment, first driver sends a notification message to first management program;
Subelement is controlled, for first management program after the notification message is received, passes through described first First administration interface is popped up in management program control;
First administration interface is shown on the display unit of first electronic equipment.
Further, in specific implementation process, described device further includes:
Execution unit, for performing USB device enumeration process, to load M corresponding with second electronic equipment a the Two drivers, M are the positive integer more than or equal to 1.
Further, in specific implementation process, described device further includes:
Detection unit for detecting whether the USB device enumeration process terminates, obtains a testing result;
Display unit, for working as at the end of the testing result shows the USB device enumeration process, in the described first pipe The device-dependent message of second electronic equipment is shown on reason interface.
Device and aforementioned information processing method in the present embodiment are based on two aspects under same inventive concept, preceding Face is described in detail the implementation process of method, so those skilled in the art can be clear according to foregoing description The structure and implementation process of the device in the present embodiment are solved, in order to illustrate the succinct of book, details are not described herein again.
Technical solution in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
In an embodiment of the present invention, when the second electronic equipment is connect with first electronic equipment, described the is obtained The input output request packet that two electronic equipments are sent to first electronic equipment;Obtain setting in the input output request packet Standby identification information, to judge whether second electronic equipment is that first electron-like is set according to the equipment identification information It is standby, obtain a judging result;It is defeated when it is first class of electronic devices that the judging result, which shows second electronic equipment, Go out the first administration interface of first management program.Therefore, it is sent and inputted to the first electronic equipment by the second electronic equipment When exporting request bag, the equipment of the first electronic equipment of access can be judged by the equipment identification information in input output request packet Type, withouts waiting for device enumeration and drive load process responds to the access of the second electronic equipment, pops up to the second electricity The first administration interface that sub- equipment is managed, therefore before device enumeration and drive load, respond to the second electronics The access of equipment shortens the response time of response the second electronic equipment access, efficiently solves and respond electronics in the prior art The technical issues of response time of equipment access is long, and then the access of quick response electronic equipment is realized, so as to quickly export The technique effect of first administration interface.
Further, the universal serial bus is employed in one embodiment, and institute is notified by the input output request packet Stating plug and play manager, there are the second electronic equipment access first electronic equipments;Described in first driver obtains The technological means of input output request packet, therefore in the USB interface of the second electronic equipment newly connection to the first electronic equipment, with Relevant first driver of universal serial bus obtains the input output request packet, therefore the first electronic equipment can be quick Respond the access of USB device.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (16)

1. a kind of information processing method applied to the first electronic equipment, is at least equipped in first electronic equipment to first The first management program that class of electronic devices is managed, the method includes:
When the second electronic equipment is connect with first electronic equipment, second electronic equipment is obtained to first electronics The input output request packet that equipment is sent;
The equipment identification information in the input output request packet is obtained, to judge described second according to the equipment identification information Whether electronic equipment is first class of electronic devices, obtains a judging result;
When it is first class of electronic devices that the judging result, which shows second electronic equipment, output first management First administration interface of program.
2. the method as described in claim 1, which is characterized in that when second electronic equipment passes through universal serial bus and institute When stating the connection of the first electronic equipment, in first electronic equipment at relevant first driver of the universal serial bus In operating status.
3. method as claimed in claim 2, which is characterized in that described to obtain second electronic equipment to first electronics The input output request packet that equipment is sent, specially:
The universal serial bus notifies plug and play manager that there are the second electronic equipments by the input output request packet Access first electronic equipment;
First driver obtains the input output request packet.
4. method as claimed in claim 3, which is characterized in that obtain the device identification letter in the input output request packet Breath to judge whether second electronic equipment is first class of electronic devices according to the equipment identification information, obtains one Judging result is specially:
First driver obtains supplier's identification code of second electronic equipment, product from the input and output packet Identification code and device type code;
First driver is according at least to supplier's identification code, the product ID and/or the device type Code judges whether second electronic equipment is first class of electronic devices, obtains the judging result.
5. the method as described in claim 3 or 4, which is characterized in that described when the judging result shows second electricity When sub- equipment is first class of electronic devices, before the first administration interface for exporting first management program, the method It further includes:
Control first management program in operating status.
6. method as claimed in claim 5, which is characterized in that it is described it is described when the judging result show it is described second electricity When sub- equipment is first class of electronic devices, the first administration interface for exporting first management program specifically includes:
When it is first class of electronic devices that the judging result, which shows second electronic equipment, first driver A notification message is sent to first management program;
First management program is after the notification message is received, by described in first management program control pop-up First administration interface;
First administration interface is shown on the display unit of first electronic equipment.
7. method as claimed in claim 6, which is characterized in that pass through the input and output in the universal serial bus After request bag notifies that the plug and play manager accesses first electronic equipment there are the second electronic equipment, the method It further includes:
Perform USB device enumeration process, to load M corresponding with second electronic equipment the second drivers, M for more than Positive integer equal to 1.
8. the method for claim 7, which is characterized in that pop up described first by first management program described Administration interface, after showing first administration interface on the display unit of first electronic equipment, the method is also Including:
It detects whether the USB device enumeration process terminates, obtains a testing result;
At the end of the testing result shows the USB device enumeration process, on first administration interface described in display The device-dependent message of second electronic equipment.
9. a kind of information processing unit applied to the first electronic equipment, is at least equipped in first electronic equipment to first The first management program that class of electronic devices is managed, described device include:
Obtaining unit, for when the second electronic equipment is connect with first electronic equipment, obtaining second electronic equipment The input output request packet sent to first electronic equipment;
Judging unit, for obtaining the equipment identification information in the input output request packet, to be believed according to the device identification Breath judges whether second electronic equipment is first class of electronic devices, obtains a judging result;
Output unit, for when the judging result show second electronic equipment be first class of electronic devices when, it is defeated Go out the first administration interface of first management program.
10. device as claimed in claim 9, which is characterized in that when second electronic equipment by universal serial bus with During first electronic equipment connection, in first electronic equipment with relevant first driver of the universal serial bus It is in operating status.
11. device as claimed in claim 10, which is characterized in that the obtaining unit specifically includes:
First transmission sub-unit notifies plug and play management for the universal serial bus by the input output request packet There are the second electronic equipment access first electronic equipments for device;
First obtains subelement, and the input output request packet is obtained for first driver.
12. device as claimed in claim 11, which is characterized in that judging unit specifically includes:
Second obtains subelement, and second electronic equipment is obtained from the input and output packet for first driver Supplier's identification code, product ID and device type code;
Judgment sub-unit, for first driver according at least to supplier's identification code, the product ID, And/or the device type code judges whether second electronic equipment is first class of electronic devices, obtains the judgement As a result.
13. the device as described in claim 11 or 12, which is characterized in that described device further includes:
Control unit, for controlling first management program in operating status.
14. device as claimed in claim 13, which is characterized in that the output unit specifically includes:
Second transmission sub-unit shows that second electronic equipment is first class of electronic devices for working as the judging result When, first driver sends a notification message to first management program;
Subelement is controlled, for first management program after the notification message is received, is managed by described first First administration interface is popped up in program control;
First administration interface is shown on the display unit of first electronic equipment.
15. device as claimed in claim 14, which is characterized in that described device further includes:
Execution unit for performing USB device enumeration process, is driven with loading M second corresponding with second electronic equipment Dynamic program, M are the positive integer more than or equal to 1.
16. device as claimed in claim 15, which is characterized in that described device further includes:
Detection unit for detecting whether the USB device enumeration process terminates, obtains a testing result;
Display unit, for working as at the end of the testing result shows the USB device enumeration process, in first management field The device-dependent message of second electronic equipment is shown on face.
CN201310451591.XA 2013-09-25 2013-09-25 A kind of information processing method and device Active CN104461950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310451591.XA CN104461950B (en) 2013-09-25 2013-09-25 A kind of information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310451591.XA CN104461950B (en) 2013-09-25 2013-09-25 A kind of information processing method and device

Publications (2)

Publication Number Publication Date
CN104461950A CN104461950A (en) 2015-03-25
CN104461950B true CN104461950B (en) 2018-07-06

Family

ID=52908033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310451591.XA Active CN104461950B (en) 2013-09-25 2013-09-25 A kind of information processing method and device

Country Status (1)

Country Link
CN (1) CN104461950B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637281B (en) * 2020-12-08 2023-07-18 北京嘀嘀无限科技发展有限公司 Terminal equipment data access method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533452A (en) * 2009-04-17 2009-09-16 上海北大方正科技电脑系统有限公司 Method for protecting cipher of USB interface
US20090240844A1 (en) * 2008-03-21 2009-09-24 Inventec Corporation Method for adding hardware
CN101702143A (en) * 2009-12-02 2010-05-05 深圳华为通信技术有限公司 Method and device for modifying driving and matching information of USB device
CN102760104A (en) * 2012-06-25 2012-10-31 成都卫士通信息产业股份有限公司 USB (Universal Serial Bus) equipment control method
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090240844A1 (en) * 2008-03-21 2009-09-24 Inventec Corporation Method for adding hardware
CN101533452A (en) * 2009-04-17 2009-09-16 上海北大方正科技电脑系统有限公司 Method for protecting cipher of USB interface
CN101702143A (en) * 2009-12-02 2010-05-05 深圳华为通信技术有限公司 Method and device for modifying driving and matching information of USB device
CN102760104A (en) * 2012-06-25 2012-10-31 成都卫士通信息产业股份有限公司 USB (Universal Serial Bus) equipment control method
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"91手机助手使用教程";43753171;《http://wenku.baidu.com/view/74d01db365ce0508763213a8.html》;20111115;正文第4页第1-4行,第4-5页附图 *

Also Published As

Publication number Publication date
CN104461950A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104216840B (en) The method and device that a kind of USB sets and operated to external equipment
CN103516557A (en) Method and system for testing
CN105573955A (en) Multiple protocol system management method and system, and computer readable media
CN103150188B (en) The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer
TW201227341A (en) Remote management systems and methods for servers, and computer program products thereof
CN103412836B (en) Hot plug processing method, device and system
CN107229579A (en) The USB mode of USB interface and the compatibility method and device of MHL patterns
CN105224483B (en) Data transmission method, electronic equipment and universal serial bus device
CN102780207B (en) voltage protection system and method
CN102929817A (en) Heterogeneous model information automatic configuring method based on GPIO (general purpose input/output)
CN114817115A (en) Serial port communication method and related device
CN109582505B (en) BIOS option default value recovery system, method and device
CN104461950B (en) A kind of information processing method and device
CN205540248U (en) Detection apparatus for vehicle control unit
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN103123463B (en) A kind of method and device of control system state
CN102595188B (en) Method for testing intelligent television
CN109344107A (en) A kind of method and apparatus of linux system console setting
CN102810840B (en) Voltage protection system
CN103440218A (en) CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol
CN109683762A (en) Program of mobile terminal starting control processing method, mobile terminal and storage medium
CN107832638A (en) The method and terminal of a kind of terminal charge
CN104252430A (en) State indicating method and electronic equipment
CN111182514B (en) Method, device, equipment and medium for realizing pin time-sharing multiplexing
CN103747335A (en) Smart television mode switching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant