Author Topic: Keithley 2000 RS-232 RTS, WTF!?!  (Read 22292 times)

0 Members and 1 Guest are viewing this topic.

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Keithley 2000 RS-232 RTS, WTF!?!
« on: May 07, 2015, 05:15:38 am »
I picked up a Keithley 2000 DMM on ebay last week. As it turns out, it is almost 20 years old, and hasn't been calibrated since then, but it passes self-tests and gives reasonable values when reading my $20 Chinese voltage reference. Unfortunately the firmware is 20 years old too, which creates some compatibility issues with SCPI communication over GPIB and RS-232.

Before I spend the time and/or money to get on to an modern firmware version, I decided to make sure the RS-232 hardware works, and it does, at least at first, but it quickly stops transmitting responses. This trace of the voltages on the TxD (yellow) and RxD (blue) lines shows things going bad.



The idle/low voltage on the RxD line is only -1.7v or so, which is, in every way, out-of-spec. The USB/RS-232 converter deals with it anyway. Once the multimeter transmits part of a response, things get worse. Its obviously having trouble driving the line and finally craps out and sticks at +1.2v.

I checked voltages on all the signal lines on both the PC and DMM side. I also looked at the current each device could support driving the mA range on my handheld multimeter. This was illuminating. On its own, the K2000 tries to drive the RTS line to -9v, which is weird, because it should be, and otherwise acts like a DCE, not a DTE. Meanwhile, the PC is trying to drive RTS to about +7v when the port is "opened" by an application. The DMM seems to be loosing this fight. One result of this battle is that, when the PC is connected, the DMM can't manage to drive RxD down to a reasonable voltage either.

I thought there might be a short or something, but I looked at the reverse-engineered K2000 schematic and it shows that the RTS pin is connected to one of the transmit-out pins of the level shifter, something I confirmed with a continuity test.

