Lucent Technologies USS-720 Printer Class-Specific Requests, Get Port Status Data Bit Description

Page 38

USS-720Instant USB

Preliminary Data Sheet, Rev. 5

USB-to-IEEE1284 Bridge

September 1999

 

 

USB Port (continued)

Printer Class-Specific Requests

Printer class-specific requests supported by the USS-720 are listed in Table 15.

Table 15. Class-Specific Requests

Label

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

 

GET_DEVICE_ID

10100001B

0

Config

Interface and

Maximum

IEEE 1284 Device

 

 

 

Index

Alternate Setting

Length

ID String

 

 

 

 

 

 

 

GET_PORT_STATUS

10100001B

1

Zero

Interface

1

BYTE

 

 

 

 

 

 

 

SOFT_RESET

00100011B

2

Zero

Interface

Zero

[None]

 

 

 

 

 

 

 

GET_DEVICE_ID

This request returns an IEEE 1284 Device ID string. This command is supported by all three alternate inter- face settings.

The Device ID is a length field followed by a case- sensitive string of ASCII characters. The first 2 bytes are the length of the sequence, including the two length bytes. The first byte is the most significant; length values of 0000h, 0001h, and 0002h are reserved.

Following the two length bytes, the sequence is composed of a series of keys and values of the form:

key: value {, value};

repeated for each key. As indicated, each key will have one value, and may have more than one value. The minimum necessary keys are MANUFACTURER, COMMAND SET, and MODEL (case sensitive). These keys may be abbreviated as MFG, CMD, and MDL. Each key (and each value) is a string of characters. Any characters except colon (:), comma (,), and semi- colon (;) may be included as part of the key or value string. Any leading or trailing white space in the string is ignored by the parsing program, but is still counted as part of the overall length of the sequence.

For more details, see IEEE 1284-1994, Section 7.6.

Note: The USS-720 satisfies this request by requesting Device ID data from the attached IEEE 1284 peripheral. If the peripheral does not support Device ID, the USS-720 will return a zero-length data packet to the host.

GET_PORT_STATUS

This request returns the current status of the printer. Table 16 defines the data returned and describes the format of the status data. This command is only sup- ported by the two printer class-specific alternate inter- face settings (0 and 1). Attempts to issue this command to interface 0, alternate setting 2 will result in a stall.

Table 16. Get Port Status Data

Bit

Description

 

 

7—6

Reserved, will always read 0.

5

Paper error.

 

 

4

Select.

3

Not error: 0 = error, 1 = no error.

 

 

2—0

Reserved, will always read 0.

SOFT_RESET

This request flushes all buffers and resets the Bulk Out and Bulk In pipes to their default states, and also resets all parallel port hardware and registers to their default state. This command is supported in all three alternate interface settings.

5-12

Lucent Technologies Inc.

Image 38
Contents Introduction Information Manual, Rev SeptemberTable of Contents Information Manual, Rev Evaluation Kit for USS-720 September USB-to-IEEE BridgeIOCTLSET1284REGISTER USS-720 USB Device Driver Preliminary User GuideIOCTL1284 Terminate USS-720 USB Port Monitor Application Note Evaluation Kit Contents Hardware Requirements \SAMPLESOSR2.1 Cable Installation Instructions Getting Started InstructionsSoftware Updates Windows 98 Cable Installation InstructionsPort Creation USB Driver and Port MonitorPlug and Play Eeprom Lucent Technologies Inc Lucent Technologies Microelectronics Group In-System Design, IncUSB Applications Support September February Evaluation Kit SoftwareUSS-720 Driver Software Object Code License Agreement IntroductionFurnishing of Licensed Software USS-720 Software Use Agreement FebruaryLicensed Software OwnershipUSS-720 February Software Use AgreementNothing Construed Warranty and IndemnityAgreement Prevails 04 ConfidentialityAddresses PublicityNonassignability IntegrationApplicable Law DisputesDocumentation USS720.SYSUSS720.INF USS-720 Software Use Agreement February Software Components Application Note, Rev FebruaryPrinter Enumeration Customer-Defined DataPlug and Play Operation PnP Operating Systems Supported Power ManagementInstallation Process USB Hardware Types SupportedPrinter Types Supported Print Types SupportedDescription FeaturesPreliminary Data Sheet, Rev September Table of Contents USB-to-IEEE Preliminary Data Sheet, Rev USS-720Pin Information Parallel Port nInit Signal Active-Low Parallel Port nAutoFd Signal Active-LowParallel Port nSelectIn Signal Active-Low Parallel Port nAck Signal Active-LowDevice Descriptor, Configurations, and Inter- faces OverviewUSB Port Descriptor LocationsDevice Descriptor Offset Field Size Value Description USB-to- Ieee 1284 Bridge SeptemberOnboard Device Descriptor USB-to- Ieee Configuration DescriptorInterface Descriptors Bulk Out Endpoint Descriptor, I0A0E1Bulk In Endpoint Descriptor, I0A1E2 September USB-to-IEEE1284 BridgeBulk Out Endpoint Descriptor, I0A1E1 Interrupt Endpoint Descriptor, I0A2E3 Bulk Out Endpoint Descriptor, I0A2E1Bulk In Endpoint Descriptor, I0A2E2 Standard Requests PipesRequests Printer Class-Specific Requests Get Port Status Data Bit DescriptionSET1284REGISTER Vendor-Specific RequestsGET1284REGISTER Ieee 1284 Port Register-Based OperationInterrupt Pipe Read Data RegistersGET1284REGISTER Data Byte Register Data Byte Register DataParallel Port nFault Signal Reserved Status Register Address Bit SymbolDefault Bit Symbol Bit Description Parallel Port nInit Signal Control Register Address Bit SymbolAccess Default Bit Symbol Bit Description USB-to-IEEE1284 BridgeUSS-720Instant USB ECP Command Register Address Bit Symbol Access Extended Control Register Address Bit Symbol Mode20 DescriptionUSS-720 Control Register Address Bit Symbol USS-720 Setup Register Address Bit Symbol Interrupts External Circuitry Requirements External Crystal ConnectionSelf-Powered Mode Filter Bypass ModeHigh Drive Mode Absolute Maximum Ratings Parameter Symbol Min UnitCapacitance Values Parameter Unit Electrical CharacteristicsParameter Symbol Test Conditions Min Typ Max Unit Clklo ClkhiOutput Delay Timing Parameter Min Max Unit Timing CharacteristicsSetup and Hold Input Timing Parameter Pin Mqfp Outline DiagramOrdering Information Device Code Package ComcodeApplication Note February Description Bridging USB to Typical Circuit Showing ParallelPort USSLucent Technologies Inc Signal Directions Preliminary User Guide, Rev FebruaryIOCTL1284 Setmode Preliminary User Guide, Rev USS-720 February InitializationO File Functions USB Device DriverCreateFile Error Codes ReadFileWriteFile DeviceIoControl CloseHandle O Control Codes Control Code DescriptionIOCTL1284 Ecpfwdtorev ParametersIOCTL1284ECPREVTOFWD IOCTL1284 Ecpsetchannel Register Mode Description IOCTL1284 SetmodeIOCTL1284 Terminate Bulkoutpipe IoctlabortpipeValue Description BulkinpipeIoctlcancelpiperequest IOCTLGET1284REGISTER ALTINTERFACE1 IoctlgetaltsettingALTINTERFACE0 ALTINTERFACE2Ioctlgetcapabilities Ioctlgetconfigurationdescriptor Ioctlgetdevicedescriptor Ioctlgetdeviceinstances Ioctlgetinterface Ioctlgetportstatus Bit MeaningIOCTLISSUEUSS720COMMAND Command DescriptionIoctlreadinterruptpipe Byte DescriptionIoctlresetpipe IOCTLSET1284REGISTER Ioctlsetaltsetting Ioctlsoftreset Deviceinstance O Control Data StructuresDeviceinstanceheader Data StructureREGISTER1284 REGISTER1284, *PREGISTER1284ADVREGISTER1284 ADVREGISTER1284, *PADVREGISTER1284Lucent Technologies Inc USS-720 USB Port Monitor USS-720 Application Note USB Port Monitor February Printer Cable with Instant USBApplication Note June Software Installation InstructionsW98USS720EvalKit2402.zip to download the installation files Click on Enter LibrarySeptember MN99-052CMPR-1 Replaces MN97-061CMPR-04