polly@portia.Stanford.EDU (polly siegel) (08/29/89)
I am trying to connect an HP DraftPro Plotter to a diskless workstation. Unfortunately for me, the plotter has an RS-232 interface, and I can't find anywhere in any documentation that tells me what select code the internal RS232 interface is, what switch settings I should use on the plotter, or what device driver (major number) I should use for the plotter. Can someone tell me where to look or supply me with the answers? To summarize, I just need to know what device driver to include in the kernel, what arguments to give to mknod to create the right device file to connect to the internal RS232 and which switch settings to use on the plotter itself. thanks for any help anyone can give me! Polly Siegel Center for Integrated Systems Stanford University polly@glacier.stanford.edu
rocky@hpfcmgw.HP.COM (Rocky Craig) (08/29/89)
First of all, remember that SPOOLED devices are not supported on diskless workstations. There are workarounds. > I can't find....what select code the internal RS232 interface is, Select code 9. > what switch settings I should use on the plotter, or Don't know about that, it should be in the plotter manual. > what device driver (major number) I should use for the plotter. The serial driver, one (1). It's automatically included in your kernel, so you shouldn't need to rebuild. Use the following mknod: # mknod /dev/plotter c 1 0x090004 This says the plotter is at select code 9 with "direct connect". The driver defaults to 300 baud (among other things). Your interface script might need to change this. (You might need to create a custom model). Have a look at the "stty" command in one of the printer models in /usr/spool/lp/model (such as "laserjet"); you should find something like # Set up RS-232 interface if this is a tty port stty raw 9600 -parenb cs8 ixon -istrip clocal <&1 2>/dev/null Good luck! Rocky Craig Hewlett-Packard Workstation Group, Marketing Event Technical Support 3404 E. Harmony Road, Ft. Collins, Colorado 80525-9599 Internet: rocky%hpfcmr@hplabs.hp.com UUCP: ...!{hplabs | hpu*}!hpfcmr!rocky This article does not represent the official position of the Hewlett-Packard Company. The above data is provided for informational purposes only. It is supplied without warranty of any kind.
stroyan@hpfcdc.HP.COM (Mike Stroyan) (08/30/89)
> I am trying to connect an HP DraftPro Plotter to a diskless workstation. > Unfortunately for me, the plotter has an RS-232 interface, and I can't find > anywhere in any documentation that tells me what select code the internal > RS232 interface is, what switch settings I should use on the plotter, or > what device driver (major number) I should use for the plotter. > > Can someone tell me where to look or supply me with the answers? Most of the answers are in the "Starbase Device Drivers Library Manual", in the chapter on the HPGL driver. How to configure your kernel is in the "HP-UX System Administrator Manual", in the section on "Customizing the HP-UX System" "Adding Peripheral Devices" "Terminals and Modems". You want the 98626 kernel driver. mknod /dev/tty00 c 1 0x090004 chmod /dev/tty00 666 Plotter set to 8-bit, no parity, one stop bit for baud rates over 110. You don't want a getty on the serial port, and you will need to follow the Starbase manual's example for changing the stty setting if you don't use the plotter at 300 baud. Mike Stroyan, stroyan@hpfcla.hp.com
rocky@hpfcmgw.HP.COM (Rocky Craig) (08/31/89)
> You want the 98626 kernel driver.
Oops, I forgot that. You may need to rebuild your kernel after all.
Rocky
polly@portia.Stanford.EDU (polly siegel) (09/06/89)
Thanks to all who responded - the plotter now works! We're only having a minor problem with handshaking but we'll figure it out. For those who may some day want to do the same thing, the configuration (HP9000/3xx -> DraftPro) is _not_ listed in the DraftPro manual or in the System Admin manual. Device special file (internal RS232): /dev/plotter 1 0x090004 Switch settings 11-4 down; Baud rate 9600 (3 & 1 up; 2 & 0 down) (this puts it in standalone, with parity off) The cable must have a null modem attachment as well or it won't work. Your program must use the appropriate ioctl calls to set up handshaking and the correct baud rate on the tty line. Alternatively, you can use a sleep call to hold the line open and then use stty to set the appropriate parameters. Of course, for this setup it would be best to just order an HP-IB interface; unfortunately, the sales rep did not mention this to the professor who bought the equipment :-( Thanks again for all the responses! Time to go plot some chips... Polly Siegel Stanford University