This seems odd, and it is particularly odd that I can't find any mention of anyone else noticing this, including any errata from Keithley. The Keithley user's manual does say that this should be used with a straight-through cable, and indicates the RTS and CTS pins as connected, but unused (and there are no hardware flow-control options in port configuration menu, just none, or Xon/Xoff.

Has anyone else noticed this?  Am I missing something obvious?

(slightly more detail in my blog)
« Last Edit: May 07, 2015, 08:43:55 am by eas »
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4208
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Keithley 2000 RS-232 WTF
« Reply #1 on: May 07, 2015, 05:31:09 am »
I had to replace the level shifter IC in my K2000, it was dead. I'd assumed it had been damaged by some connected device, but maybe they just don't last forever?

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 WTF
« Reply #2 on: May 07, 2015, 05:51:57 am »
I had to replace the level shifter IC in my K2000, it was dead. I'd assumed it had been damaged by some connected device, but maybe they just don't last forever?

Thanks. I saw your post during my troubleshooting. It got me to pay close attention to the level-shifter, but I have to wonder if your level-shifter failure is a symptom of the the K2000 trying to drive the RTS line in the first place.

It seems to work fine, with much better signal integrity, if I don't connect the RTS pin. I'll put it through some longer-term tests and if it seems to hold up, I'll probably make up a custom cable/adapter, or just cut the trace on the PCB.

I still wonder why its driving the RTS line in the first place though.
 

Offline Andreas

  • Super Contributor
  • ***
  • Posts: 3221
  • Country: de
Re: Keithley 2000 RS-232 WTF
« Reply #3 on: May 07, 2015, 05:55:37 am »
the K2000 tries to drive the RTS line to -9v, which is weird, because it should be, and otherwise acts like a DCE, not a DTE. Meanwhile, the PC is trying to drive RTS to about +7v when the port is "opened" by an application.

Has anyone else noticed this?  Am I missing something obvious?

I think the short cirquit is in your connection. You should not connect RTS to RTS when both are outputs.
In this case you will need a Null-Modem cable.

With best regards

Andreas
 

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 WTF
« Reply #4 on: May 07, 2015, 06:38:14 am »
As I said, the documentation specifically calls for a straight through cable and claims that RTS is unused. Moreover, with a straight through connection, the DMM responds to commands issued on TxD and replies on RxD, so a null-modem cable wouldn't work either, in a different way.

Its almost like this thing was originally designed to use the RS-232 to control other equipment, and it was later repurposed for PC communication. Perhaps later revisions don't have this quirk?

 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 WTF
« Reply #5 on: May 07, 2015, 07:23:59 am »
This happened to all older (over 15 years old) keithley 2000's I have seen. RS232 works fine until the connection drops every once in a while. It keeps increasing until the connection is unusable. As i remember the used IC (ADM202JRN) needs 100nF capacitors., wich I couldn't find on the PCB. Maybe on the other side. I havent took it out. Havent actually replaced one, but I guess this would work.

Upgrading the firmware is simpel. Use 2 AT27C020 eproms to flash the firmware. One needs the even, one the odd binary. You can use every FW you want, but FW A20 you're device needs to be recalibrated. TiN's site has a lot of FW's for Keithley 2000's.
http://doc.xdevs.com/article/keithley-instruments/#2000
Trying is the first step towards failure
 

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 WTF
« Reply #6 on: May 07, 2015, 08:41:56 am »
Thanks for that report, Smith. When you say the RS232 works fine for a while but ends up unusable, do you mean that the hardware seems to be deteriorating over time, or that the runtime state of the instrument gradually deteriorates until a power-cycle or something?

I haven't pulled my board, but from photos and layouts, it looks like the caps are on the underside.

It occurs to me that later versions of the firmware (I'm on A05) may not drive the RTS line.

I may have a go at updating the firmware myself. The current Keithley IVI drivers require firmware A19 or later, but no one has posted it yet. I'm concerned about being able to pull off a recalibration on my own for the A20 firmware. Plus I'd have to get an appropriate EPROM programmer. Keithley quoted me $400 for the firmware and recalibration ($200 which is the cal), which isn't very attractive. Not sure what my next move is here.
« Last Edit: May 07, 2015, 08:44:24 am by eas »
 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #7 on: May 07, 2015, 11:44:40 am »
I meant the connection just seems to drop after a while. After not  using the port for a while (1-5min) it worked again. I havent had the time to look at it propperly as my unit had more problems and needed to be replaced anyhow. Some buttons arent working propperly (yes the pcb & buttons are cleaned) just like another unit we have of the same age. I heared it was one of the first units purchased when they hit the market.

I once flashed one using a lpt eprom programmer. Worked like a charm. All units i checked (of different ages) all used OTP eproms. I did also find some old mainboards with compatible flash chips (bios chips, around PII to PIII age). Maybe someone can flash them for you?
« Last Edit: May 07, 2015, 11:55:20 am by Smith »
Trying is the first step towards failure
 

Offline TiN

  • Super Contributor
  • ***
  • Posts: 4543
  • Country: ua
    • xDevs.com
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #8 on: May 07, 2015, 01:05:58 pm »
$200 for cal is not that bad. I'd suggest getting cheapo programmer (for example TL866 off ebay) with proper adapters and few blank EEPROMs to do firmware upgrade by yourself, and then send to KI for recal :)
Programmer will pay itself real quick when you mess with old T&M gear ;)
YouTube | Metrology IRC Chat room | Let's share T&M documentation? Upload! No upload limits for firmwares, photos, files.
 
The following users thanked this post: orion242

Offline 6thimage

  • Regular Contributor
  • *
  • Posts: 181
  • Country: gb
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #9 on: May 07, 2015, 01:08:37 pm »
I have had issues with my 2000 and its serial port. When connected to a USB converter, it seems to work for around a minute or so, then sends garbled responses and then stops sending responses all together. From a limited look at it, it seems to be that the adm202 has a +/- 9 V transmit voltage, with the converters expecting closer to +/- 7 V. I've quickly pieced together an adm202 on a breadboard with a non-level shifted converter and it seems to be working fine now.

My unit is working fine other than this (calibrated fine just over a year ago), so I wonder if you might be seeing something similar. If you disconnect the 2000's serial output (so it is not connecting to the computer controlling it), does it still do the same thing? If it doesn't it might be your converter doing strange things.
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4208
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #10 on: May 07, 2015, 01:51:32 pm »
I'd be amazed if that voltage level difference is responsible, +/-7V and +/-9V are both entirely respectable levels to find on an RS232 line.

I've had issues before with USB-serial converters working fine for a while then delivering garbage, all on their own. It's a USB driver problem, I think.

Offline 6thimage

  • Regular Contributor
  • *
  • Posts: 181
  • Country: gb
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #11 on: May 07, 2015, 02:00:15 pm »
They should be, but that is the only thing I can think of - I've tried it with two converters (one an ft232rl the other a pl2303) and they both stop working at around the same time. But the breadboarded version with a pl2303 works fine.

I don't think it's a driver issue as I've used the converters for quite a while on other devices and they work fine - to me, it looks more like an overloading issue.
 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #12 on: May 07, 2015, 02:43:41 pm »
I have used some meters for 8 houres a day in the past  using the same hardware and software. Tough as the years passed the RS232 communication seems to be more problematic every time I use it.

I remember a conversation on the Keithley forum where someone had problems with a Keithley 2000 and a RS-232 connection. They asked him if the unit was old, and if so to replace it with a new one. He said yes, replaced the unit and everything worked. So I guess its a common issue.
Trying is the first step towards failure
 

Offline 6thimage

  • Regular Contributor
  • *
  • Posts: 181
  • Country: gb
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #13 on: May 07, 2015, 03:15:56 pm »
So what did they change then - is it just the firmware, or is there something different with the hardware?

My 2000 has date codes suggesting it was made at the start of 1996 and it has the A07 firmware. Is there a change log available for the firmware at all?
 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #14 on: May 07, 2015, 03:31:19 pm »
As far as i could see they only replaced the eproms. I know it has been sent to Keithley. Both eproms where lasered with "Keithley" and "A15" on it.
Trying is the first step towards failure
 

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #15 on: May 07, 2015, 05:47:35 pm »
I meant the connection just seems to drop after a while. After not  using the port for a while (1-5min) it worked again. I havent had the time to look at it propperly as my unit had more problems and needed to be replaced anyhow. Some buttons arent working propperly (yes the pcb & buttons are cleaned) just like another unit we have of the same age. I heared it was one of the first units purchased when they hit the market.
Thanks for clarifying. That sounds a lot like the behavior I'm seeing with RS-232 communications. I'm curious, what firmware version do you have.  Also, If you have opened it up, have you noticed any date codes on any of the components?

I have had issues with my 2000 and its serial port. When connected to a USB converter, it seems to work for around a minute or so, then sends garbled responses and then stops sending responses all together. From a limited look at it, it seems to be that the adm202 has a +/- 9 V transmit voltage, with the converters expecting closer to +/- 7 V. I've quickly pieced together an adm202 on a breadboard with a non-level shifted converter and it seems to be working fine now.

My unit is working fine other than this (calibrated fine just over a year ago), so I wonder if you might be seeing something similar. If you disconnect the 2000's serial output (so it is not connecting to the computer controlling it), does it still do the same thing? If it doesn't it might be your converter doing strange things.
As others have said, those voltages on both ends should be well within RS232 spec. The behavior you are seeing sounds a lot like what I'm seeing. I'd suggest somehow connecting the USB adapter to your K2000 in a way that leaves the RTS line unconnected and seeing what happens. I used some dupont wires and a bit of hot glue. As you can see in the second image on my blog post with this accommodation, the transmissions from the DMM look much better. I haven't done a comprehensive check of communications functionality with this mod, but I expect everything else to be fine, because the thing doesn't support hardware flow-control, and couldn't without a custom cable anyway.

I've had issues before with USB-serial converters working fine for a while then delivering garbage, all on their own. It's a USB driver problem, I think.
That doesn't seem to be the problem, at least not in my case. The Oscope trace shows what happens on the RxD line as the DMM goes from transmitting successfully, to garbage, to nothing at all.

I have used some meters for 8 houres a day in the past  using the same hardware and software. Tough as the years passed the RS232 communication seems to be more problematic every time I use it.

I remember a conversation on the Keithley forum where someone had problems with a Keithley 2000 and a RS-232 connection. They asked him if the unit was old, and if so to replace it with a new one. He said yes, replaced the unit and everything worked. So I guess its a common issue.
My hypothesis would explain long term deterioration in RS232 communication as well as the short term glitches and drop outs, and also could be fixed a firmware change:

When the DMM is new, or the level-shifter is otherwise unused, it can successfully fight with the PC over the voltage of DTS and manage to drive RxD as it should, but doing so causes overheating, leading to the short term glitches/dropouts, and also long-term deterioration of the involved component(s). This deterioration in turn makes short term dropouts more likely.

New firmware could stop driving the RTS line. This would avoid long-term wear & tear, and could also fix, or at least dramatically improve, RS-232 communications on units that had suffered deterioration short of failure because the drivers power supply would no longer have the load of fighting the PC over the voltage on RTS.


$200 for cal is not that bad. I'd suggest getting cheapo programmer (for example TL866 off ebay) with proper adapters and few blank EEPROMs to do firmware upgrade by yourself, and then send to KI for recal :)
Programmer will pay itself real quick when you mess with old T&M gear ;)
Yeah, I can probably swallow $200 for the cal. It's just that the calibration seems pretty good as-is. I think I will pick up a programmer. This isn't my last microprocessor driven piece of test gear. I already have a HP 6632b on the way, and may pick up another. I like troubleshooting and fixing stuff, and its probably a good bet that doing more of it is going to provide a lot of motivation for improving my electronics understanding and making better use of the gear I already have.

My 2000 has date codes suggesting it was made at the start of 1996 and it has the A07 firmware. Is there a change log available for the firmware at all?
I haven't been able to find any sort of change log or release notes for the K2000 firmware.

Interesting details about your unit. Mine appears to have been manufactured in late 1995 based on date codes, and the fact that the first and only cal date is 11/28/95. It has A05 firmware. Also, for what it is worth, it has the smaller ASIC A/D converter, rather than the big Altera FPGA TiN's unit seems to have.

I'd like to try to put together a rough timeline of firmware revision dates, and also try and work out whether and how manufacture date is encoded in the serial number. Do you (and others) mind PMing me when you think your unit was manufactured, the evidence for that conclusion, your serial number, firmware revision, and how likely you think it is that it is the firmware the unit shipped with?

Thanks everyone!
« Last Edit: May 08, 2015, 07:10:12 am by eas »
 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #16 on: May 07, 2015, 06:18:24 pm »
Thanks for clarifying. That sounds a lot like the behavior I'm seeing with RS-232 communications. I'm curious, what firmware version do you have.  Also, If you have opened it up, have you noticed any date codes on any of the components?

FW A06, its made in '96.
Trying is the first step towards failure
 

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #17 on: May 07, 2015, 08:08:26 pm »
FW A06, its made in '96.
Interesting, so yours is right in between mine and 6thimage's. Mine was made in the last months of '95 and has A05. His was made in early '96 and has A07. They were clearly revving the firmware frequently at that point.
 

