CN102999448A - Method and device for detecting external equipment - Google Patents

Method and device for detecting external equipment Download PDF

Info

Publication number
CN102999448A
CN102999448A CN2011102719754A CN201110271975A CN102999448A CN 102999448 A CN102999448 A CN 102999448A CN 2011102719754 A CN2011102719754 A CN 2011102719754A CN 201110271975 A CN201110271975 A CN 201110271975A CN 102999448 A CN102999448 A CN 102999448A
Authority
CN
China
Prior art keywords
information
peripheral hardware
expends
external unit
equipment
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.)
Granted
Application number
CN2011102719754A
Other languages
Chinese (zh)
Other versions
CN102999448B (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.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Qizhi Software Beijing Co 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 Qizhi Software Beijing Co Ltd filed Critical Qizhi Software Beijing Co Ltd
Priority to CN201110271975.4A priority Critical patent/CN102999448B/en
Publication of CN102999448A publication Critical patent/CN102999448A/en
Application granted granted Critical
Publication of CN102999448B publication Critical patent/CN102999448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and device for detecting external equipment. The method comprises the following steps of acquiring the using consumption information of the external equipment of user equipment by accessing to a port of the external equipment, and/or accessing a driving program corresponding to the external equipment, and/or accessing a sensor of the external equipment; and based on the using consumption information of the external equipment, generating consumption prompt information according to a preset rule. A user can acquire the current using condition of the external equipment so as to replace or update the external equipment and ensure the normal use of the external equipment.

Description

Disposal route and device that a kind of external unit detects
Technical field
The present invention relates to the technical field of hardware detection, particularly relate to a kind of disposal route of external unit detection and the treating apparatus that a kind of external unit detects.
Background technology
External unit is called for short " peripheral hardware ", refers to be connected in main frame hardware device in addition, and data and information are played a part transmission, pass on and store, be the bridge between user and the machine.
External unit generally can be divided into input equipment and output device.The task of input equipment is the various forms of information such as the data of customer requirements Computer Processing, character, literal, figure and program to be converted to the receptible coding form of computing machine be deposited in the computing machine, comprise keyboard, mouse, camera, scanner, light pen, writing input board, joystick, speech input device etc.The task of output device is that the result of computing machine is exported with the form (such as screen display, literal printing, graphical diagrams, language sound equipment etc.) that the user needs, and comprises display, printer, plotting apparatus, image output system, voice output system, magnetic recording equipment etc.
In the use procedure of subscriber equipment, outer if its institute's consumptive material of being with is also in continuous consumption, some peripheral hardware has the serviceable life of oneself, for example, the erasable number of times of USB flash disk probably has 1,000 ten thousand times, when USB flash disk access times during near its erasable number of times, the USB flash disk that the user just need to renew, otherwise may affect the security of its data of preserving; The peripheral hardware that also has needs in time to add new consumptive material, and for example, printer need in the situation that there is paper to print, if the user does not know that in advance printer has not had paper, will affect its normal use.
Therefore, need at present the urgent technical matters that solves of those skilled in the art to be exactly: to propose the treatment mechanism that a kind of external unit detects, make the user can know the current behaviour in service of external unit, ahead of time it changed or to add newly, guarantee the normal use of external unit.
Summary of the invention
Technical matters to be solved by this invention provides the disposal route that a kind of external unit detects, and makes the user can know the behaviour in service of external unit, ahead of time it changed or to add newly, guarantees the normal use of external unit.
The treating apparatus that the present invention also provides a kind of external unit to detect is in order to guarantee said method application and realization in practice.
In order to address the above problem, the embodiment of the invention discloses the disposal route that a kind of external unit detects, comprising:
By the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends;
Use the information that expends according to described peripheral hardware, generate according to presetting rule and expend information.
Preferably, described by the access port for peripheral equipment, the peripheral hardware that obtains subscriber equipment uses the step of the information that expends to comprise:
Adopt the mode of SetupAPI to access port for peripheral equipment, initiate the I/O operation with port for peripheral equipment;
By carrying out instruction interaction with port for peripheral equipment, the peripheral hardware that obtains external unit uses the information that expends.
Preferably, described method also comprises:
When the peripheral hardware use of obtaining subscriber equipment expends information, obtain the peripheral hardware identification information of subscriber equipment, described peripheral hardware identification information comprises vendor id and external unit ID.
Preferably, describedly use the information that expends according to peripheral hardware, generate the step that expends information according to presetting rule and comprise:
Use the information that expends to send to corresponding external unit described peripheral hardware, and accept external unit and use the information that expends that expends Information generation according to described peripheral hardware.
And/or, obtain described peripheral hardware and use the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generate the corresponding information that expends.
Preferably, described peripheral hardware Application standard information exchange is crossed the following steps acquisition:
According to described peripheral hardware identification information, in initialized data base, search corresponding peripheral hardware Application standard information.
Preferably, described peripheral hardware Application standard information exchange is crossed the following steps acquisition:
According to described peripheral hardware identification information, retrieve on the internet, obtain corresponding peripheral hardware Application standard information.
Preferably, the described information that expends offers corresponding user, and described method also comprises:
Adopt default form and language that described peripheral hardware is used and expend information, peripheral hardware identification information, peripheral hardware Application standard information and expend information conversion, and generate the corresponding page that represents at subscriber equipment.
Preferably, the described information that expends offers corresponding supplier, and described method also comprises:
Obtain supplier's contact details corresponding to described peripheral hardware identification information;
According to described supplier's contact details, with described peripheral hardware identification information with expend information and be sent to corresponding supplier.
Preferably, described external unit comprises:
The input equipment that links to each other with subscriber equipment, display device, printing device, external memory storage or the network equipment.
The treating apparatus that the present invention also provides a kind of external unit to detect comprises:
Peripheral hardware uses and expends the acquisition of information module, is used for by the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends;
Expend the information generation module, be used for using the information that expends according to described peripheral hardware, generate according to presetting rule and expend information.
Preferably, described peripheral hardware uses and expends the acquisition of information module and comprise:
Port for peripheral equipment access submodule is used for adopting the mode of SetupAPI to access port for peripheral equipment, initiates the I/O operation with port for peripheral equipment;
The instruction interaction submodule is used for by carrying out instruction interaction with port for peripheral equipment, and the peripheral hardware that obtains external unit uses the information that expends.
Preferably, described device also comprises:
The peripheral hardware identification information obtains submodule, is used for obtaining the peripheral hardware identification information of subscriber equipment when the peripheral hardware use of obtaining subscriber equipment expends information, and described peripheral hardware identification information comprises vendor id and external unit ID.
Preferably, the described information generation module that expends comprises:
First expends information generates submodule, is used for using the information that expends to send to corresponding external unit described peripheral hardware, and accepts external unit and use the information that expends that expends Information generation according to described peripheral hardware;
And/or second expends information generates submodule, is used for obtaining described peripheral hardware and uses the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generates the corresponding information that expends.
Preferably, described peripheral hardware Application standard information exchange is crossed following submodule acquisition:
Peripheral hardware Application standard information searching submodule is used for searching corresponding peripheral hardware Application standard information according to described peripheral hardware identification information in initialized data base.
Preferably, described peripheral hardware Application standard information exchange is crossed following submodule acquisition:
Peripheral hardware Application standard information search submodule is used for retrieving on the internet according to described peripheral hardware identification information, obtains corresponding peripheral hardware Application standard information.
Preferably, the described information that expends offers corresponding user, and described device also comprises:
The information display module is used for adopting default form and language that described peripheral hardware is used and expends information, peripheral hardware identification information, peripheral hardware Application standard information and expend information conversion, and generates the corresponding page that represents at subscriber equipment.
Preferably, the described information that expends offers corresponding supplier, and described device also comprises:
Supplier's contact details acquisition module is used for obtaining supplier's contact details corresponding to described peripheral hardware identification information;
Information sending module is used for according to described supplier's contact details, with described peripheral hardware identification information with expend information and be sent to corresponding supplier.
Preferably, described external unit comprises:
The input equipment that links to each other with subscriber equipment, display device, printing device, external memory storage or the network equipment.
Compared with prior art, the present invention has the following advantages:
The peripheral hardware use of the subscriber equipment that the present invention's foundation gets access to expends Information generation and expends information, thereby make the user can know the current behaviour in service of external unit, if external unit need to be changed or add newly, just can be ready in advance, to guarantee the normal use of external unit.
In addition, among the present invention, also the relevant information with above-mentioned peripheral hardware offers the supplier, the supplier can be known according to this information the behaviour in service of user's peripheral hardware, if need to changing or add, discovery user peripheral hardware newly just can to the direct deliver goods of user, also make things convenient for the user when providing a kind of marketing channel to the supplier.
Description of drawings
Fig. 1 is the process flow diagram of the disposal route embodiment 1 of a kind of external unit detection of the present invention;
Fig. 2 is the process flow diagram of the disposal route embodiment 2 of a kind of external unit detection of the present invention;
Fig. 3 is the structured flowchart of the treating apparatus embodiment 1 of a kind of external unit detection of the present invention;
Fig. 4 is the structured flowchart of the treating apparatus embodiment 2 of a kind of external unit detection of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
For prior art, the user can't know outer if its with the Expenditure Levels of consumptive material, only have when external unit consumption and use after can't continuing for a long time, or consumptive material be finished just know when needing to add need to external unit change or add new, thereby affected user's normal use.
In view of this, the inventor herein creatively proposes one of core idea of the embodiment of the invention and is, by the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends; Then expend Information generation according to the peripheral hardware use and expend information, make the user can know the current behaviour in service of external unit, ahead of time it changed or to add newly, guarantee the normal use of external unit.
With reference to figure 1, show the flow chart of steps of the disposal route embodiment 1 of a kind of external unit detection of the present invention, specifically can may further comprise the steps:
Step 101, by the access port for peripheral equipment, and/or, access external unit corresponding driver, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends.
In concrete realization, described external unit can comprise: the input equipment that links to each other with subscriber equipment, display device, printing device, external memory storage or the network equipment.
Take computing machine as example, input equipment (Input Device) is the people or outside carries out mutual a kind of device with equipment, is used for the program of raw data and these data of processing is input to computing machine, for example, keyboard, mouse, speech input device, digital camera, scanner etc.
Peripheral hardware use the information that expends can show as the data of the current use state of expression peripheral hardware or peripheral hardware with the data of consumable items allowance etc.For different peripheral, peripheral hardware uses the form of expression of status data different.
Display device is equivalent to user's eyes in computer output equipment, whether correctly usually all observe operation by display device, and what the result is, computer display apparatus mainly contains CRT monitor, LCD demonstration, plasma display and projector at present.
Printing device (printer) is one of output device of computing machine, and numeral, letter, symbol and figure etc. that operation result or the intermediate result of computing machine can be identified with the people are imprinted on equipment on the paper according to the form of regulation.
External memory storage is the equipment of storing not direct in the computing machine and the information such as those instruction and datas that arithmetical unit contacts.
The network equipment is used for many computer systems are linked to be computer network by communication line, and the information of carrying out transmits thereby reach at a high speed, exactly, reaches resource sharing, improves the purpose of the utilization factor of computing machine, such as: modulator-demodular unit and network interface card etc.
In the present invention, peripheral hardware uses and expends consumption information, serviceable life and/or the ageing information that information refers to various peripheral hardwares and peripheral hardware consumptive material.
Portion of external equipment and subscriber equipment carry out needing corresponding driver is installed when related, and driver is played the part of the role of communication, tells subscriber equipment the function of peripheral hardware, and also the instruction of system are conveyed to peripheral hardware, allow it start working.For example, external printer will be installed printed driver, and external game hardware is wanted the driver of mounting handle, bearing circle, rocking bar etc.Comprising corresponding peripheral hardware information in the driver, the peripheral hardware that just can obtain subscriber equipment by access driver uses the information that expends.
In a kind of preferred embodiment of the present invention, described by the access port for peripheral equipment, the peripheral hardware that obtains subscriber equipment uses the step of the information that expends to comprise:
The mode of substep S11, employing SetupAPI is accessed port for peripheral equipment, initiates the I/O operation with port for peripheral equipment.
Substep S12, by carrying out instruction interaction with port for peripheral equipment, the peripheral hardware that obtains external unit uses the information that expends.
Port is the place of direct and external unit communication.Behind the peripheral hardware connecting system, system will be mapped to specific port address space to the data-interface of peripheral hardware, like this, is exactly from the peripheral hardware reading data from this port reading data, and is exactly to the port data writing to the peripheral hardware data writing, i.e. I/O operation.For have that peripheral port can access external unit, can adopt the mode of SetupAPI to access peripheral port, initiate the I/O operation with peripheral port.
Next, need corresponding peripheral port to carry out further instruction interaction, the peripheral hardware that just can obtain external unit uses information, namely send information, request judges whether to be connected with peripheral hardware, as receives the information that peripheral hardware returns for this request, then can pass through instruction interaction, further send information acquisition request to this peripheral hardware, then receive the peripheral hardware that peripheral hardware returns and use the information that expends.
For example, when obtaining the use status information of disk by SetupApi, can utilize SetupDiGetClassDevs ((LPGUID) ﹠amp; GUID_DEVINTERFACE_DISK, NULL, NULL, DIGCF_PRESENT|DIGCF_DEVICEINTERFACE) enumerate disk unit information, then utilize SetupDiEnumDeviceInterfaces (hdevInfo, NULL, (LPGUID) ﹠amp; GUID_DEVINTERFACE_DISK, ndx , ﹠amp; DevInfData) enumerate disk unit, then disk unit is called SetupDiGetDeviceInterfaceDetail (hdevInfo , ﹠amp; DevIntfData, NULL, 0 , ﹠amp; Req Size, NULL), obtain the disk unit path, then send IOCTL_STORAGE_GET_DEVICE_NUMBER to this disk, can obtain the device number of disk, the corresponding use state obtaining information that sends just can obtain the use status information of disk, the space size that has used such as disk or the erasable number of times of disk etc.
For some external units from belt sensor, can obtain the peripheral hardware use by the mode of accessing its sensor and expend information, for example: under the word roller of general stylus printer a photoelectric sensor is housed all, detects whether lack paper.In normal situation, photoelectric sensor can be felt the existence of paper behind the dress paper, send the solicited message that the use state obtains to this sensor, sensor will produce an electric signal and return to subscriber equipment, just demonstrates a signal that paper is arranged or do not have paper on the interface of subscriber equipment.
It is different that different external units carry out related mode from subscriber equipment, therefore, obtaining peripheral hardware uses the mode of the information that expends also different, can be by the access port for peripheral equipment, also can pass through the corresponding driver of access external unit, or by accessing the sensor of external unit.Above three kinds are obtained peripheral hardware and use the mode of the information that expends to arrange in pairs or groups flexibly according to the real system situation of peripheral hardware, can select wherein any mode or the combination of various ways, and the present invention is not restricted this.
Step 102, the described peripheral hardware of foundation use the information that expends, and generate according to presetting rule and expend information.
In a kind of preferred embodiment of the present invention, described step 102 can comprise:
Substep S21, use the information that expends to send to corresponding external unit described peripheral hardware, and accept external unit and use the information that expends that expends Information generation according to described peripheral hardware.
Expending information is to use the information that expends to judge according to current peripheral hardware to obtain, if the service time of peripheral hardware is near serviceable life, just need prompting user to change, if some consumptive materials of peripheral hardware are finished, then need prompting user to add new consumptive material.
Portion of external equipment can generate information automatically according to current use status information, for example, when printer does not have paper, printer can generate the information that does not have paper automatically, traditional mode be when the user uses printer prompting on the interface of printer or subscriber equipment, and herein, after the sensor by access printer has obtained the information that does not have paper, this information can be sent to printer, and obtain the information that does not have paper that printer generates.Equally, printer does not have black the time, can obtain corresponding prompting yet.
And/or, substep S22, obtain described peripheral hardware and use the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generate the corresponding information that expends.
Some external units can not use according to peripheral hardware and expend Information generation and expend information, its peripheral hardware can be used and expend information and peripheral hardware Application standard information compares, thereby learn whether it needs to change or add newly, and generating corresponding information, peripheral hardware Application standard information table understands the information such as long life of this peripheral hardware or maximum working strength.
For example, the standard of a liquid crystal display is used information, be that standard serviceable life is 2~30,000 hours, detection knows that this display used near 30,000 hours, the pre-conditioned data of using the information of expending for peripheral hardware use as the peripheral hardware standard information data 80%, satisfied as can be known pre-conditionedly after these two data are compared, will generate corresponding information, the i.e. new display of prompting changing of expending this moment.
In a kind of preferred embodiment of the present invention, the described information that expends can offer corresponding user, and described method can also comprise:
Adopt default form and language that described peripheral hardware is used and expend information, peripheral hardware identification information, peripheral hardware Application standard information and expend information conversion, and generate the corresponding page that represents at subscriber equipment.
Because the peripheral hardware identification information mainly is to represent with English in practice, being not easy to the user understands, especially be not easy to demestic user's accurate understanding, the peripheral hardware relevant with it use expend information, expend information, peripheral hardware Application standard information also has part and represents with English, therefore, the present invention can also adopt the reading form of Chinese and user habit to change above-mentioned information by this step.
Certainly, it all is feasible that those skilled in the art adopt any language and form to change according to actual conditions, and the present invention is not restricted this.
Can generate the corresponding page that represents at subscriber equipment after above-mentioned information changed, offer corresponding user, in the following example:
Portable hard drive: Seagate ST9250827AS
Standard serviceable life: 30,000 hours
Use: totally 15000 times, accumulative total 28530 hours
Advise that you change portable hard drive immediately.
With reference to figure 2, show the flow chart of steps of the disposal route embodiment 2 of a kind of external unit detection of the present invention, specifically can may further comprise the steps:
Step 201, by the access port for peripheral equipment, and/or, access external unit corresponding driver, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses and expends information and peripheral hardware identification information, and described peripheral hardware identification information comprises vendor id and external unit ID;
Step 202, the described peripheral hardware of foundation use the information that expends, and generate according to presetting rule and expend information.
In a kind of preferred embodiment of the present invention, described step 202 can comprise:
Substep S31, use the information that expends to send to corresponding external unit described peripheral hardware, and accept external unit and use the information that expends that expends Information generation according to described peripheral hardware.
And/or, substep S32, obtain described peripheral hardware and use the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generate the corresponding information that expends.
In concrete realization, described peripheral hardware Application standard information can obtain by following substep:
According to described peripheral hardware identification information, in initialized data base, search corresponding peripheral hardware Application standard information.In this example, can preset peripheral hardware Application standard information database, when getting access to the peripheral hardware identification information, can in this database, mate according to the vendor id that wherein comprises and hardware device ID, then filter out corresponding peripheral hardware Application standard information.
In the another kind of example of embodiments of the invention, described peripheral hardware Application standard information exchange is crossed following substep and is obtained:
According to described peripheral hardware identification information, retrieve on the internet, obtain corresponding peripheral hardware Application standard information.In this example, can according to the peripheral hardware identification information that obtains as searching key word, search for corresponding peripheral hardware Application standard information on the net with last example is distinguished.
In a kind of preferred embodiment of the present invention, the described information that expends can offer corresponding supplier, and described method can also comprise:
Step 203, obtain supplier's contact details corresponding to described peripheral hardware identification information;
Step 204, according to described supplier's contact details, with described peripheral hardware identification information with expend information and be sent to corresponding supplier.
After getting access to above-mentioned information, information can also be offered corresponding supplier, the supplier delivers according to such supplier's active contact user, the user need not go to seek the supplier again, the time of having saved the user, has also increased new marketing channel to the supplier.
In sum, the invention provides the disposal route that a kind of external unit detects, the peripheral hardware use of the subscriber equipment that foundation gets access to expends Information generation and expends information, thereby make the user can know the current behaviour in service of external unit, if external unit need to be changed or add newly, just can be ready in advance, to guarantee the normal use of external unit.
In addition, among the present invention, also the relevant information with above-mentioned peripheral hardware offers the supplier, the supplier can be known according to this information the behaviour in service of user's peripheral hardware, if need to changing or add, discovery user peripheral hardware newly just can to the direct deliver goods of user, also make things convenient for the user when providing a kind of marketing channel to the supplier.
What each embodiment in this instructions stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
Need to prove, in embodiments of the present invention, described subscriber equipment comprises computing machine, mobile phone, PDA etc., and described hardware comprises CPU, mainboard, video card, display, internal memory, hard disk, CD-ROM drive, sound card, battery, network interface card, mouse-keyboard and/or makes a video recording first-class.The embodiment of the invention not only can be applied to can also be applied to the applied environment of client-server in the applied environment of single device, perhaps further is applied in the applied environment based on cloud.
For embodiment of the method, for simple description, therefore it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 3, show the structured flowchart of the treating apparatus embodiment 1 of a kind of external unit detection of the present invention, specifically can comprise with lower module:
Peripheral hardware uses and expends acquisition of information module 301, is used for by the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends;
Expend information generation module 302, be used for using the information that expends according to described peripheral hardware, generate according to presetting rule and expend information.
In a kind of preferred embodiment of the present invention, described peripheral hardware use expends the acquisition of information module and can comprise:
Port for peripheral equipment access submodule is used for adopting the mode of SetupAPI to access port for peripheral equipment, initiates the I/O operation with port for peripheral equipment;
The instruction interaction submodule is used for by carrying out instruction interaction with port for peripheral equipment, and the peripheral hardware that obtains external unit uses the information that expends.
In a kind of preferred embodiment of the present invention, the described information generation module that expends can comprise:
First expends information generates submodule, is used for using the information that expends to send to corresponding external unit described peripheral hardware, and accepts external unit and use the information that expends that expends Information generation according to described peripheral hardware;
And/or second expends information generates submodule, is used for obtaining described peripheral hardware and uses the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generates the corresponding information that expends.
In concrete realization, described external unit can comprise:
The input equipment that links to each other with subscriber equipment, display device, printing device, external memory storage or the network equipment.
In a kind of preferred embodiment of the present invention, the described information that expends can offer corresponding user, and described device can also comprise:
The information display module is used for adopting default form and language that described peripheral hardware is used and expends information, peripheral hardware identification information, peripheral hardware Application standard information and expend information conversion, and generates the corresponding page that represents at subscriber equipment.
With reference to figure 4, show the structured flowchart of the treating apparatus embodiment 2 of a kind of external unit detection of the present invention, specifically can comprise with lower module:
Acquisition of information module 401, be used for by the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses and expends information and peripheral hardware identification information, and described peripheral hardware identification information comprises vendor id and external unit ID;
Expend information generation module 402, be used for using the information that expends according to described peripheral hardware, generate according to presetting rule and expend information;
In a kind of preferred embodiment of the present invention, the described information that expends can offer corresponding supplier, and described device can also comprise:
Supplier's contact details acquisition module 403 is used for obtaining supplier's contact details corresponding to described peripheral hardware identification information;
Information sending module 404 is used for according to described supplier's contact details, with described peripheral hardware identification information with expend information and be sent to corresponding supplier.
In a kind of preferred embodiment of the present invention, the described information generation module 402 that expends can comprise:
First expends information generates submodule, is used for using the information that expends to send to corresponding external unit described peripheral hardware, and accepts external unit and use the information that expends that expends Information generation according to described peripheral hardware;
And/or second expends information generates submodule, is used for obtaining described peripheral hardware and uses the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generates the corresponding information that expends.
In a kind of preferred embodiment of the present invention, described peripheral hardware Application standard information can obtain by following submodule:
Peripheral hardware Application standard information searching submodule is used for searching corresponding peripheral hardware Application standard information according to described peripheral hardware identification information in initialized data base.
In the another kind of example of a kind of preferred embodiment of the present invention, described peripheral hardware Application standard information can obtain by following submodule:
Peripheral hardware Application standard information search submodule is used for retrieving on the internet according to described peripheral hardware identification information, obtains corresponding peripheral hardware Application standard information.
The embodiment of the invention not only can be applied to can also be applied to the applied environment of client-server in the applied environment of single device, perhaps further is applied in the applied environment based on cloud.
Because described device embodiment is substantially corresponding to preceding method embodiment, therefore not detailed part in the description of the present embodiment can referring to the related description in the previous embodiment, just not given unnecessary details at this.Module, submodule and unit related in apparatus of the present invention embodiment and the system embodiment can be software, can be hardware, also can be the combination of software and hardware.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
In this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, article or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, article or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The above treating apparatus that disposal route and a kind of external unit of a kind of external unit detection provided by the present invention are detected is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (18)

1. the disposal route that external unit detects is characterized in that, comprising:
By the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends;
Use the information that expends according to described peripheral hardware, generate according to presetting rule and expend information.
2. the method for claim 1 is characterized in that, and is described by the access port for peripheral equipment, and the peripheral hardware that obtains subscriber equipment uses the step of the information that expends to comprise:
Adopt the mode of SetupAPI to access port for peripheral equipment, initiate the I/O operation with port for peripheral equipment;
By carrying out instruction interaction with port for peripheral equipment, the peripheral hardware that obtains external unit uses the information that expends.
3. method as claimed in claim 2 is characterized in that, also comprises:
When the peripheral hardware use of obtaining subscriber equipment expends information, obtain the peripheral hardware identification information of subscriber equipment, described peripheral hardware identification information comprises vendor id and external unit ID.
4. method as claimed in claim 3 is characterized in that, describedly uses the information that expends according to peripheral hardware, generates the step that expends information according to presetting rule and comprises:
Use the information that expends to send to corresponding external unit described peripheral hardware, and accept external unit and use the information that expends that expends Information generation according to described peripheral hardware.
And/or, obtain described peripheral hardware and use the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generate the corresponding information that expends.
5. method as claimed in claim 4 is characterized in that, described peripheral hardware Application standard information exchange is crossed following steps and obtained:
According to described peripheral hardware identification information, in initialized data base, search corresponding peripheral hardware Application standard information.
6. method as claimed in claim 4 is characterized in that, described peripheral hardware Application standard information exchange is crossed following steps and obtained:
According to described peripheral hardware identification information, retrieve on the internet, obtain corresponding peripheral hardware Application standard information.
7. method as claimed in claim 6 is characterized in that, the described information that expends offers corresponding user, and described method also comprises:
Adopt default form and language that described peripheral hardware is used and expend information, peripheral hardware identification information, peripheral hardware Application standard information and expend information conversion, and generate the corresponding page that represents at subscriber equipment.
8. method as claimed in claim 6 is characterized in that, the described information that expends offers corresponding supplier, and described method also comprises:
Obtain supplier's contact details corresponding to described peripheral hardware identification information;
According to described supplier's contact details, with described peripheral hardware identification information with expend information and be sent to corresponding supplier.
9. method as claimed in claim 8 is characterized in that, described external unit comprises:
The input equipment that links to each other with subscriber equipment, display device, printing device, external memory storage or the network equipment.
10. the treating apparatus that external unit detects is characterized in that, comprising:
Peripheral hardware uses and expends the acquisition of information module, is used for by the access port for peripheral equipment, and/or, the corresponding driver of access external unit, and/or, the sensor of access external unit, the peripheral hardware that obtains subscriber equipment uses the information that expends;
Expend the information generation module, be used for using the information that expends according to described peripheral hardware, generate according to presetting rule and expend information.
11. device as claimed in claim 10 is characterized in that, described peripheral hardware use expends the acquisition of information module and comprises:
Port for peripheral equipment access submodule is used for adopting the mode of SetupAPI to access port for peripheral equipment, initiates the I/O operation with port for peripheral equipment;
The instruction interaction submodule is used for by carrying out instruction interaction with port for peripheral equipment, and the peripheral hardware that obtains external unit uses the information that expends.
12. device as claimed in claim 11 is characterized in that, also comprises:
The peripheral hardware identification information obtains submodule, is used for obtaining the peripheral hardware identification information of subscriber equipment when the peripheral hardware use of obtaining subscriber equipment expends information, and described peripheral hardware identification information comprises vendor id and external unit ID.
13. device as claimed in claim 12 is characterized in that, the described information generation module that expends comprises:
First expends information generates submodule, is used for using the information that expends to send to corresponding external unit described peripheral hardware, and accepts external unit and use the information that expends that expends Information generation according to described peripheral hardware;
And/or second expends information generates submodule, is used for obtaining described peripheral hardware and uses the information that expends, pre-conditioned if described comparative information satisfies with the comparative information of corresponding peripheral hardware Application standard information, then generates the corresponding information that expends.
14. device as claimed in claim 13 is characterized in that, described peripheral hardware Application standard information exchange is crossed following submodule and is obtained:
Peripheral hardware Application standard information searching submodule is used for searching corresponding peripheral hardware Application standard information according to described peripheral hardware identification information in initialized data base.
15. device as claimed in claim 13 is characterized in that, described peripheral hardware Application standard information exchange is crossed following submodule and is obtained:
Peripheral hardware Application standard information search submodule is used for retrieving on the internet according to described peripheral hardware identification information, obtains corresponding peripheral hardware Application standard information.
16. device as claimed in claim 15 is characterized in that, the described information that expends offers corresponding user, and described device also comprises:
The information display module is used for adopting default form and language that described peripheral hardware is used and expends information, peripheral hardware identification information, peripheral hardware Application standard information and expend information conversion, and generates the corresponding page that represents at subscriber equipment.
17. device as claimed in claim 15 is characterized in that, the described information that expends offers corresponding supplier, and described device also comprises:
Supplier's contact details acquisition module is used for obtaining supplier's contact details corresponding to described peripheral hardware identification information;
Information sending module is used for according to described supplier's contact details, with described peripheral hardware identification information with expend information and be sent to corresponding supplier.
18. device as claimed in claim 17 is characterized in that, described external unit comprises:
The input equipment that links to each other with subscriber equipment, display device, printing device, external memory storage or the network equipment.
CN201110271975.4A 2011-09-14 2011-09-14 A kind of processing method and processing device of external equipment detection Active CN102999448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110271975.4A CN102999448B (en) 2011-09-14 2011-09-14 A kind of processing method and processing device of external equipment detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110271975.4A CN102999448B (en) 2011-09-14 2011-09-14 A kind of processing method and processing device of external equipment detection

Publications (2)

Publication Number Publication Date
CN102999448A true CN102999448A (en) 2013-03-27
CN102999448B CN102999448B (en) 2018-07-06

Family

ID=47928036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110271975.4A Active CN102999448B (en) 2011-09-14 2011-09-14 A kind of processing method and processing device of external equipment detection

Country Status (1)

Country Link
CN (1) CN102999448B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951931A (en) * 2016-01-06 2017-07-14 肖大林 The anti-alternative and system of a kind of printer and duplicator consumptive material
CN111131418A (en) * 2019-12-13 2020-05-08 深圳拓邦股份有限公司 Vulnerable part monitoring and managing method, device and system
CN113168161A (en) * 2018-07-24 2021-07-23 伊利诺斯工具制品有限公司 Method and apparatus for material preparation and analysis equipment using encoded information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5230573A (en) * 1991-07-19 1993-07-27 Seikosha Co., Ltd. Printer with upstream sensor used to determine paper empty condition
EP0602787A2 (en) * 1992-11-18 1994-06-22 Canon Information Systems, Inc. Method and apparatus for obtaining and for controlling the status of a networked peripheral
US6295423B1 (en) * 1999-10-01 2001-09-25 Hewlett-Packard Company Methods and systems for monitoring consumable item lifetimes for peripheral units
US20050144623A1 (en) * 2003-12-24 2005-06-30 Fuji Xerox Co., Ltd. Information collection method and system
CN1832864A (en) * 2003-08-08 2006-09-13 佳能株式会社 Request method of service request apparatus
CN101535967A (en) * 2006-11-30 2009-09-16 株式会社东芝 Memory system
CN101582046A (en) * 2009-06-26 2009-11-18 浪潮电子信息产业股份有限公司 High-available system state monitoring, forcasting and intelligent management method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5230573A (en) * 1991-07-19 1993-07-27 Seikosha Co., Ltd. Printer with upstream sensor used to determine paper empty condition
EP0602787A2 (en) * 1992-11-18 1994-06-22 Canon Information Systems, Inc. Method and apparatus for obtaining and for controlling the status of a networked peripheral
US6295423B1 (en) * 1999-10-01 2001-09-25 Hewlett-Packard Company Methods and systems for monitoring consumable item lifetimes for peripheral units
CN1832864A (en) * 2003-08-08 2006-09-13 佳能株式会社 Request method of service request apparatus
US20050144623A1 (en) * 2003-12-24 2005-06-30 Fuji Xerox Co., Ltd. Information collection method and system
CN101535967A (en) * 2006-11-30 2009-09-16 株式会社东芝 Memory system
CN101582046A (en) * 2009-06-26 2009-11-18 浪潮电子信息产业股份有限公司 High-available system state monitoring, forcasting and intelligent management method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951931A (en) * 2016-01-06 2017-07-14 肖大林 The anti-alternative and system of a kind of printer and duplicator consumptive material
CN113168161A (en) * 2018-07-24 2021-07-23 伊利诺斯工具制品有限公司 Method and apparatus for material preparation and analysis equipment using encoded information
CN111131418A (en) * 2019-12-13 2020-05-08 深圳拓邦股份有限公司 Vulnerable part monitoring and managing method, device and system

Also Published As

Publication number Publication date
CN102999448B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
US11853343B2 (en) Method, apparatus, and computer program product for user-specific contextual integration for a searchable enterprise platform
US10521824B1 (en) System and method for personalized content recommendations
CN104718541A (en) Generating a user-defined section of a digital magazine from a search request
US11727270B2 (en) Cross data set knowledge distillation for training machine learning models
CN110869925B (en) Multiple entity aware pre-entry in a search
JP6507541B2 (en) INFORMATION DISPLAY DEVICE, INFORMATION DISPLAY PROGRAM, AND INFORMATION DISPLAY METHOD
CN103180849A (en) Searching multiple data sources using mobile computing device
US10698876B2 (en) Distinguish phrases in displayed content
CN102855532A (en) Method and device based on communication message management work task
CN104199952A (en) Method and device for acquiring information of interest points
CN110221835A (en) Increase the method and device of control in front end page
CN106126570A (en) Information service system
CA3154763A1 (en) Data operation method, device and system
CN114375451A (en) Site and service signaling for driving automated custom system configuration
CN102999448A (en) Method and device for detecting external equipment
CN102984020A (en) Cloud-computation-based net surfing monitoring method and monitoring system and monitoring server
US20160343088A1 (en) Generating a supplemental description of an entity
CN104919448A (en) Device, method and system for displaying digital editions
CN108647532A (en) Method, apparatus, electronic equipment and the storage medium of sensitive users mark secrecy
US11132503B2 (en) Query a system via natural language NLP2X
CN110321262B (en) Application content monitoring method and device and terminal
JP2014010485A (en) Related content search device and related content search method
CN103034468B (en) A kind of method and device showing text
US20190303963A1 (en) Processing messages for value extraction
US20220335043A1 (en) Unified Multilingual Command Recommendation Model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100016 East unit, 4th floor, Zhaowei building, 14 Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20220208

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.

TR01 Transfer of patent right