CN102591689A - Drive loading method and system of USB (universal serial bus) printer - Google Patents

Drive loading method and system of USB (universal serial bus) printer Download PDF

Info

Publication number
CN102591689A
CN102591689A CN2011104545846A CN201110454584A CN102591689A CN 102591689 A CN102591689 A CN 102591689A CN 2011104545846 A CN2011104545846 A CN 2011104545846A CN 201110454584 A CN201110454584 A CN 201110454584A CN 102591689 A CN102591689 A CN 102591689A
Authority
CN
China
Prior art keywords
printer
driver
model
usb
main frame
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
CN2011104545846A
Other languages
Chinese (zh)
Other versions
CN102591689B (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.)
Edan Instruments Inc
Original Assignee
Edan Instruments Inc
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 Edan Instruments Inc filed Critical Edan Instruments Inc
Priority to CN201110454584.6A priority Critical patent/CN102591689B/en
Publication of CN102591689A publication Critical patent/CN102591689A/en
Application granted granted Critical
Publication of CN102591689B publication Critical patent/CN102591689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention relates to a drive loading method and a system of a USB (universal serial bus) printer. The system comprises a drive program curing unit, a device connection identification unit, a device judgment unit, a printer drive judgment unit, a drive program loading unit, a program operation unit and a printing unit. According to the drive loading method and the system of the USB printer, disclosed by the invention, the model number of the USB printer accessed into a medical device can be automatically identified; whether the printer drive program with the model number exists in a medical device host computer is determined, if so, the medical device host computer automatically loads the drive program so as to drive the USB printer to operate, and the time required by a user for realizing and selecting the model number of the USB printer through an interface is saved so that use of the user is more convenient and humanized.

Description

A kind of USB printer driver loading method and system
Technical field
The present invention relates to a kind of device drives loading method and system, relate in particular to a kind of USB printer driver loading method and system.
Background technology
At present; The USB printer is because it is convenient, small and exquisite, interface simple, be easy to installation; Extensively utilization in embedded medical treatment electronic equipment; Because the printer of every kind of model has matched drive program, in the printer that connects different model, need to select the corresponding driving program that printer is normally moved.
And at present, the method for Medical Devices identification USB printer model is following: update routine, add the printer model that we need support in the recording unit combobox; Then need with the driving of the USB printer model of supporting together with our firmware software programming in embedded Medical Devices; When we connected the USB printer prints, program will load the driving of this model according to the model that we select in the recording unit combobox.This method needs the user must understand the model of USB printer earlier; In the recording unit combobox of Device Host, select correct printer model could drive printer work then; Need get into again in the recording unit combobox after the model of each replacing printer and select complex operation.
 
Summary of the invention
The technical matters that the present invention solves is: make up a kind of USB printer driver loading method and system, overcome Medical Devices in the prior art and can't discern the USB printer model of access and technical matters that can't automatic loading printer drive programme automatically.
Technical scheme of the present invention is: a kind of USB printer driver loading method; May further comprise the steps: solidify printed driver: selective printing machine model; Printer model according to selecting loads corresponding driver, and the printed driver that loads is solidified in the Medical Devices main frame; USB device and Medical Devices connect: USB device and Medical Devices main frame are set up the communication interconnection; Judge whether USB device is printer: the Medical Devices main frame judges whether this USB device is printer, if printer, the then model of definite printer; Judge whether main frame supports the loading of this model printed driver: printer model of confirming and the pairing printer model of driver that solidifies the printer in the Medical Devices main frame are compared, judge whether main frame supports the loading of this model printed driver; Load printed driver: when judging that main frame supports that this model printed driver loads, the printed driver that solidifies in Medical Devices is loaded automatically; The operation printer: after printer loaded the completion driver, the operation printer program printed print data.
Further technical scheme of the present invention is: judge said whether USB device is in the printer step, if judge when USB device is not printer apparatus, then finish communication between Medical Devices and the USB device.
Further technical scheme of the present invention is: judge said whether main frame is supported in the load step of this model printed driver; If judge when main frame does not support that this model printed driver loads; Produce alarm, finish communication between Medical Devices and the USB device.
Further technical scheme of the present invention is: said USB device and Medical Devices are to carry out communications protocol through the mode of usb protocol to shake hands, and set up communication interconnection.
Further technical scheme of the present invention is: judge that whether USB device is that the mode of printer is for to judge through the device description field in the device descriptor that reads USB device; And the mode of the model of judgement printer is for to judge through the printer model field in the device descriptor that reads USB device.
Further technical scheme of the present invention is: saidly judge whether main frame is supported in the load step of this model printed driver; Search the printed driver that solidifies in the Medical Devices main frame according to the model of printer; And the pairing printer model of printed driver and this printer model compared; Whether in main frame have and this printer model matched drive program, if having, then judge the loading of supporting this model printed driver if judging; If do not have, then judge the loading of not supporting this model printed driver.
Technical scheme of the present invention is: make up a kind of USB printer driver loading system, comprise that driver solidified cell, equipment connect recognition unit, equipment judging unit, printer driver judging unit, driver loading unit, program run unit and print unit; Said driver solidified cell is used for printed driver is solidified in the Medical Devices main frame; Said equipment connects recognition unit and links to each other with the driver solidified cell, is used for setting up the communication interconnection between USB device and the Medical Devices; Said equipment judging unit is connected recognition unit and links to each other with said equipment, be used to judge whether USB device is printer apparatus and the model of judging printer; Said printer driver judging unit links to each other with said equipment judging unit, is used to judge whether the Medical Devices main frame supports the loading of this model printed driver; Said driver loading unit links to each other with said printer driver judging unit, is used for when judging that the Medical Devices main frame supports that the driver of this model printer loads, driver being loaded; Said program run unit links to each other with said driver loading unit, is used for according to the driver that loads completion, and the operation printer program sends print data; Said print unit links to each other with said program run unit, is used to receive print data, and this print data is printed.
Further technical scheme of the present invention is: comprise that also program stops the unit; Said program stops the unit and links to each other with said equipment judging unit and print drive judging unit respectively; Be used for when judging that this USB device is not printer apparatus; Finish the communication between Medical Devices main frame and the USB device; When maybe in judging Medical Devices, not having, finish the communication between Medical Devices main frame and the USB device with this model printer matched drive program.
Further technical scheme of the present invention is: said driver solidified cell comprises model selection module and curing module; Said model is selected module, is used for the model of selective printing machine, and loads corresponding driver according to the printer model of selecting; Said curing module selects module to link to each other with said model, is used for the corresponding driver that loads is solidified in the Medical Devices main frame.
Further technical scheme of the present invention is: said equipment judging unit comprises printer judge module and printer model judge module; Said printer judge module through the device description field in the device descriptor that reads this USB device, judges whether this USB device is printer apparatus; Said printer model judge module links to each other with said printer judge module, is used for when judging that USB device is printer apparatus, judging the model of printer through the printer model field in the device descriptor that reads this USB device.
Technique effect of the present invention is: make up a kind of printer driver loading method and system; Can discern the model of the USB printer that inserts Medical Devices automatically; And whether the printed driver of this model arranged in definite Medical Devices main frame; If have, then the automatic load driver program of Medical Devices main frame meeting drives the operation of USB printer with this; Saved that the user need understand and gone to select time of USB printer model through the interface, it is convenient to let the user use, more hommization.
 
Description of drawings
Fig. 1 is a kind of USB printer driver loading method process flow diagram of the present invention.
Fig. 2 is a kind of USB printer driver loading system synoptic diagram of the present invention.
 