Offline TiN

  • Super Contributor
  • ***
  • Posts: 4543
  • Country: ua
    • xDevs.com
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #18 on: May 08, 2015, 12:18:31 am »
1994, A02 :D

Early units use CPLD for A/D controls/count , while never units have ASIC. 2000's ADC block reused in many other instruments and SMUs.
YouTube | Metrology IRC Chat room | Let's share T&M documentation? Upload! No upload limits for firmwares, photos, files.
 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #19 on: May 08, 2015, 06:19:04 am »
We have some 1994 and 1995 units too. I know one of them never really worked in RS232 with USB converters. It only worked on true RS232  connections.

Not that strange they where upping the FW in those days. As far as I know it's HW and SW design was the basis for multiple later models. They still sell them after 20+ years although it had some mods here and there. Basicly it's the same device.
« Last Edit: May 08, 2015, 06:21:24 am by Smith »
Trying is the first step towards failure
 

Offline z01z

  • Regular Contributor
  • *
  • Posts: 151
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #20 on: May 08, 2015, 07:37:52 pm »
I've successfully upgraded a K2000 with an original firmware version of A5 to A15, using SST39SF020A-70 flash memories instead of EPROMs.
The flash is mostly pin compatible, except for two pins. One pin doesn't matter because it's NC (pin 1, VPP) and the other is luckily wired so that the flash can work as a substitute (pin 31,  -PGM vs -WE, connected to Vcc).
So if you want to try a newer firmware, this is also an option - probably a chaper one than EPROMs. The added bonus is that they can be easily reprogrammed later with a different firmware.

One interesting side-effect of the new A15 firmware was that a 306.4 fault appeared afterwards, which is not documented in the rev. B repair manual. I've found a post on the Keithley forum stating: "These error codes have to do with a very tight internal leakage spec. This should not affect your measurement capability of the Model 2000". So I've just blew the dust off the board and the fault is gone. Phew!
Does anyone have a newer repair manual by any chance?
 

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #21 on: May 08, 2015, 11:07:18 pm »
I'd be interested to learn if newer versions of the hardware and/or firmware have the same behavior of driving RTS/Pin 7 to a negative voltage when the DMM is powered on and the RS-232 communications are enabled.

I picked up an old straight-thru F/M DB-9 cable and clipped off pin 7. I'm need to write a script to take readings every second and see if communications remain stable.
 

Offline easTopic starter

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #22 on: May 09, 2015, 03:47:39 am »
z01z, thanks for your report. Great to know that there are flash chips that will work in place of the EPROMs.

Does anyone have recommendations for an inexpensive programmer for EPROM and something like the SST39SF020A-70 flash chips Z01z used?
 

Offline Smith

  • Frequent Contributor
  • **
  • Posts: 376
  • Country: 00
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #23 on: May 09, 2015, 07:21:55 am »
May be handy to know: Keithley has a piece of software to flash your 2000 by RS-232 (maybe GPIB). Something called flash wizard 32. Of course this doesn't work due to the OTP eproms used. Yes, that took me some time, so consider this as a warning. It may work with flash chips, but I have never seen rewritable chips in older Keithley devices so I'm not sure.

The TL866 programmer seems a good value for money. It supports about everything and it is dirtcheap. Just look at ebay, the converters are cheap too.
Of course I use a 20 year old eeprom programmer on an ancient pc.  Still cant justify to buy a TL866 myself, I have a soft spot for oldschool  programmers .
Trying is the first step towards failure
 

Offline z01z

  • Regular Contributor
  • *
  • Posts: 151
Re: Keithley 2000 RS-232 RTS, WTF!?!
« Reply #24 on: May 09, 2015, 07:23:58 pm »
I'd be interested to learn if newer versions of the hardware and/or firmware have the same behavior of driving RTS/Pin 7 to a negative voltage when the DMM is powered on and the RS-232 communications are enabled.
Yes, it appears to be so. I've measured -9V on that pin with the A15 firmware.
« Last Edit: May 09, 2015, 07:39:41 pm by z01z »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf