NAME

device - Maps a hardware port to a Tcl Channel

SYNOPSIS

device open devName
device names
device reset devName
device type devName
device desc devName

DESCRIPTION

device open devName
Opens a specified device.

device names
Returns a list of valid devices.

device reset devName
Forces closed a specified device.

device type devName
Returns the class of "devName"

device desc devName
Returns a short description of "devName"

DEVICES

The device manager handles multiple device types across many platforms. Amoung them:
TypeDesc
serialRS-232 or RS-422 Serial ports
parallelCentronics(tm) style parallel ports
usbUniversal Serial Bus
adbApple Desktop Bus
scsiSmall Computer Simple Interface
ps2IBM PS/2 Style interface ports

Supported devices vary by platform. All devices have two names, a platform name and a generic name. The generic name is used for cross platform scripts. The platform name corresponds to a term understood by users/developers of that platform describing the port. The current list of supported devices is as follows:
PlatformNameTypeDescription
genericserial.1serial First Serial Port
genericserial.2serial Second Serial Port
genericserial.3serial Third Serial Port
genericserial.4serial Fourth Serial Port
macintoshmodemserial Modem Port. Automatically maps to the internal modem card on powerbook computers.
macintoshprinterserial Printer Port
macintoshcom1serial RS-232 Port 1
macintoshcom2serial RS-232 Port 2
macintoshpbmodemserial Internal modem card on powerbook computers.


For information regarding the C interface, refer to the Device Library document
Copyright © 1999 Woods Design Services.
Copyright © 1999 Sean Woods.