Embodiment
Below in conjunction with specific embodiment, technical scheme of the present invention is further specified.
As shown in Figure 1, embodiment of the present invention is: a kind of USB printer driver loading method is provided, comprises the steps:
Step 101 is solidified printed driver;
Detailed process is: selective printing machine model, load corresponding driver according to the printer model of selecting, and the printed driver that will load solidifies in the Medical Devices main frame.
Step 102, USB device and Medical Devices connect;
Detailed process is: USB device is accessed in the Medical Devices, and when the Medical Devices main frame had detected the USB device access, main frame can carry out communication through the mode of usb protocol and the USB device of access, carries out communications protocol and shakes hands, and set up the communication interconnection; Promptly accomplish being connected of USB device and Medical Devices.
Step 103 judges whether this USB device is printer;
Detailed process is: when Medical Devices and USB device accomplish is connected after, main frame can read the device descriptor of this USB device, the device description field in according with through this equipment statement judges whether this USB device is printer apparatus; Wherein each USB device self all can have unique device descriptor, and promptly this device descriptor is all a kind of codes of equipment self, and main frame calculates and confirms that which kind of equipment USB device is through reading this code line correlation of going forward side by side.
Step 104 judges whether main frame supports the loading of this model printed driver;
Detailed process is: when main frame judges that this USB device is printer apparatus; Main frame also can further be confirmed the model of this printer; Whether search the driver that solidifies the printer in the Medical Devices main frame according to the model of this printer then, and model and this printer model of the pairing printer of those printed drivers are compared, judging has in the main frame and this printer model matched drive program; If have; Then judge the loading of supporting this model printed driver,, then judge the loading of not supporting this model printed driver if do not have; The method of wherein judging printer model is to read the printer model field in the equipment statement symbol of USB device through main frame, judges the concrete model of the USB device of connection according to this printer model field.
Step 105 loads printed driver;
Detailed process is: when having with this printer model matched drive program in the main frame judgement Medical Devices; It is the loading that Medical Devices are supported the driver of this printer model; Then main frame loads the printed driver that is solidificated in the Medical Devices according to the printer model that reads automatically; Through loading, can make the exchange that prints data between USB printer and the Medical Devices main frame with this driver.
Step 106, the printer program operation;
Detailed process is: after printer loaded the completion driver, the operation printer program printed exchanges data between printer and the Medical Devices main frame, accomplishes the printing of print data.
Step 107, EOP (end of program);
Detailed process is: when the Medical Devices main frame judges that this USB device is not printer apparatus, finish communication between Medical Devices main frame and the USB device, then EOP (end of program); When not having with this printer model matched drive program in the main frame judgement Medical Devices; It is the loading that the Medical Devices main frame is not supported the driver of this printer model; It is the exchange that can not print data between USB printer and the Medical Devices main frame; Can carry out alarm this moment, finishes communication between Medical Devices main frame and the USB device, then EOP (end of program).
As shown in Figure 2; Embodiment of the present invention is: make up a kind of USB printer driver loading system, comprise that driver solidified cell 201, equipment connect recognition unit 202, equipment judging unit 203, printer driver judging unit 204, driver loading unit 205, program run unit 206, program termination unit 207 and print unit 208; Said driver solidified cell 201 is used for the model of selective printing machine, loads corresponding driver according to the model of the printer of selecting, and this driver is solidified in the Medical Devices main frame; Said equipment connects recognition unit 202 and links to each other with driver solidified cell 201, and whether be used for detecting has USB device to insert, and when having detected the USB device access, USB device and Medical Devices is set up the communication interconnection; Said equipment judging unit 203 is connected recognition unit 202 and links to each other with said equipment, be used to judge whether USB device is the model of printer and printer; Said printer driver judging unit 204 links to each other with said equipment judging unit 203, is used to judge whether the Medical Devices main frame supports the driver of this model printer to load; Promptly search the driver that solidifies the printer in the Medical Devices main frame, and model and this printer model of the pairing printer of those printed drivers are compared according to the model of this printer; Said driver loading unit 205 links to each other with said printer driver judging unit 204, is used for when judging that the Medical Devices main frame supports that the driver of this model printer loads, driver being loaded; Program run unit 206 links to each other with said driver loading unit 205, is used for according to the driver that loads completion, and the operation printer program sends print data; Program stops unit 207 and links to each other with said equipment judging unit 203 and print drive judging unit 204 respectively; Be used for when judging that this USB device is not printer apparatus; Finish the communication between Medical Devices main frame and the USB device; Or in the Medical Devices during, finish the communication between Medical Devices main frame and the USB device not with this printer model matched drive program; Said print unit 208 links to each other with said program run unit 206, is used to receive print data, and this print data is printed.
Wherein, said driver solidified cell 201 comprises model selection module 211 and curing module 221; Said model is selected module 211, is used for the model of selective printing machine, and loads corresponding driver according to the model of the printer of selecting; Said curing module 221 selects module 211 to link to each other with said model, is used for the corresponding driver that loads is solidified in the Medical Devices main frame; Said equipment judging unit 203 comprises printer judge module 213 and printer model judge module 223; Said printer judge module 213 is used for the device description field through the device descriptor that reads this USB device, judges whether this USB device is printer apparatus; Said printer model judge module 223 links to each other with said printer judge module 213, is used for when judging that USB device is printer apparatus, judging the model of printer through the printer model field in the device descriptor that reads this USB device.
A kind of printer driver loading method of the present invention and system; Can discern the model of the USB printer that inserts Medical Devices automatically; And whether the printed driver of this model arranged in definite Medical Devices main frame; If have, then the automatic load driver program of Medical Devices main frame meeting drives the operation of USB printer with this; Saved that the user need understand and gone to select time of USB printer model through the interface, it is convenient to let the user use, more hommization.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.

Claims (10)

