Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Starbase Device Drivers Manual - Vol2: HP 9000 Series 700 Computers > Chapter 1 The CADplt Device Driver

Switch Settings

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

HP-IB Interfacing

The HP-IB address of the device must correspond to the device file minor number, see "Special Device Files (mknod)" in this chapter.

Serial RS-232 Interfacing

The serial interface on the device must be set as follows:

  • 8-bit character size

  • no parity

  • desired baud rate

  • one stop bit if baud rate is greater then 110, otherwise two stop bits

The device driver libddCADplt.a will automatically set the Operating System I/O interface for the serial device to the following configurations:

  1. device handshaking

    • XON/XOFF protocol with dc1 and dc3 signals

    • ";" command terminator

    • newline〉 response terminator

  2. device interface, termio(4)

    • 8-bit character size

    • XON/XOFF protocol

    • no parity

    • disabled INTR and QUIT signals

    • 2400 baud rate if initially 300[1]

    • no postprocessing

    • canonical processing

    • undefine ERASE and KILL symbols

NOTE: There must not be a getty running on the serial device file. The following command will sleep a getty[2]:
sleep 1000000 < 〈dev〉/plts &
If the device is in SPOOLED mode, the device interface termio(4) will not be automatically configured for you. It is your responsibility to configure the interface correctly as below:

Given a freshly opened device interface with these defaults

300 cs8 cread hupcl

the following commands will correctly configure the device interface[3]

sleep 1000000 < 〈dev〉/plts &
stty 〈baud〉 ixon ignbrk icanon isig clocal < 〈dev〉/plts
stty erase ^- kill ^- < 〈dev〉/plts

where 〈baud〉 is the baud rate of the device and 〈dev/plts is the device file for the serial device.



[1] The default baud rate for a serial interface is 300 baud when the device file is freshly opened. If the default is still in effect, then the device driver will change the baud rate to 2400 as this is what many serial devices are run at. However, if you have changed the the baud rate from the default value of 300, then the driver assumes you have purposely changed it and will not modify it.

[2] The actual path names of directories in angle brackets depend on the file system structure. See the Graphics Administration Guide for details.

[3] The actual path names of directories in angle brackets depend on the file system structure. See the Graphics Administration Guide for details.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.