打印机的接口

目前市面上较为常见的打印机接口类型有并行接口和USB接口两种,我们见到的更多的是USB数据接口,并行接口的打印机也已经越来越少了。


并口与USB接口共存

 IEEE 1284是一个由HP开发的之后被规范了的计算机和外设之间进行双向通信的协议。早在1970s,Centronics就开发了和现在相似打印机并口,并成为当时事实上的标准。但是随后HP开发的HP Bitronics成为它的增强版本,并得到IEEE的承认,于是1994年,IEEE1284诞生。

IEEE 1284允许外设可以向主机传输更多的数据,使得之前必须使用SCSI的产品价格降了下来,包括打印机、磁带机、扫描仪等,但是随着USB的日益普及,这个接口标准也将被USB所替代。

 

IEEE 1284 标准提供四种操作模式。 在所有外设中并非需要所有模式。 例如,对于今后的打印机,制造商只需将 ECP 模式添加到兼容模式和半字节模式中。 主机和外设可通过硬件握手常规程序决定使用哪些模式,并自动选择正确的通信模式,而无需操作人员干预

  • 兼容模式:所有并行通信的基本操作模式。 用数据和状态线提供异步、八位宽的前向(主机到外设)信道。 这是针对旧产品的基本 Centronics 兼容模式。 (例如: HP LaserJet、LaserJet 系列 II 和 LaserJet III 打印机)
  • 半字节模式: 异步、反向(外设到主机)信道模式,向主机提供两个序列化的四位半字节,通过四根现有状态线从主机接收请求。 实施双向信道时,半字节模式要与兼容模式配合使用(例如: 所有型号为 HP LaserJet 4 的打印机)。
  • 扩展功能端口模式 (ECP): ECP 模式提供异步、一字节宽的双向信道。 互锁握手线替代了兼容模式的最小定时要求。 其它控制线用来区分命令和数据传输。 ECP 模式提供主机支持的最高数据传输率。
  • 字节模式和增强并口模式 (EPP): IEEE 1284 规范还包括字节模式和 EPP 模式,对于高速读/写外设(例如磁盘驱动器或 CD-ROM),它们可配合使用,HP LaserJet 打印机不能使用这两种模式。

Most recent computers that include a parallel port can operate the port in ECP or EPP mode, or both simultaneously.

An IEEE-compliant cable must meet several standards of wiring and quality. Three types of connectors are defined:

  • DB-25 (type A) for the host connection. 用于连接主机,这个就是计算机中的LPT口。
  • Centronics (officially called "Micro Ribbon", type B) 36 pin for the printer or device connection. 即IEEE1284-B
  • Mini-Centronics (type C, MDR36) 36 pin, a smaller alternative for the device connection that has not proven popular. 即IEEE1284-C,HP的LaserJet 1100就是使用这个。

Image:DSubminiatures.svg

 

IEEE 1284 规范为设备(无论是主机还是外设)提供以下两种电气接口级别 (1284-I 和 1284-II) :

  • IEEE 1284-I 接口,必须使用 1284-A 和 1284-B 连接器,电缆长度有所限制(最长三米)。 1284-I (级别 1)接收器/驱动器电子产品类似于早期的信号接口。
  • IEEE 1284-II 接口必须使用新型 1284-C 连接器。 1284-II (级别 2)接收器/驱动器电子产品已得到改进,可使用更长的电缆(最长 10 米)并得到更快速的数据传输率。 1284-II 设备可以连接到带有 1284-I 连接器的设备上,但 1284-II 性能可能会受 1284-I 设备的局限。

 接口电缆

  1. 1— 1284B
  2. 2— 1284C
  3. 3— 1284A

转载于:https://www.cnblogs.com/maxma/archive/2008/09/17/1292921.html

打印机并口采集逻辑电平信号并分析。====================================================================== MICROSOFT FOUNDATION CLASS LIBRARY : 数据采样 ======================================================================== AppWizard has created this 数据采样 application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your 数据采样 application. 数据采样.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. 数据采样.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CMyApp application class. 数据采样.cpp This is the main application source file that contains the application class CMyApp. 数据采样.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. 数据采样.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. res\数据采样.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file 数据采样.rc. res\数据采样.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值