1. a USB printer driver loading method is characterized in that, may further comprise the steps:
Solidify printed driver: selective printing machine model loads corresponding driver according to the printer model of selecting, and the printed driver that loads is solidified in the Medical Devices main frame;
USB device and Medical Devices connect: USB device and Medical Devices main frame are set up the communication interconnection;
Judge whether USB device is printer: the Medical Devices main frame judges whether this USB device is printer, if printer, the then model of definite printer;
Judge whether main frame supports the loading of this model printed driver: printer model of confirming and the pairing printer model of driver that solidifies the printer in the Medical Devices main frame are compared, judge whether main frame supports the loading of this model printed driver;
Load printed driver: when judging that main frame supports that this model printed driver loads, the printed driver that solidifies in Medical Devices is loaded automatically;
The operation printer: after printer loaded the completion driver, the operation printer program printed print data.
2. according to the said a kind of USB printer driver loading method of claim 1, it is characterized in that judge said whether USB device is in the printer step,, then finish communication between Medical Devices and the USB device if judge when USB device is not printer apparatus.
3. according to claim 1 or 2 said a kind of USB printer driver loading methods; It is characterized in that; Judge said whether main frame is supported in the load step of this model printed driver; If judge when main frame does not support that this model printed driver loads, produce alarm, finish communication between Medical Devices and the USB device.
4. according to the said a kind of USB printer driver loading method of claim 3, it is characterized in that said USB device and Medical Devices are to carry out communications protocol through the mode of usb protocol to shake hands, set up communication interconnection.
5. according to the said a kind of USB printer driver loading method of claim 3, it is characterized in that, judge that whether USB device is that the mode of printer is for to judge through the device description field in the device descriptor that reads USB device; And the mode of the model of judgement printer is for to judge through the printer model field in the device descriptor that reads USB device.
6. according to the said a kind of USB printer driver loading method of claim 3; It is characterized in that, saidly judge that whether main frame is supported in the load step of this model printed driver, searches the printed driver that solidifies in the Medical Devices main frame according to the model of printer; And the pairing printer model of printed driver and this printer model compared; Whether in main frame have and this printer model matched drive program, if having, then judge the loading of supporting this model printed driver if judging; If do not have, then judge the loading of not supporting this model printed driver.
7. a USB printer driver loading system is characterized in that, comprises that driver solidified cell, equipment connect recognition unit, equipment judging unit, printer driver judging unit, driver loading unit, program run unit and print unit;
Said driver solidified cell is used for printed driver is solidified in the Medical Devices main frame;
Said equipment connects recognition unit and links to each other with the driver solidified cell, is used for setting up the communication interconnection between USB device and the Medical Devices;
Said equipment judging unit is connected recognition unit and links to each other with said equipment, be used to judge whether USB device is printer apparatus and the model of judging printer;
Said printer driver judging unit links to each other with said equipment judging unit, is used to judge whether the Medical Devices main frame supports the loading of this model printed driver;
Said driver loading unit links to each other with said printer driver judging unit, is used for when judging that the Medical Devices main frame supports that the driver of this model printer loads, driver being loaded;
Said program run unit links to each other with said driver loading unit, is used for according to the driver that loads completion, and the operation printer program sends print data;
Said print unit links to each other with said program run unit, is used to receive print data, and this print data is printed.
8. a kind of USB printer driver loading system according to claim 7 is characterized in that, comprises that also program stops the unit; Said program stops the unit and links to each other with said equipment judging unit and print drive judging unit respectively; Be used for when judging that this USB device is not printer apparatus; Finish the communication between Medical Devices main frame and the USB device; When maybe in judging Medical Devices, not having, finish the communication between Medical Devices main frame and the USB device with this model printer matched drive program.
9. a kind of USB printer driver loading system according to claim 8 is characterized in that, said driver solidified cell comprises model selection module and curing module; Said model is selected module, is used for the model of selective printing machine, and loads corresponding driver according to the printer model of selecting; Said curing module selects module to link to each other with said model, is used for the corresponding driver that loads is solidified in the Medical Devices main frame.
10. a kind of USB printer driver loading system according to claim 8 is characterized in that said equipment judging unit comprises printer judge module and printer model judge module; Said printer judge module through the device description field in the device descriptor that reads this USB device, judges whether this USB device is printer apparatus; Said printer model judge module links to each other with said printer judge module, is used for when judging that USB device is printer apparatus, judging the model of printer through the printer model field in the device descriptor that reads this USB device.
CN201110454584.6A 2011-12-30 2011-12-30 A kind of USB printer drive load method and system Active CN102591689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110454584.6A CN102591689B (en) 2011-12-30 2011-12-30 A kind of USB printer drive load method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110454584.6A CN102591689B (en) 2011-12-30 2011-12-30 A kind of USB printer drive load method and system

Publications (2)

Publication Number Publication Date
CN102591689A true CN102591689A (en) 2012-07-18
CN102591689B CN102591689B (en) 2016-08-03

Family

ID=46480401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110454584.6A Active CN102591689B (en) 2011-12-30 2011-12-30 A kind of USB printer drive load method and system

Country Status (1)

Country Link
CN (1) CN102591689B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336034A (en) * 2015-10-15 2016-02-17 浪潮软件集团有限公司 Tax service hall multifunctional evaluator optimization method
CN109101250A (en) * 2018-08-31 2018-12-28 深圳丰速科技有限公司 Printer driver installation method, device, computer equipment and storage medium
CN109299607A (en) * 2018-08-24 2019-02-01 珠海奔图电子有限公司 Driver safety detection method, device and image formation system
CN114936011A (en) * 2022-07-20 2022-08-23 深圳市星卡软件技术开发有限公司 Printing processing method, device, equipment and medium for automobile diagnosis equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201229574Y (en) * 2008-05-27 2009-04-29 十速科技股份有限公司 Computer interface control device for peripheral apparatus
CN101674267A (en) * 2009-06-30 2010-03-17 中兴通讯股份有限公司 Home gateway and method thereof used for realizing driving of USB equipment
CN102214148A (en) * 2010-04-01 2011-10-12 山东新北洋信息技术股份有限公司 Printer with USB (Universal Serial Bus) interface as well as driver installation method and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201229574Y (en) * 2008-05-27 2009-04-29 十速科技股份有限公司 Computer interface control device for peripheral apparatus
CN101674267A (en) * 2009-06-30 2010-03-17 中兴通讯股份有限公司 Home gateway and method thereof used for realizing driving of USB equipment
CN102214148A (en) * 2010-04-01 2011-10-12 山东新北洋信息技术股份有限公司 Printer with USB (Universal Serial Bus) interface as well as driver installation method and system thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336034A (en) * 2015-10-15 2016-02-17 浪潮软件集团有限公司 Tax service hall multifunctional evaluator optimization method
CN109299607A (en) * 2018-08-24 2019-02-01 珠海奔图电子有限公司 Driver safety detection method, device and image formation system
CN109101250A (en) * 2018-08-31 2018-12-28 深圳丰速科技有限公司 Printer driver installation method, device, computer equipment and storage medium
CN114936011A (en) * 2022-07-20 2022-08-23 深圳市星卡软件技术开发有限公司 Printing processing method, device, equipment and medium for automobile diagnosis equipment
CN114936011B (en) * 2022-07-20 2022-10-11 深圳市星卡软件技术开发有限公司 Printing processing method, device, equipment and medium for automobile diagnosis equipment

Also Published As

Publication number Publication date
CN102591689B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN101840317A (en) Device and method for automatically configuring print driver
CN102945173B (en) User program online upgrade system and upgrade method
CN102591689A (en) Drive loading method and system of USB (universal serial bus) printer
KR101279710B1 (en) Plc data log module and method for storing data in the same
JP2007114901A5 (en)
US8972712B2 (en) Device for reprogramming an embedded system to allow the system to return to an initial embedded system information or a reprogrammed embedded system information
CN102067097A (en) USB device and method for recognizing USB mode of the same
CN101989205A (en) Software system upgrading method for universal serial bus (USB) equipment
CN101295255A (en) Firmware updating system and method
CN102890636A (en) Firmware upgrade method and system under Android system
CN113608772B (en) Application program upgrading method and device
CN102880527A (en) Data recovery method of baseboard management controller
CN111756858A (en) Remote development processing system, method and device of embedded equipment
CN102761646B (en) System and method for command interaction correction for dual-mode phone
US7890666B2 (en) Embedded protocol selection technique, related interface and computer program product
CN107885518A (en) A kind of onboard system upgrading abnormal log recording method and device
CN110738284A (en) IC card full-automatic card issuing, writing and recycling method
CN101086719A (en) Control of a multifunctional device
EP2562649B1 (en) Method for repairing communication abnormality between data card and host
CN102591839B (en) USB (universal serial bus) multiprotocol self-adaptive method
CN110888689B (en) Touch screen drive loading method, storage medium and terminal equipment
CN110381196B (en) Control method for falling protection of mobile device and mobile device
CN109917749B (en) Automatic control wiring method and device
CN101859248B (en) Method for popping out external CD-ROM equipment without caution by Windows operation system
CN111176854B (en) Method and system for synchronizing exit of Carplay

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant