Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpda!hpcupt1!dash!hprnd!tak From: tak@hprnd.rose.hp.com (Tom Keaveny) Newsgroups: comp.sys.hp Subject: Re: How can I turn on Xon/Xoff if HPGL plotter Message-ID: <2630010@hprnd.rose.hp.com> Date: 20 Jun 91 20:02:53 GMT References: <3471@unccvax.uncc.edu> Organization: KTOM-fm --> playing all the bits Lines: 55 / hprnd:comp.sys.hp / cs00wsc@unccvax.uncc.edu (Wen-Shiang Chin) / 7:34 pm Jun 18, 1991 / >Hi, > I have a HP Prodraft DXL plotter was connected a HP 300 >workstation running HP-UX 7.05. It works perfectly. Recently, >I bought a sony NEWS laptop 3250 runnign NEWS-OS 5.01 and connect >the plotter directly to the sony machine. I ported my old hpgl files >from HP machine to sony machine and try to plot them out; but it seems not >work properly. I read the sony document and it says the data flow is >using a Xon/Xoff handshaking method. My question is how can I >set the Xon/Xoff on within the hpgl file. My hpgl files was generated >by C program. Can someone tell me how can write this routine in >C. Or, there may be another reason cause that plotter works unproperly. >Do I need a printer filter for the plotter? Any suggestion will >be appreciated! Try inserting the following strings at the head of your file: ESC.I80;0;19: /* this turns on Xon/Xoff with Xon= */ /* and an Xoff threshhold of 80 characters */ ESC.N10;17: /* this sets Xoff= and set the inter- */ /* character delay at 10 milliseconds */ Then add one of the following two strings to determine the behaviour of the Data Terminal Ready (CD) line: ESC.@;0: /* use this to disable hardwire handshake */ ESC.@;1: /* use this to enable hardwire handshake */ In the above strings "ESC" represents the ASCII escape character. The generic syntax of the RS-232 control strings is as follows: ESC.I;;: :: Xoff threshhold (in characters) [decimal string] :: Set to 0 to enable Xon/Xoff [ascii string] :: Xon trigger character [ascii string] ESC.N;: :: Intercharacter delay (msecs) [decimal string] :: Xoff trigger character [ascii string] In both cases, [ascii string] :: decimal equivalent for an ASCII character E.g. 10 :: Line Feed 13 :: Carriage Return 17 :: DC1 / 19 :: DC3 / > >Thanks in advance. >----------