Author Topic: Is it possible to pull RS232 HPGL data from my old Tektronix 2211 to Linux?  (Read 5234 times)

0 Members and 1 Guest are viewing this topic.

Offline cdevTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Maybe using Wine?

I have an old 80s era Tek 2211 DSO which works well, however Ive been unsuccessful so far in being able to get data out of its screen print to plotter feature. Does anybody here have any experience with doing this?

I'm trying to use Minicom , Putty etc. just to verify its working. I'm using a USB/Serial converter, which has always worked for me before, but perhaps that is the problem.

There is very little on this particular unit on the net.

Any pointers (probably experience with Tek scopes from around the same period would apply) Thank you!

Edit:I've found what appears to be ancient "Grabber II" software on their site. How old? Windows 3.1 era :) We'll see.
« Last Edit: March 23, 2015, 04:14:49 am by cdev »
"What the large print giveth, the small print taketh away."
 

Offline georgd

  • Regular Contributor
  • *
  • Posts: 66
  • Country: cs
Try to push PLOT/PRINT  button on side panel and then watch the activity (with scope) on serial port Tx (3) pin, if not see anything try  to playing with hadshaking options.
Simplest case is to set XON/XOFF handshaking protocoll.

Georg
 

Offline AudioplatinumService

  • Contributor
  • Posts: 43
  • Country: hr
    • www.audioplatinum.net
Hi

I have similar problem and now I am in fight with screen capture from my Tektronix AM700 Audio measurement set. Almost same situation, Tek has serial interface for printer (com1) with max speed of 38400 8,n,1 and when I push print I am able to get data to serial interface. After this, I try software "PrintCapture" on Windows system, and I get nice image.
xon/xoff must be switched on for serial, without I got garbage data and damaged image.

Now, I wish all this on Linux with Raspberry Pi. I think we can solve this problem with virtual printer from CUPS.
In nex few days I have to find some solution for this.


Cheers,
Damir
Audioplatinum Service
www.audioplatinum.net
A clean desk is the sign of a sick mind...
 

Online Fraser

  • Super Contributor
  • ***
  • Posts: 13314
  • Country: gb
May not be of any help but IIRC you can use the KE5FX GPIB toolkit to plot the data that is in HPGL format.

http://www.ke5fx.com/gpib/readme.htm

It isn't just limited to GPIB applications as it will operate with a HPGL format GPIB-RS2323 converter.

Aurora
If I have helped you please consider a donation : https://gofund.me/c86b0a2c
 

Online MarkL

  • Supporter
  • ****
  • Posts: 2207
  • Country: us
May not be of any help but IIRC you can use the KE5FX GPIB toolkit to plot the data that is in HPGL format.

http://www.ke5fx.com/gpib/readme.htm

It isn't just limited to GPIB applications as it will operate with a HPGL format GPIB-RS2323 converter.

Aurora
KE5FX is windows only, unless the OP wants to port the source code to Linux.

Assuming you can get the HPGL to your Linux box, there's two packages I've used:

  http://www.gnu.org/software/hp2xx/
  http://service-hpglview.web.cern.ch/service-hpglview/

Of these I use hp2xx the most, and it's included in a lot of distro repositories.  The CERN viewer does not work very well for me on HP spectrum analyzer output.

It shouldn't be too hard to catch the HPGL characters as they spill out the back RS232 port of your equipment.  It's readable ASCII.  Even a simple "cat /dev/ttywhatever > hpgl.out" should work after you set up the port with stty.
 

Offline AudioplatinumService

  • Contributor
  • Posts: 43
  • Country: hr
    • www.audioplatinum.net
I made some success with my Tek AM700.

I can push "PostScript" file to print on Tek, and I can easy catch it
with simple command

cat /dev/ttyUSB0 > /file.ps

Now I have to make somekind of deamon who lisen on ttyUSB and catch file when I push print.

Maybe someone of you have some idea how to make "deamon" or script in bash?


Cheers,
Damir
Audioplatinum Service
www.audioplatinum.net
A clean desk is the sign of a sick mind...
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2283
  • Country: ca
I made some success with my Tek AM700.

I can push "PostScript" file to print on Tek, and I can easy catch it
with simple command

cat /dev/ttyUSB0 > /file.ps

Now I have to make somekind of deamon who lisen on ttyUSB and catch file when I push print.

Maybe someone of you have some idea how to make "deamon" or script in bash?


Cheers,
Damir
Postscript output should begin with #!PS and end with showpage (check a sample of output from your instrument). So in bash, you would have a while loop reading every line from the tty waiting for "#!PS". When found, create a new file and start writing lines to it, until you see "showpage" then close the file. Save this as a script and launch it in the background using &.
 

Online MarkL

  • Supporter
  • ****
  • Posts: 2207
  • Country: us
Postscript output should begin with #!PS and end with showpage (check a sample of output from your instrument). So in bash, you would have a while loop reading every line from the tty waiting for "#!PS". When found, create a new file and start writing lines to it, until you see "showpage" then close the file. Save this as a script and launch it in the background using &.

Postscript should start with "%!PS-Adobe-3.0" (look for "%!PS-" since 3.0 is the version) and end with "%%EOF", but absolutely look at whatever the AM700 is producing and conform to that.

You might also want to add a timeout so that the script is not waiting forever for the EOF in case something goes wrong with the transfer.
 

Online MarkL

  • Supporter
  • ****
  • Posts: 2207
  • Country: us
Here's a starter script you can try that looks for %PS- and %%EOF.  The timeout is 30 seconds and it sits in a loop forever.  Embellish as desired.

Run like this:  scriptname < /dev/ttywhatever &

Code: [Select]
#!/bin/sh

while true; do

  read
  [[ "$REPLY" != %!PS-* ]] && continue

  out="out_$(date +%F.%H%M%S).ps"

  echo "capturing postscript to $out..." 1>&2
  echo "$REPLY" > $out

  while true; do

    read -r -t30 || {
      echo "read failed." 1>&2
      break
    }

    echo "$REPLY" >> $out
    [[ "$REPLY" == %%EOF ]] && break
  done

  echo "capture done." 1>&2

done


 

Offline AudioplatinumService

  • Contributor
  • Posts: 43
  • Country: hr
    • www.audioplatinum.net
Yes,

Tek produce PS file with "  %!PS-Adobe-1.0" on begin, and with " %%Trailer" on end. I will try now script from MarkL.

Thanks!!!


Damir
« Last Edit: March 24, 2015, 05:43:00 pm by AudioplatinumService »
Audioplatinum Service
www.audioplatinum.net
A clean desk is the sign of a sick mind...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf