24???±?????¨??????

×??????°

ASP.NETVC++MySQLPHP°?×?JSPLinuxJavaVBASP?????ú?????????¤??±????è??Flash
?ú?±?°?????????????¨?? > ±????????¨?? >
?ì??????
±????????¨??
????????
??????????ר???á?????????ú×?±????è??????????2002?ê?????????????à???§?á???ó??±????è?????????¨????·????????????à???§???????ò??ר×????ù??ר??????×÷?????ó??·??????ú211/958?????????????°?????ú?è??????±??????°????5000?à?????§????????????×÷???????? ±ü???????§?????????????§???ì???????í??????????????·ì?????????ó·??????????ú×?±????è???ê???ó??ר?????????????????????????ê??????????±??è?ó?????§?????????????¨??,????????±???±????¤??
?ú×?±????è??
????????

?í???±????2018/10/23 ?ù????????±????????¨??
±????¨???????????????????í?????? U ?????? BMP ???????????????????? 51 ?????ú?????????????????÷?????????????????????????°????????????·?PC ?ú???±???ò????????
??????????±?????????????

?? ??

?????ò???ú????±??ú?????·?? HP???????????????????ê?????à?????????????à±??ê??ר??±??¤?????à???ü?????????ú???????????????????????????ú?????ò???ú??×???·????¨?????????ò???ú????????????????·?????×??á?????ò???ú???????ò?????ó????±?????·¨?????ù??????·¨?è???ù???????ú??????×???????????????????·? PC ???ò???????ì?¨?ù????

????????USB?????????ò???ú???ò?????????¨?? USB???????à???????ú??????·??????ò???ú???????ò??????????×??????ú??????????·??????????????ì?ò???????????????ù???????ú???????????????ò????????×??????????????÷????????????????

??????????????×???·????? USB Monitor ???? USB ?????ò???ú?????ú?ú???ò????????????????·????????????????????? USB ×??????é?¨?????ò?????? USB ×??????????è???????ú???????????????? USB ?????ò???ú???°?????????è±????¨???????????????ù?? U ???? BMP ?????????°???????ò?????? 51 ?????ú???????????è±? U ???? BMP ???????????§???????á???????????ù???????¨?????ò???ú??????·???????????×??á?????????????ó??????±?????·¨??×??ó???????ú??????±????ó?????ó?????¨?? USB ????·??????ò???ú????×????ó???????????????????ù±?????·? PC ?ú???ò????????

????±????¨?????????ò???ú????????????????·?????×??á???????ù?ò???ú?????ó??????±?????·¨?????? USB ?????ò???ú???????ú????????????·?·¨?????????????ò???ú?ò??°??????????????°??????

???????ü?????????ú??USB???ò???ú??????

ABSTRACT

????The printer market has monopolized for almost three decades by foreign giants such as HP, Canon and so on, while the related technologies are there are many applied for patent protection, a lot of key technology research but no breakthrough. As from the status of the domestic printer, through research and analysis the ink jet printer of command sets, proposed the data matrix inkjet printer driver of the transformation algorithm, according to this algorithm and data conversion system design based on Microcontrollers, so as to achieve the foundation for the non-PC printing function.

????The conventional USB interfaces printing process of the inkjet printer need to connect to a computer via USB cable to send data to the printer, achieve the printing capabilities. With the continuous development of Microcontrollers technology, increasingly wide in application area, make it becomes possible from document data to the print data based on Microcontroller. The main contents are:

????Firstly, collection the USB interface printer driver generated data through bus analyzers USB Monitor then analyzed and parsed;Secondly, study USB bus protocol communication rules, choose USB bus chip, designhardware systems, realization of communication the printer with a USB interface and removablestorage devices;Thirdly, parsing BMP file formats and rules based on the U disk storage, achieve microcontrollers to achieve the extraction of mobile storage devices U disk BMP format images valid data;Fourthly, according to the ink jet printer analysis and research for the specified instruction set, submitted the original document to dot matrix data of transform algorithm;Finally, the microcontrollers system will send the converted dot matrix to the printer through the USB interface, then test the converted data, and basically realize the non-PC printing functions.

????Based on an inkjet printer instruction set do the research and analysis, proposed transformation algorithm form driven data sent to the printer dot, accomplishing microcontrollersControl  ystem based on USB interfaces Printer. This method can be as a reference for studying other printers or publishing and printing industry.

????KEY WORDS: Microcontroller, USB, Printer, Data

???????ú???ò???ú?????à?????ú?????ò???ú???· HP??Epson??Canon ??????±??????ó?????ò???ú·??????????ê???????ú±??????ò???ú???????????????????????????à???????????????????????·?????ê?????????ò?????ò???ú?°??????????ר?????????ò???ú??????????????ר??±??¤??????????????[1]?????ú???ì??·????????????ê?????ò?????è?ó???????ó??????????±??÷???????ò?????·?????ù????[2]?????±???ú???ó?????ù???????????ú???ú?ú??????×?????????????????????·á???????ó?§?????? 08 ?ê????·????????ú?ò???ú???????÷?鱨????????????????°????ú?????????ó?·??????×?±???×??????? 82.6%[3]???ú???????????????????????????????ú????×??????ò???ú?·??????????????×??????????????????????·???¤???????°???????????????????ê??????×??÷?????ú?¨[4]??????±??ú???·???????ü 30???ê?????±?§?é?????????????°???¨???ò???ú???????¨??×??÷?????ú?¨??×??÷???????????????????????????????????ú?·??

?????ò???ú???????ò?????????????????ò???ú???ó????±???°?×°?à?????????ò???ú???????ò???ò???ú???????ò?¨Printer driver???????????ú???ù?è?ò??????????????×??????ò???ú??????±????ê???ò?????????§?????ò[5]?????¤×÷?÷?????×?????????ú?????ò??????????×??????ò???ú????±????????è???????????ó???¨??USB????????·??????ò???ú???????????÷???????ò?????????????÷???????????è??????×??????????????ò???·?ò???????¤????[6]????????????????×???????????????????????????????×??????????????????????????ò???ú?¤×÷???í???????ò?????ó????×??????ù???????è???????????ù???????ú???? PC ?ú???ò?????????????????????????ò??????????????×????????ó?????????????????????????ú???????ò???????????è???????????????ò???ú????·????á?????????·???????ú???ò???ú·????±?×??????

???????ó?ò?????????????ú?????????????????ó·????????????÷?????????????ò???ú???± PC ???????°???±?ò???ò???ú?????????????????????????????????????????????????? PC ?ì?ò×?????·? PC ?ì?ò???????ò??????????·? PC ?è±????ù?????? PC ?è±????ù?§???ò??????????????×? PDA ???à?????????è±??ù???????????????????è???ò??????????[7]??

??????×???????·????????????ú???????????ì?ò?????????????????÷???ì?ò???÷?????????????ú???????????ú?????±?????ò???ú?????????ü??????±????????????ò???ú???????ì?ò±????ü???í???????°?ó?à???ò???ú???????? USB ?????à?????????è???¨???????????????ò??????·¨?¨?? USB ?????±?????? U ???????????????????????è±??????ò???????è???¨???? PC ?ú?????????????ò???÷?????????????ò???ú???????ù???????????????ú????????????????????????????????·? PC?ú???????????è±????????????????í???????ò???ú?¨?????ò???????è±??????????????????????ò???????????????±?????????ú?·?????????±?????????ò???????????÷?à?è±????????ò?????????ú???????????à?ú?????????÷??[7]??

????·? PC ?ú?????????ò???????????????¤×÷?°?ú?????á???????ó??·?±????¨???????ú???????? PC ?ú???????ò???????????????ú?????????????????ò???ú???????????????????????????????ò???ú???????ú??????????·???·?????

?????????¨?ò???ú???? Centronics ?????? 1885 ?ê???????????±?±???????????ê??????????????????????????????[8]???±?? 1968 ?ê 9 ????±????¤?ê???á??????EP-101 ?????ò???ú?????????ò???ò???ú???????????ó?ò???ú±??????ì??·??????ú????1976 ?ê???ò?????¨?????ò???ú???ú??1976 ?ê????????????????????????1980 ?ê 8 ?? Canon ???????????????????????????????????????ò???ú Y-80??????±????????????ò???ú???ú?·[9]??1991 ?ê???????????¨?????????ò???ú???ó·ù???ò???ú??1994 ?ê???????ò????????????1996 ?ê Lexmark ???? EXCIMER???¨ARGON??·ú?¨FLUMRINE???×?????????????????????????¨ 1200*1200dpi????·?±????????????ò???ú Lexmark CJ7000??1998 ?ê???ò?×?? 7 ???????ò???úCanon BJC-7100 ???ú[10]??1999 ?ê?????¨???????????ú±????ò A4 ???????????????ò???ú EpsonIP-100 ?á????????2000 ?ê???ú???????§??×????????ò?????????????ò???ú HP DJ970Cxi ??[11]??

?????ò???ú·????????????????????¨????·????????????????????°?ò???ú???÷???????à??°ü?¨?????????????????÷?÷?? USB ???????°×¨???? SCSI ????[12]??

???????????????à???????÷?÷?? SCSI ???????ò???ú????????ר???? SCSI ?????¨???????ú???????????????????????????ó???????????????????????????????????ò???????????????????????????????????????à?????±????×÷±????é·???????°?×°?±±??????ò?????????ú????????????????????ר?? SCSI ????????????????SCSI ?????à?????ò???ú?ò??·¨???????ò????????·??§??????·???·???1994 ?ê11 ?? 11 ??·?±í USB V0.7 °?±????ó??USB °?±????ú???à?ê??·?????????·????? 3.1 °?±???????????????????±ê×?????????[13]??USB ?????????????ì??????·?±????§??????°??????????????????é???????????????????ü?????ó±ê???????????ò???ú???????÷???¨?è?????????·?????ú???????à?ú????????????????????/?í???????????ù?????????è±???USB ???????????§??????°????????????ì???????????ò???ú?????à??????????·??????????°?????÷?÷???ò???ú?????????ò?????????? USB ?????????????ò?????¨ 1200*1200dpi ????·?±????????????ò???ú Lexmark CJ7000 ?????????? USB ?????????ó?? HP ???????????ò???ú HPPhotosmart 7960 ???????ò???ú HP Photosmart 8758 ???????????? USB ?????à????

???? Winhex ?é?? U ??????????
???? Winhex ?é?? U ??????????

??????????
??????????

?ù??????????????
?ù??????????????

BMP ????????
BMP ????????

BMP ?????á????
BMP ?????á????

N2*N3 ????????????
N2*N3 ????????????

????

?????? ??
????ABSTRACT
?????????? ?÷??
????????1.1 ??????????±??°?°????
????????????1.1.1 ±???????????±??°
????????????1.1.2 USB ?????ò???ú???????ú??????????????
????????1.2 USB ?????ò???ú???????ú??????????·???×???
????????????1.2.1 USB ?????ò???ú·???×???·???
????????????1.2.2 ?ú?????ù??·? PC ?ú?ò????????????·?·¨
????????1.3 ±????????????è???????°??????????
????????1.4 ±???????????????
????????1.5 ???????÷??×é???á??
?????????? ?????????è??
????????2.1 ?ò???ú?????????????????ó
????????2.2 USB ?????ò???ú??????????×???·?°?
?????????? USB ?????ò???ú?ò??????????
????????3.1 USB ?¨?????é
????????????3.1.1 ?????÷???????á???°?????í
????????????3.1.2 ?????÷???????à???°±ê×??è±????í
????????3.2 ?ò???ú?ò??????????????
????????????3.2.1 USB ????·?????????
????????????3.2.2 ?ò???ú?ò??????????????
????????3.3 ?? USB ?????ò???ú?¨??????????
?????????? ?ò???ú?à?????????????è??
????????4.1 ?÷??°?????????????
????????????4.1.1 MCU ??????
????????????4.1.2 USB ×???????????
????????????4.1.3 ?????????????÷????????
????????4.2 ?÷??°??????è??
????????????4.2.1 ?????è??
????????????4.2.2 USB ×????????????????·?è??
????????????4.2.3 ?????????????????÷???·?è??
?????????? ?????????????°???ó????×???
????????5.1 ?ù?? USB ?÷?ú?? U ??????????
????????????5.1.1 ±???????????????
????????????5.1.2 FAT ????????
????????5.2 BMP ?????????????????¤???í
????????????5.2.1 BMP ????????????????·???
????????????5.2.2 ????????????????
????????5.3 ?ò??????????????????
????????????5.3.1 ????????????
????????????5.3.2 ?ò???ú?????ó?????????°??????????
????????????5.3.3 U ?????????????ò????????×???
???????ù?? ?ò???ú?à?????????í???·?????¨
????????6.1 ?????ú?????????????????í
????????6.2 ?? USB ?????ò???ú???¨??????
????????6.3 ???????????ò????????×???
?????????? ×??á??????
????????7.1 ×??á
????????7.2 ????
???????????×
????????

?¨???ú?è???é??±???±????è???????????ú??????·??÷????

    ?à??????
    ?????????¨???????÷?????ú?á???ú×?±????è???°?÷ר??±?????????×÷?¨??·?????
    ?ù????????×????ù?????????????í×??????°???????????????ù??????????·??????????à???§?°???÷??????????±?×?????×?????·?·¨??????
    ??????·??ú??°??¨?ò?????????ú?????????????????????????????¨???????á?????????????ò????????????!