Information processing method and device
An information processing method and information judgment technology, applied in the electronic field, can solve problems such as long response time, and achieve the effect of rapid response
Active Publication Date: 2015-03-25
LENOVO (BEIJING) CO LTD
5 Cites 1 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0005] The embodiment of the present invention provides an information processing method and device, which are u...
Abstract
The invention discloses an information processing method and device used for solving the technical problem that in the prior art, the responding time for responding to access of an electronic device is long. The information processing method is applied to a first electronic device, a first management program for managing the first kind of electronic devices is at least installed in the first electronic device, and when a second electronic device is connected with the first electronic device, an input and output request packet sent to the first electronic device by the second electronic device is obtained; equipment identification information in the input and output request packet is obtained so that whether the second electronic device belongs to the first kind of electronic devices or not can be judged according to the equipment identification information, and a judgment result is obtained; when the judgment result shows that the second electronic device belongs to the first kind of electronic devices, a first management interface of the first management program is output.
Application Domain
Electric digital data processing
Technology Topic
Computer hardwareInformation processing +1
Image
Examples
- Experimental program(1)
Example Embodiment
[0056] The embodiments of the present invention provide an information processing method and device, which are used to solve the technical problem that the prior art cannot quickly respond to the access of electronic equipment.
[0057] The technical solution in the embodiment of the present invention is to solve the above-mentioned technical problems, and the general idea is as follows:
[0058] At least a first management program for managing a first type of electronic device is installed in the first electronic device, and the method includes: when the second electronic device is connected to the first electronic device, acquiring the second electronic device The input and output request packet sent by the device to the first electronic device; the device identification information in the input and output request packet is obtained to determine whether the second electronic device is the first type of electronic device according to the device identification information The device obtains a judgment result; when the judgment result indicates that the second electronic device is the first type of electronic device, output the first management interface of the first management program.
[0059] When sending an input/output request packet to the first electronic device through the second electronic device, the device identification information in the input/output request packet can be used to determine the type of device connected to the first electronic device, without waiting for device enumeration and driver loading. It can respond to the access of the second electronic device and pop up the first management interface for managing the second electronic device. Therefore, before the device is enumerated and the driver is loaded, it can respond to the access of the second electronic device, which shortens the response to the second electronic device. The response time of the device access effectively solves the technical problem of long response time in response to the access of the electronic device in the prior art, thereby realizing a quick response to the access of the electronic device, thereby quickly outputting the technical effect of the first management interface.
[0060] In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the accompanying drawings of the specification and specific implementations.
[0061] The embodiment of the present invention provides an information processing method, which is applied to a first electronic device, and at least a first management program for managing a first type of electronic device is installed in the first electronic device. The first electronic device may It is a PC (personal computer), PAD (personal digital assistant) or a tablet.
[0062] Such as figure 1 As shown, the method includes the following steps:
[0063] S101: When the second electronic device is connected to the first electronic device, obtain an input/output request packet sent by the second electronic device to the first electronic device;
[0064] S102: Obtain device identification information in the input/output request packet to determine whether the second electronic device is a first-type electronic device according to the device identification information, and obtain a determination result;
[0065] S103: When the judgment result indicates that the second electronic device is the first type of electronic device, output the first management interface of the first management program.
[0066] Wherein, in step S101, the second electronic device connected to the first electronic device may be any electronic device that can be connected to the second electronic device, such as a feature phone, a smart phone, a USB flash drive, or the like.
[0067] In the specific implementation process, for the case where the second electronic device is connected to the first electronic device through the universal serial bus, the first driver added as the USB filter driver in the embodiment of the present invention is in the running state, and the second electronic device passes through When other connection modes are connected to the first electronic device, the added driver is that the driver corresponding to the other connection mode is in a running state. Specifically, when the first driver is a USB filter driver, the USB filter driver will always be in the running state as long as it is in the running state after the first electronic device is started.
[0068] In the embodiment of the present invention, the second electronic device is connected to the first electronic device through the USB interface as an example, and the technical solution in the embodiment of the present invention is described in detail. When the second electronic device is connected to the first electronic device through the USB interface, Step S101 is executed, that is, when the second electronic device is connected to the first electronic device, the IRP sent by the second electronic device to the first electronic device is acquired.
[0069] Specifically, the second electronic device sends an IRP to the PNP manager of the first electronic device through the universal serial bus to notify the PNP manager that the second electronic device is connected to the first electronic device through the IRP, then the embodiment of the present invention is When the USB bus sends an IRP to the PNP manager, the first driver in the running state obtains the IRP.
[0070] After performing step S101, proceed to step S102: obtaining the device identification information in the input and output request packet to determine whether the second electronic device is the first type of electronic device according to the device identification information, and obtaining a judgment result;
[0071] Preferably, step S101 includes step 1: the first driver obtains the device identification information of the second electronic device from the IRP, including the vendor identification code VID, the product identification code PID, and the device type code; Step 2: the first driver At least according to the supplier identification code VID, the product identification code PID, and/or the device type code, it is determined whether the second electronic device is a first type electronic device, and the determination result is obtained.
[0072] For example, assuming that the first management program installed on the first electronic device is a mobile phone management program that manages the mobile phone, such as a mobile phone assistant, a mobile phone management expert, etc., in step 2, the first driver is at least identified according to the supplier The code VID, the product identification code PID, and/or the device type code determine whether the second electronic device is a mobile phone.
[0073] When the judgment result indicates that the second electronic device is a first type electronic device, step S103 is executed, that is: when the judgment result indicates that the second electronic device is the first type electronic device, output the first management The first management interface of the program.
[0074] Preferably, before step S103 is executed, the following step is further included: controlling the first management program to be in a running state. Further, after controlling the first management program to be in the running state, when the judgment result indicates that the second electronic device is the first type of electronic device, the first driver sends a message to the first management program Notification message; after receiving the notification message, the first management program controls the pop-up of the first management interface through the first management program; displays the first management interface on the display unit of the first electronic device Management interface.
[0075] Through the above steps S101 to S103, the device identification information in the input and output request packet can be used to determine the device type of the second electronic device connected to the first electronic device. There is no need to wait for the completion of the USB device enumeration process. Therefore, in the kernel drive state The device type of the second electronic device can be determined, and the first driver can directly notify the first management program that there is the first type of electronic device interface without waiting for the USB device enumeration process to complete, so the first management program can quickly pop up for The first management interface for managing the first type of electronic equipment.
[0076] Preferably, in one embodiment, in order to realize the information interaction between the first type electronic device and the first electronic device, the universal serial bus informs the plug-and-play manager of the existence of the plug-and-play manager through the input/output request packet. After the second electronic device is connected to the first electronic device, it further includes the following steps: execute a USB device enumeration process to load M second driver programs corresponding to the second electronic device, where M is greater than or equal to 1. Positive integer.
[0077] Specifically, the first electronic device obtains the device description information related to the second electronic device from the second electronic device according to the USB device enumeration process, and then, the first electronic device obtains the device description information related to the second electronic device according to the device The description information loads the second driver corresponding to the second electronic device. Wherein, the M second drivers include drivers that control the interaction between the second electronic device and the first electronic device. For example, when the second electronic device is an electronic device with an Android operating system, the loaded second driver includes ADB driver. Since the USB device enumeration process is a technology well known to those skilled in the art, it will not be repeated here.
[0078] Further, after step S103 is performed, the method further includes the following steps: detecting whether the USB device enumeration process is over, and obtaining a detection result; when the detection result indicates that the USB device enumeration process is over, in the first The device related information of the second electronic device is displayed on the management interface.
[0079] Specifically, in a specific implementation process, detecting whether the USB device enumeration process is completed by the second electronic device may specifically be that the first management program detects whether the second driver corresponding to the second electronic device has been loaded. For example, when the first type of electronic device is a mobile phone, the first management program detects whether the ADB driver is loaded, and when the detection result indicates that the USB device enumeration process is over, the first management program acquires the second electronic device The device-related information of the second electronic device is displayed on the first management interface.
[0080] The first management program may obtain the device-related information of the second electronic device from the above-mentioned USB device enumeration process, and may also obtain the device-related information of the second electronic device from the notification information obtained by the above-mentioned first management program. .
[0081] Taking the first electronic device as a PC (personal computer) as an example, a mobile phone management program (ie, the first management program) for managing Android smart phones is installed on the first electronic device as an example, and a USB filter driver is added to the PC ( That is, the first driver), when the PC is started, the USB driver is controlled to be in the running state, and the mobile phone management program for managing the Android smart phone is controlled to be in the running state. Reference below figure 2 The technical solutions in the embodiments of the present invention are illustrated by examples, but they are not used to limit the present invention.
[0082] Step 1: The USB bus informs the PNP manager through the IRP; when there is an Android smart phone connected to the PC through the USB interface, the Android smart phone sends the IRP to the PNP manager through the USB bus.
[0083] After step 1 is executed, the following parallel A process and B process are included, where the A process and the B process do not affect each other.
[0084] Process A includes steps 2 to 6 executed in sequence:
[0085] Step 2: The USB filter driver intercepts the IRP; to obtain device identification information such as the vendor identification code VID, product identification code PID, and device type code of the Android smartphone from the IRP.
[0086] Step 3: Determine whether it is an Android mobile phone access; the USB filter driver determines whether the PC is connected to an Android smart phone according to the obtained device identification information.
[0087] Step 4: When the judgment result is yes, notify the mobile phone management program Android mobile phone access; the USB filter driver sends a notification message to the mobile phone management program in the running state.
[0088] Step 5: The mobile phone management program obtains the notification message sent by the filter driver;
[0089] Step 6: The mobile phone management program pops up the mobile phone management interface to display the mobile phone management interface on the display unit of the PC.
[0090] By performing steps 1 to 6, the PC can quickly pop up to respond to the access of the Android phone and pop up the phone management interface.
[0091] The B process includes step 7: the USB device enumeration process is executed, and the ADB driver corresponding to the Android smart phone is loaded according to the obtained device information of the Android smart phone. This step 7 is an existing mature technology, and for the sake of brevity of the description, it is not detailed here.
[0092] Then, the mobile phone management program sequentially executes steps 8 to 10:
[0093] Step 8: The mobile phone management program detects whether the USB device enumeration process is complete after executing step 5 in the process A.
[0094] Step 9: After detecting that the USB device enumeration process is completed, obtain the relevant information of the Android mobile phone device. Specifically, the device-related information of the Android smartphone can be obtained through the enumeration process in step 7 or the notification message received from step 5 To obtain device-related information of the Android smartphone. Among them, the obtained device-related information includes phone name, phone model, Android version, processor model, status information, phone storage space, and so on.
[0095] Step 10: Display the relevant information of the Android mobile device on the mobile phone management interface.
[0096] After performing the above steps 1 to 10, the PC can control and manage the Android smart phone.
[0097] Based on the same inventive concept, an embodiment of the present invention provides a device, which is applied to a first electronic device, in which at least a first management program for managing a first type of electronic device is installed, and the device includes :
[0098] The obtaining unit 301 is configured to obtain an input/output request packet sent by the second electronic device to the first electronic device when the second electronic device is connected to the first electronic device;
[0099] The judging unit 302 is configured to obtain the device identification information in the input and output request packet to determine whether the second electronic device is the first type of electronic device according to the device identification information, and obtain a judgment result;
[0100] The output unit 303 is configured to output the first management interface of the first management program when the judgment result indicates that the second electronic device is the first type of electronic device.
[0101] Further, in a specific implementation process, when the second electronic device is connected to the first electronic device through the universal serial bus, the first driver program in the first electronic device related to the universal serial bus It is running.
[0102] The obtaining unit 301 specifically includes:
[0103] The first sending subunit is used for the universal serial bus to notify the plug-and-play manager of the presence of a second electronic device to access the first electronic device through the input/output request packet;
[0104] The first obtaining subunit is used for the first driver to obtain the input/output request packet.
[0105] Further, in the specific implementation process, the judging unit 302 specifically includes:
[0106] The second obtaining subunit is used for the first driver to obtain the supplier identification code, product identification code, and device type code of the second electronic device from the input/output package;
[0107] The judging subunit is used for the first driver to judge whether the second electronic device is the first type of electronic device based on at least the supplier identification code, the product identification code, and/or the device type code Equipment to obtain the judgment result.
[0108] Further, in a specific implementation process, the device further includes:
[0109] The control unit is used to control the first management program to be in a running state.
[0110] Further, in a specific implementation process, the output unit 303 specifically includes:
[0111] A second sending subunit, configured to send a notification message by the first driver to the first management program when the judgment result indicates that the second electronic device is the first type of electronic device;
[0112] The control subunit is configured to control the pop-up of the first management interface through the first management program after the first management program receives the notification message;
[0113] The first management interface is displayed on the display unit of the first electronic device.
[0114] Further, in a specific implementation process, the device further includes:
[0115] The execution unit is configured to execute the USB device enumeration process to load M second driver programs corresponding to the second electronic device, where M is a positive integer greater than or equal to 1.
[0116] Further, in a specific implementation process, the device further includes:
[0117] The detection unit is configured to detect whether the USB device enumeration process is finished, and obtain a detection result;
[0118] The display unit is configured to display device-related information of the second electronic device on the first management interface when the detection result indicates that the USB device enumeration process ends.
[0119] The device in this embodiment and the foregoing information processing method are based on two aspects under the same inventive concept. The implementation process of the method has been described in detail above, so those skilled in the art can clearly understand this implementation based on the foregoing description. For the sake of brevity of the description, the structure and implementation process of the device in the example will not be repeated here.
[0120] The above-mentioned technical solutions in the embodiments of the present application have at least the following technical effects or advantages:
[0121] In an embodiment of the present invention, when the second electronic device is connected to the first electronic device, obtain the input/output request packet sent by the second electronic device to the first electronic device; obtain the input/output request The device identification information in the package is used to determine whether the second electronic device is the first type of electronic device according to the device identification information to obtain a judgment result; when the judgment result indicates that the second electronic device is When the first type of electronic device is described, the first management interface of the first management program is output. Therefore, when the input/output request packet is sent to the first electronic device through the second electronic device, the device identification information in the input/output request packet can be used to determine the type of device connected to the first electronic device, without waiting for device enumeration and driver loading. The process can respond to the access of the second electronic device, and the first management interface for managing the second electronic device pops up. Therefore, before the device enumeration and the driver load, it can respond to the access of the second electronic device, shortening the response time. Second, the response time of electronic device access effectively solves the technical problem of long response time in response to electronic device access in the prior art, thereby realizing quick response to the access of electronic device, thereby quickly outputting the technical effect of the first management interface .
[0122] Further, in one embodiment, the universal serial bus is used to notify the plug-and-play manager that a second electronic device is connected to the first electronic device through the input and output request packet; the first driver The technical means for the program to obtain the input and output request packet. Therefore, when the second electronic device is just connected to the USB interface of the first electronic device, the first driver related to the universal serial bus obtains the input and output request packet. The first electronic device can quickly respond to the access of the USB device.
[0123] These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device is implemented in the process Figure one Process or multiple processes and/or boxes Figure one Functions specified in a box or multiple boxes.
[0124] These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. Instructions are provided to implement the process Figure one Process or multiple processes and/or boxes Figure one Steps of functions specified in a box or multiple boxes.
[0125] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0126] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Similar technology patents
Environment-friendly passive type temperature controlling and humidifying material and preparation method thereof
Owner:武汉威尔博科技发展有限公司
Three-dimensional display screen based on single-pixel liquid crystal lens
Owner:SHANGHAI JIAO TONG UNIV
Image magnification display method and device
Owner:XIAOMI INC
Platform screen door safety protection control method and system
Owner:PCI TECH & SERVICE CO LTD
Flexible and high-telescopic nanofiber core spun yarn stress sensor with pleated structure and preparation method of stress sensor
Owner:ZHONGYUAN ENGINEERING COLLEGE
Classification and recommendation of technical efficacy words
- quick response
Data buffer store method and system at duster environment
Owner:KINGDEE SOFTWARE(CHINA) CO LTD
Voice control method and electronic device
Owner:LENOVO (BEIJING) CO LTD
Designing method of fuzzy PID (Proportion-Integration-Differential) controller
Owner:SHAANXI TECHN INST OF DEFENSE IND
Parallel processing method and device for complex tasks
Owner:JUHAOKAN TECH CO LTD