Slashdot Mirror


Ask Slashdot: Supporting "Antique" Software?

First time accepted submitter wolfguru writes "As the IT Manager for a large printing firm, I often have to provide hardware to support older software which is used to configure and maintain existing systems, some of which are nearly 20 years old. Much of the software uses RS-232 serial communications to connect to the PLC devices and is often 16 bit versions. Newer systems from the PLC manufacturers supports some of the equipment, but many of the older PLC consoles are essentially unreachable without the serial communications. For any of you faced with similar challenges in keeping a manufacturing environment maintenance department working; what do you use to support them and where do you find equipment that will run the older systems that are sometimes the only means of supporting these types of devices?"

212 comments

  1. Please by Hsien-Ko · · Score: 0

    The DOSBox forums are fled by incompetent IT pros that demand support for their old versions of dBase. It's rather depressing.

    1. Re:Please by NJRoadfan · · Score: 1

      There is demand for a DOSBox like product that supports legacy productivity apps. I haven't had any problems running things like Wordperfect 5.1. If anything they are easier to get running compared to picky DOS games and demos!

    2. Re:Please by ericloewe · · Score: 1

      What doesn't DOSBox have that games don't need but business stuff does? Usually games are those things that require very good compatibility, and DOSBox is perfect in my experience...

    3. Re:Please by chipschap · · Score: 1

      DOSBox is really, really good but does not include printing support. That can be a problem with productivity apps; you have to print to file then print the file (not even possible with every app).

    4. Re:Please by NJRoadfan · · Score: 1

      There is a SVN build that includes Epson LQ (ESC/P) color printing support. It isn't perfect, but it works. With some changes, DOSBox could easily intercept data written to LPT1: and send the output to a file.

    5. Re:Please by lister+king+of+smeg · · Score: 1

      why don't they have it print to postscript. many modern printers take postscript input so it would not be hard to have it pipe the input to the printer.

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
    6. Re:Please by Anonymous Coward · · Score: 0

      DOSBox can't handle Control-Break, which was used an awful lot (for good reasons and bad) in the DOS era.

    7. Re:Please by gatkinso · · Score: 3, Funny

      That is an awesome idea. Let us know when you commit that!

      --
      I am very small, utmostly microscopic.
    8. Re:Please by ericloewe · · Score: 2

      Ah, of course. Makes perfect sense - the one thing no game needs but every business user needs...

      I can't blame them, I would also avoid touching anything printer-related with a 3,048m pole if possible. I guess it comes down to emulating HP LaserJet and whatever else was commonly supported at the time, similar to what's currently done with sound cards...

    9. Re:Please by Jappus · · Score: 5, Interesting

      Actually, newer SVN + patches builds for DosBox go much further than that:
      http://www.dosbox.com/wiki/SVN_Builds

      The best one, if you ask me, is the SVN Daum build (alas, their website is down at the moment). To quote its set of difference to Vanilla DosBox:

      Description: The Windows build incorporates Direct3D with pixelshaders, OpenglHQ, Innovation, Glide, zip/7z mount, Beep, NE2000 Ethernet, Graphis user interface (menu), Save/Load states, Vertical sync, CPU flags optimization, Various DOS commands (PROMPT, VOL, LABEL, MOUSE, etc) and CONFIG.SYS commands (DEVICE, BUFFERS, FILES, etc), Continuous turbo key, Core-switch key, Show details (from menu bar), Nice DOSBox icon, Font patch (cp437), MAKEIMG command, INTRO, Ctrl-break patch, DBCS support patch, Automatic mount, Printer output, MT-32 emulation (MUNT), MP3CUE, Overscan border, Stereo-swap, SDL_Resize, MemSize128, Internal 3dfx voodoo chip emulation, etc.

      I emphasized the important bit. What these two little words mean is the this DosBox build can not only emulate a DOS printer to dump stuff into various output formats (PNG, PDF, etc.), but it can also pass along the output to a Windows printer driver (which allows you to print to any USB printer) as well as use a real parallel port on your computer to let the DOS talk directly to the printer.

      I know at least one company that is using this DosBox build to support printing out of a 20+ year old billing software.

    10. Re:Please by ericloewe · · Score: 2

      You're forgetting that in DOS, every application needs its own drivers for anything beyond text mode output (MDA?) and keyboard input, so there's not a single printer interface to emulate - ideally, you emulate the more popular ones.

    11. Re:Please by Jappus · · Score: 2

      DOSBox can't handle Control-Break, which was used an awful lot (for good reasons and bad) in the DOS era.

      See my post from further up in this thread where I've linked to the SVN Daum build of DosBox. Among other things, it contains a very good "Ctrl+Break" patch that adds that particularly little oddity with almost 100% accuracy.

      Nowadays, the SVN builds of DosBox can do so much more than the Vanilla DosBox, it's no wonder the maintainers can't decide which of those patches to add to the mainline first.

    12. Re:Please by Anonymous Coward · · Score: 0

      The current owners of dBase have a DOSBOX version with dBase printing support.

      http://dbdos.com/

    13. Re:Please by ultrasawblade · · Score: 1

      Networking.

    14. Re:Please by Jappus · · Score: 1

      By the way, here's a working link for those who wish to download this version of DosBox, while the original website is down:

      http://www.emucr.com/2013/02/ykhwongs-dosbox-svn-daum-build-20130205.html

    15. Re:Please by jamesh · · Score: 2

      The beauty of OSS is that if it doesn't work you can add support yourself. And if you lack the technical expertise, pay someone to add the support for you.

      A few years ago I was asked to organise a new PC to replace a failing vintage laptop that connected via rs232 to a cnc machine. The problem was that the program didn't seem to work on anything else. DOSBox didn't work initially because the program used api calls that were considered obsolete when DOS2.0 came out. DOSBox had support for those calls but it was broken, but fortunately easy enough for me to fix and it now works great. Or did work until the machine it was running on broke and they replaced it with a laptop that didn't have an rs232 port. For some reason DOSBox + USB RS232 works very slowly and I haven't had a chance to figure out why yet. Or try the SVN builds.

      OSS FTW!

      Unrelated, I was doing much the same thing somewhere else with a drill, but with slightly more modern software that didn't require DOSBox, but no matter what machine we tried it wouldn't talk to the drill. We tried machine after machine with no success. I asked for a USB serial port but then didn't have internet connectivity to download the drivers so kept analysing the serial output and trying to figure out wtf was going on. Eventually I got internet connectivity, downloaded the drivers for the USB serial port and it worked first time and every time since. I guess the control board on the drill (a paper tape emulator) had slightly dodgy rs232 signalling and for some reason the onboard serial ports of all the computers we tried weren't quite able to talk.

    16. Re:Please by KZigurs · · Score: 1

      Stop mixing OSS with "source available" software...

    17. Re:Please by jamesh · · Score: 1

      Stop mixing OSS with "source available" software...

      I'm not sure what you're getting at here... DOSBox is GPLv2, so is OSS by any definition of the TLA. A source available license doesn't necessarily allow you to make changes to the code so obviously I wasn't referring to that.

    18. Re: Please by Anonymous Coward · · Score: 0

      Rs-232 not talking can be due to a ground loop. Connect the computer and the Cnc to a common electrical ground.

    19. Re:Please by ozmanjusri · · Score: 1

      But DOSBox is itself an application and does not have to output the same stream as the applications it contains.

      --
      "I've got more toys than Teruhisa Kitahara."
    20. Re:Please by Torodung · · Score: 1

      This link leads to a maze of adware and shit. What the hell?

    21. Re:Please by Torodung · · Score: 1

      I finally got this link to work.

      http://www.sendspace.com/file/gpof0m

      Click the non-flashy download link labeled "Click here to start download from sendspace." There are a million other buttons trying to get you to click on crap.

    22. Re:Please by NJRoadfan · · Score: 1

      A company went a step further and modified DOSBox to support their USB-to-ISA bridge adapter directly: http://arstech.com/install/cms-display/ste_uniformdos.html That CVS build list is interesting, what is the point of MP3CUE support?

    23. Re:Please by dbIII · · Score: 1

      demand support for their old versions of dBase

      Someone's got to look after us in our old age.

    24. Re:Please by ericloewe · · Score: 1

      Of course not, but it has to emulate the relevant printers. Only then can it receive what the printer would have received from the application and do with it whatever is convenient (dump to disk, pipe to printer, convert to PDF/XPS, call Windows' print stack - listed in what seems to be least to most convenient).

    25. Re: Please by adolf · · Score: 1

      In the second instance: If it were a ground issue, it wouldn't be solved by using USB, as the ground is continuous throughout.

      In the first instance: Who the fuck knows. There are too many dodgy API layers to immediately blame wiring. But grounding (and any loops) would stay the same, as long as the replacement laptop were plugged into the same outlet as the new (native RS-232-less) laptop: Switching things around should not create new ground issues.

    26. Re:Please by adolf · · Score: 1

      Interesting.

      In your first case, have you tried getting a PCMCIA (preferred) or Cardbus (less-preferred) or ExpressCard (possibly useless) RS-232 interface?

      In the first two instances, generally: Proper voltage levels. Real serial hardware with real hardware interrupts.

      ExpressCard is iffy only because ExpressCard exposes both a PCI-Express bus and a USB interface, the latter of which might be used instead of the PCIe bus (depending on the particular serial adapter)....which means you might get a USB adapter in a different form factor.

      And why not just run DOS on the machine, anyway? It's not like you need Linux and DOSBox to drive a serial port, even in 2013. Last I looked, new cardbus/PCMCIA RS-232 interfaces still came with DOS "drivers" (more like at-boot configurators, but whatever), and should work every bit as well now as they did back then: Assign it to COM1, run the industrial control program, and move on with life.

  2. Virtual Machines by AmiMoJo · · Score: 4, Informative

    Fortunately RS232 is still well supported via PCI-e cards and USB, so you can just run the old system in a virtual machine on modern hardware to avoid many of the problems associated with maintaining old gear.

    My only other advice is to never underestimate the costs, especially when talking to your boss. He/she will want guarantees that everything runs smoothly all the time, which realistically you can't provide without plenty of redundancy and extensive testing. Be clear that old hardware is hard to maintain and repair, and not trivial to replace.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    1. Re:Virtual Machines by NJRoadfan · · Score: 4, Interesting

      If USB to serial adapters cause communications problems, most motherboards still have RS-232 headers on them (residing at DOS friendly COM1), just need the bracket. Most of them can run DOS as well as long as they have a BIOS boot option as an alternate to EFI mode.

    2. Re:Virtual Machines by CAIMLAS · · Score: 1

      I've done this. The easy answer to your problem is: virtualization.

      Whether you're virtualizing DOS or Win9x, you can use modern USB devices as "real" serial devices on the guests. It works slightly differently with the different platforms (VirtualBox and VMWare are the best at this with VB being the best, in my experience, with XenServer failing and being difficult more often than not). With VirtualBox at least, you can pass a raw port to the guests.

      You MAY run into problems with port timing, however. Finding USB serial adapters that have good timing can be a bit difficult, and I don't have good advice on this. However, it still opens up your options and removes the dependency of old hardware.

      If you must, you can also buy multi-port serial cards (you can get a cheap 2-port on NewEgg) and pass those directly, or you could use a serial port router/switch if you have enough devices to justify it.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    3. Re: Virtual Machines by Anonymous Coward · · Score: 0

      This is along the lines of what I was thinking. Use a terminal server like Moxa nport to relay the data to a dos vm. If the application does not support tcpip you might need to emulate serial.

    4. Re:Virtual Machines by rex_s · · Score: 1

      ^^Win. The beverage manufacturer I work for has many of the same ancient PLCs, and we run VMWare Player in Win7 with an XP guest OS and a USB>Serial converter. Gets the job done.

    5. Re:Virtual Machines by LordLimecat · · Score: 1

      Please, noone who has business needs use Virtualbox.

      There are a lot of free / basically free virtualization products out there suitable for business. Unless VBox has substantially improved in the last year or two, it isnt one of them.... unless you like random hangups / VM corruption.

    6. Re:Virtual Machines by Anonymous Coward · · Score: 1

      This right cher is the answer. A lot of people don't even know this little factoid. Also if you get a good RS232 box like this http://www.brainboxes.com/product/items/es-279 you will be fine as well in 99% of the cases.

    7. Re:Virtual Machines by Anonymous Coward · · Score: 0

      The problem is that much of the industrial control software uses direct hardware calls - virtual machines fall flat in many cases. It is not simply a need for RS232, as that can be addressed by the excellent usb to serial adapters, but the 16 bit platform and the direct control of the serial port that the software relies on. Too many of the systems will not see anything above the standard com1 through 4 addresses as well, so the adapters fail there as well.

      The real issue is that for some of this, no virtualized environment I have yet tried will support the hardware and software environment for these specialized programs, so what I am left with is finding an an increasingly rare hardware environment for them.

    8. Re:Virtual Machines by jamesh · · Score: 1

      Already posted this, I have had DOS apps that just don't work on new machines and with a bit of patching DOSBox worked fine..

      Also mentioned in the same post, I have recently found a few cases where 5 different onboard serial ports failed to work but a USB port worked just fine... really strange.

    9. Re:Virtual Machines by Anonymous Coward · · Score: 0

      My last job had multi million dollar contracts that completely relied on multiple VirtualBox instances to connect to a critical service. Never had a hiccup in the 8 years I worked there. I suspect your instance was not set up properly, not everyone knows how to do it properly :)

    10. Re:Virtual Machines by scdeimos · · Score: 1

      Fortunately RS232 is still well supported via PCI-e cards and USB, so you can just run the old system in a virtual machine on modern hardware to avoid many of the problems associated with maintaining old gear.

      Apparently you've never actually used a USB Serial Adapter or you'd know what a pain in the ass it is to get one that works properly, even with simple things like the Console port on a Cisco ASA router. We gave up after trying about six different types from various suppliers and instead revived an ancient Dell notebook that had a physical RS-232C port on it. Lord help us if the Dell one day decided to go belly-up.

    11. Re:Virtual Machines by swalve · · Score: 1

      There are different pinouts for the motherboard headers. You have to pick/guess the right one to make them work.

    12. Re:Virtual Machines by fuzzywig · · Score: 1

      Depends on your business needs. I use it to run small linux VMs for testing on a Windows host and it's been fine, completely rock solid.

    13. Re:Virtual Machines by pnutjam · · Score: 1

      I can't give you any karma since I posted above, but your response is spot on. Old software with old hardware depending on old hardware is a disaster waiting to happen. Any part that can be, should be modernized in a way that does not prevent you from modernizing other components in a planned or as necessary upgrade.

  3. Consider yourself lucky by Anonymous Coward · · Score: 0

    It could be ladder logic and plugboards.

    1. Re:Consider yourself lucky by Runaway1956 · · Score: 1

      Oh, God! That makes me feel sick. We had messes like that when I started working at this company. There are exactly two of them left, and one of them is being dismantled to be carted off to the junk yard. The remaining one is rapidly becoming so expensive to maintain, that no one can justify keeping it around.

      We'll still have ladder logic for a long time to come, but no more of those freaking tangled spaghetti wire boards!

      --
      "Windows is like the faint smell of piss in a subway: it's there, and there's nothing you can do about it." - Charlie Br
    2. Re:Consider yourself lucky by inasity_rules · · Score: 3, Interesting

      It is a case of the 'right tool for the right job.' In some cases ladder logic is still the best choice. Running interlocking or normal controls like PID and so forth in ladder makes a lot of sense. Sequential function chart can be useful too, but tends to be overused by IT types who get cornered into control and have no clue what they're doing, as does script. Basically, what I'm saying is if we ever throw out ladder, it means we're being pretty thick. Ladder has a place and makes a lot of sense from the process POV, throw too much of it out and you're being stupid.

      Naturally, put the 'hardware' ladder system into a suitable PLC that can do SFC as well as ladder and the scripting language of your choice, but don't throw out the logic. That is often still the most logical solution and IT types who think ladder is obsolete should honestly be shot at dawn for the bastards who create un-maintainable messes of spaghetti code that they are. Siemens programmers are the worst culprits here.

      --
      I have determined that my sig is indeterminate.
    3. Re:Consider yourself lucky by Runaway1956 · · Score: 1

      Maybe I phrased that poorly - my complaint isn't the logic, but the spaghetti wire boards. Yes, we'll have ladder programs for a long time to come, because it works wonderfully in the type of application that it was designed for. But, it's SO MUCH simpler to work with in an ActionLogic or comparable PLC!!!

      --
      "Windows is like the faint smell of piss in a subway: it's there, and there's nothing you can do about it." - Charlie Br
    4. Re:Consider yourself lucky by inasity_rules · · Score: 1

      I would really hate to have to deal with those boards, or even the massive relay logic banks that they used to use. You do have my sympathy....

      I have worked with a lot of PLCs, but never action logic. Always curious, how do they compare to the Allen Bradleys and Omrons of the world? I am not tied to any particular setup, except I do have an abiding hate for the bloated mess that is Siemens.

      --
      I have determined that my sig is indeterminate.
    5. Re:Consider yourself lucky by Runaway1956 · · Score: 1

      To be perfectly honest - I've not had time to get into that ActionLogic5 controller. It's been in the plant for about two years now, and it has "just worked" all this time. Setup was very much like an Allen Bradley - in fact, the housing looks very much like an Allen Bradley. I suspect that it's a rebranded AB.

      --
      "Windows is like the faint smell of piss in a subway: it's there, and there's nothing you can do about it." - Charlie Br
  4. Serial to Ethernet converters by Anonymous Coward · · Score: 0

    http://www.digi.com/products/serialservers/

  5. RS 232 to ethernet adapters by Anonymous Coward · · Score: 4, Informative

    They are a god send. For software I use RSlinx Gateway which is for Allen-Bradley PLC's, but has many different driver solutions. Also it will allow you to bridge network connections if your running DH 485/RS 232/DF1/ DH/DH+/Ethernet. Gateway is expensive though there might be a more cost effective solution.

    1. Re:RS 232 to ethernet adapters by Anonymous Coward · · Score: 0

      and an isolated network for them I hope. not much security on devices expecting serial port communication.

    2. Re:RS 232 to ethernet adapters by DarkOx · · Score: 2

      Don't know about the particular device you mention but just want to remind everyone to "put some thought into things" before just slapping ip->ethernet->rs232 gateways around all over the place. Many of those old RS232 interface had no authentication or access control, the ones that did usually it was a weak password or pin and no rotation or change period enforced. Lots of the remote ip -> serial port solutions I have seen run clear text too, so even if there is a password on the controller it will be easily sniffed if used often. Make sure you have some sorta of access control on the gateway device and make sure it offers some kinda of encrypted channel or that you know exactly what and who has physical access to the networks between the gateway and the client.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    3. Re:RS 232 to ethernet adapters by some+old+guy · · Score: 2

      Excellent call. You beat me to it.

      The bridge hardware is worth every penny. By the time somebody grinds out a kludgey emulator zombie for some junk freeware, you're up and running with your system. In a factory environment, you often just don't have time to indulge in experimental development of custom applications.

      You can also see if the old RS-232/485 gear is recognizable by a Phoenix Contact or Wago DeviceNet-Serial hub. That's even easier since all modern PLC's support DeviceNet out of the box, and the hubs are fairly inexpensive.

      --
      Scruting the inscrutable for over 50 years.
    4. Re:RS 232 to ethernet adapters by gatkinso · · Score: 2

      The serial interface is not the problem, the 16 bit software talking through it is.

      --
      I am very small, utmostly microscopic.
    5. Re:RS 232 to ethernet adapters by wiggles · · Score: 2

      Anyone who merges their production industrial network with their common business network deserves everything they get.

      There should be an air gap between industrial control networks and business networks, and the industrial networks should never be able to touch the internet.

    6. Re:RS 232 to ethernet adapters by D1G1T · · Score: 2

      Yep. IT network administration and industrial networks are very very different, and require totally different mind-sets. I've been in plants where the people from the company's IT department aren't allowed on the factory floor. Deterministic behaviour and safety systems just aren't things your business IT guys ever think of. Conversely, network security is not something automation technologists have needed to deal with until recently, thus all the problems lately.

    7. Re:RS 232 to ethernet adapters by Anonymous Coward · · Score: 0

      HAHAHAHAHAHA

      Kind sir, are you aware that there are hydroelectric dams, car washes, and skating rinks (with a defrost option) connected directly to the Internet? No auth needed!
      http://www.youtube.com/watch?v=5cWck_xcH64

    8. Re:RS 232 to ethernet adapters by cusco · · Score: 1

      Physical security systems are another issue as well. Ridiculous when frequently a company's largest security hole may be their frelling Security System! I've seen DVRs/NVRs with no password, and no ability to set one, access control panels with no passwords, until last year AMAG (the #2 vendor of enterprise-size key card systems) ran on MSDE (wouldn't install on anything higher, even in compatibility mode), cameras and infant abduction detection systems with logins of root/root or admin/admin, etc. Default passwords are more common than not, since service guys need to be able to get into equipment. It's a mess as installed by most vendors (not my current or previous employer, though).

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
    9. Re:RS 232 to ethernet adapters by adolf · · Score: 1

      Getting 16-bit software running on a modern computer is easy: This is why God has given us VMs.

      Getting a hardware serial port to work properly from within a VM is not always easy. This is why God has given us serial-to-Ethernet adapters which never get bogged down in the hardware abstraction of a VM.

      I've got a few Lantronix boxes that seem to work well. DIN-mount, very flexible power requirements, a pair of RS-232/422/485 ports, and a pair of Ethernet ports with a dumb 10/100 switch in between them: They can be daisy-chained.

    10. Re:RS 232 to ethernet adapters by jamesh · · Score: 2

      I use Netgear WND3800 + usb serial port for the same thing. It moved the control PC out of a hot dirty workshop and seems to work okay so far.

    11. Re:RS 232 to ethernet adapters by wolfguru · · Score: 1

      some of the plcs I need to support are no longer supported by the allen-bradley software, and some never were, In some cases, the software the techs are using is the very last version of whatever was developed to manage the plcs, and we're talking 3-4 million dollar systems that would require months of redesign, wiring and tuning to handle a newer PLC so the options are limited.

    12. Re:RS 232 to ethernet adapters by jamesh · · Score: 1

      and an isolated network for them I hope. not much security on devices expecting serial port communication.

      It depends on the situation. If your serial port is simply monitoring some sensors then security isn't such a big deal. If your serial port is running a uranium purification centrifuge then I guess you may want to think a little about security :)

      Also if your serial port is sitting in a workshop (locked cabinet or not) then internet security probably matters very little.

    13. Re:RS 232 to ethernet adapters by Anonymous Coward · · Score: 0

      The most cost effective solution is writing your own drivers, it is also the most time consuming. Maybe the answer is somewhere in-between this and paying for tools and hardware to make the whole process simpler. I've worked in the broadcast engineering field and this type of situation is dealt with every day: it is possible to wire serial pinouts into rj45 and it can be done with parts from RadioShack or an equivalent store. I used to do this and have a hand in coding the supporting driver software with MFC and COM objects using Visual Studio. To interface with this in .NET you can use interop and P/Invoke. I'm sure there are open-source OS equivalents of the same process too. RS232 to ethernet adapters? Just make your own adapters.

  6. USB To Serial by PantherX · · Score: 0

    It seems that pretty much every datacenter needs a bunch of these: http://www.tripplite.com/en/products/model.cfm?txtSeriesID=849&txtModelID=3914

    They work well, though I'm not sure about software, as it was suggested previously, a virtual machine sounds like it should work for what you need.

    --
    Sig missing. Reward.
    1. Re:USB To Serial by fatalwall · · Score: 1

      Those often run into problems. Often when using those I have had to fiddle with settings. Some software has limitations as to which port the device needs to be plugged into. Yes you can reroute but thats part of the fiddling. Getting a stack of old laptops with rs232 ports has always been the most reliable way I have found. Sadly ensuring you have enough to last the life of the device your communicating with can be an issue.

    2. Re:USB To Serial by int19 · · Score: 1

      The initial problem with these I have found is that you can end up with e.g. COM12 after plugging in the adapter. The fiddling you have mentioned then becomes necessary. The more insidious problem I have seen is when the COM port number mapping changes, since it's really not a "fixed" port. Now you foist the task of fiddling on to the guy in the field, who may in no way be qualified (rightly so) to do such a task.

      As an example, the FTDI drivers by default key the port number on the USB device's serial number. Plug in a different adapter, you get COMn+1. As luck would have it, FTDI does provide a registry setting to adjust this behaviour but you need to know it's there first.

      Even worse regarding fiddling is if your application does fancy things with Windows overtop of the COM port. For example, running a null model Internet dialler (ppp). God help the poor soul who needs to fiddle with that mess while the customer is breathing down your neck. What we did was add in to our application some C/Win32 code to allow "reconfiguration" of the ppp dialler in the event the COM port mapping changes. We found that to be a poorly documented black art API that would sometimes require a reboot, sometimes not.

      Regarding paths forward to deal with the general problem of RS-232 obsolecense in consumer laptops I see no adequate alternatives. Ethernet/TCP? Lack of a standardized IP addressing configuration makes it too cumbersome to field personnel since all vendors will implement their interfaces differently. USB? See the preceeding paragraphs. Couple that with the fact that the complexity of the protocols and software required to implement communication via TCP and USB are ridiculous to that of RS-232, there is no reasonable solution that I have seen yet. In an embedded system, UART (RS-232/422/485) core I/O routines can be written in one or two dozen lines of code. Lines of code for TCP/IP and USB stacks easily number in the thousands, and may also require a multitasking OS for certain API requirements. Because of this, UART interfaces aren't going away any time soon.

  7. Y2K by Anonymous Coward · · Score: 0

    The only issue with your old software will be to make sure it is Y2K compliant, apart from that, it'll keep going forever as long as the surrounding hardware holds out.

    Oh, wait....

    1. Re:Y2K by Smallpond · · Score: 1

      Not even. Our data center had an irreplaceable piece oif software that was not Y2K so they just declared that 2000 = 1970. It was finally replaced last year (1982).

    2. Re:Y2K by LordLimecat · · Score: 1

      You know, when i was new to the industry, I would have thought you were full of crap.

      But now I find that sadly plausible.

    3. Re:Y2K by Anonymous Coward · · Score: 0

      Did you get a bonus for replacing the software 18 years ahead of schedule?

    4. Re:Y2K by cusco · · Score: 1

      Empress database? There's a local company that is still doing the same thing.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
  8. Have a look at PCs for Industrial Automation. by stasike · · Score: 5, Informative

    At work we use Industrial PCs for work with PLCs. You can still buy PC with an ISA slot, and most of industrial PCs have good old serial port. Just contact any competent supplied of industrial automation equipment.
    One of manufacturers is Advantech. Have a look at their UNO line of "brick" computers. Plenty of industrial RS232 and RS485 ports even in the most basic models. Computers are fanless and built to last. Unfortunatelly, those machines are bloody expensive.

    If you look really hard, you can even find new 486 machines. Those are even more expensive than Advantech bricks I wrote about, but there are still people that need those computers, so there are companies able to provide them at a cost.

    1. Re:Have a look at PCs for Industrial Automation. by Anonymous Coward · · Score: 0

      let me add look there : http://www.pc104.com/

    2. Re:Have a look at PCs for Industrial Automation. by Dadoo · · Score: 2

      You can still buy PC with an ISA slot

      You don't need an ISA slot to get serial ports. Just a few months ago, I put together a brand new computer at work that has two RS232 ports on a PCI-express card. You can get one from Newegg for around $50.

      --
      Sit, Ubuntu, sit. Good dog.
    3. Re:Have a look at PCs for Industrial Automation. by inasity_rules · · Score: 1

      Fanless industrial PCs tend to be more than R500. Also they tend to run old hardware and DDR2 RAM is now really expensive. It is silly, but it is the way things are. And fanless is a must in, for example, an environment which corrodes copper or tin in solder. And yes, I do work in such situations.

      --
      I have determined that my sig is indeterminate.
    4. Re:Have a look at PCs for Industrial Automation. by number11 · · Score: 2

      You can still buy PC with an ISA slot

      You don't need an ISA slot to get serial ports..

      No, but there are specialized boards that still have ISA slots. Sometimes it's considerably cheaper to replace the computer and keep the board, rather than vice versa. A new board will probably require new software, perhaps only available from a single vendor, and it may require retraining doctors, I mean users, who hate change. And, to be honest, if the old system did what they wanted, there's no reason to inflict something different upon them.

    5. Re:Have a look at PCs for Industrial Automation. by stasike · · Score: 1

      I know you do not need ISA for RS232. I wrote about ISA to show that you can buy even more exotic stuff than a PC with an RS232 port. Sometimes you have special hardware that does require ISA.

    6. Re:Have a look at PCs for Industrial Automation. by adolf · · Score: 1

      And there are specialized boards that still have ISA slots for specialized gear.

      Without digging deeply at all, I found this: http://www.adek.com/ATX-motherboards.html. One of them has six serial ports, one ISA slot, a smattering of PCI and PCI Express, DDR3 RAM, and a socket 1155.

    7. Re:Have a look at PCs for Industrial Automation. by drolli · · Score: 1

      Scientific equipment also is something where (due to low part numbers and long life-times) antique hardware is the standard.and totally obsolete drivers (say the newest version of windows these run on is windows me) are not impossible to find (to say the least). In 2011 i used perfectly fine equipment (HP, Tektronix) which was designed before the 90s.

    8. Re:Have a look at PCs for Industrial Automation. by number11 · · Score: 1

      And there are specialized boards that still have ISA slots for specialized gear.

      Without digging deeply at all, I found this: http://www.adek.com/ATX-motherboards.html. One of them has six serial ports, one ISA slot, a smattering of PCI and PCI Express, DDR3 RAM, and a socket 1155.

      No doubt. And they've got a few with more than one ISA slot (I had 2 full-length ISA cards to insert). The software ran under MS-DOS, and the computer would never be used for anything other than the dedicated purpose, so PCI, DDR3, etc. was totally irrelevant.

      So... we're going to take a random motherboard and find out how compatible it is with software provided by the manufacturer of those ISA boards in 1985? Does the software make use of direct access to the hardware of the computer that the vendor originally provided? Can it handle anything other than Hercules graphics? Who knows, the vendor wouldn't (or couldn't) tell me. No thank you.

      The client wanted me to provide a new replacement computer. I declined, and fixed the old one. There's no way in hell that I want to provide something that might be considered a piece of medical equipment. I don't have a clue what the formal requirements for that are (beyond common sense), and don't have insurance that would cover my ass for that. Aside from not knowing if it would even work.

    9. Re:Have a look at PCs for Industrial Automation. by Blaskowicz · · Score: 1

      So... we're going to take a random motherboard and find out how compatible it is with software provided by the manufacturer of those ISA boards in 1985? Does the software make use of direct access to the hardware of the computer that the vendor originally provided? Can it handle anything other than Hercules graphics? Who knows, the vendor wouldn't (or couldn't) tell me. No thank you.

      If software used direct access to the hardware of an IBM PC, XT or AT then that's still provided by the chipset nowadays (timer, interrupt controller). Keyboard and basic disk I/O driven by the BIOS is still the same : SATA controllers can be configured in IDE mode. Use a mbr scheme on your hard disk/ssd/usb stick, a partition below the 32MB limit if you're using some incredibly old MS-DOS or something.
      Text mode 80x25 and probably 40x25 are still supported ; if the original hardware had Hercules but only used the text mode this should work. Hercules graphics is a problem (but maybe a Hercules graphics card works on that socket 775 mobo).

      Running 1985 software on brand new PC is probably a very simple thing. Two main problems I can see : the original computer was not 100% IBM PC compatible (sadly it's a bit likely if it's a very old non IBM DOS machine) or the software uses dumb timing loops like for i = 1 to 1000 : A = A + 1 : next. Disastrous (with the software even entirely fitting in L1 cache). Even a 286 or 486 may be too fast to run the software. Maybe there can be another kind of issue but I can't really imagine what it is (software relying on a hardware bug existing only on that computer? other?)
      So, running the old stuff on a 2013 PC sounds fun and elegant and I'd like to do that sort of things but I can understand you had to make another decision.

    10. Re:Have a look at PCs for Industrial Automation. by adolf · · Score: 1

      I don't have insurance for working on anything that might be considered medical equipment. I also don't have any idea what the formal requirements are, and I doubt that they have much to do with common sense.

      So I guess I'd have gone even further than you did: I wouldn't have gone near the project with a twenty-seven and a half-foot pole.

      But would I use such a board for an ancient XT-based inventory/POS system in a corner pharmacy? You betcha. I'd even use it to run a mill, though I'd probably spend a lot more time verifying proper and expected operation than on the build itself.

    11. Re:Have a look at PCs for Industrial Automation. by cusco · · Score: 1

      Or a down comforter factory. I had a co-irker whose previous job included a monthly visit to every computer on the factory floor to open them up and pull out all the down that had filled them.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
    12. Re:Have a look at PCs for Industrial Automation. by Hognoxious · · Score: 1

      You're lucky enough didn't build up between visits to to cause a fire.

      It didn't occur to anyone to put them in enclosures with a filter?

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    13. Re:Have a look at PCs for Industrial Automation. by cusco · · Score: 1

      Apparently they tried that, but the filters clogged so quickly that one melted the plastic of the enclosure. Fortunately they were the old Compaqs with the huge heat sink, no fan and mostly-passive cooling. When they eventually replaced the PCs they put the new ones on shelves about 15 feet above the floor and ran peripherals down to floor level.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
  9. You need to come up with a migration strategy by prefec2 · · Score: 1

    The strategy should include a short time support strategy for old hardware. You can run 20 year old software on today's PCs either directly or in a virtual machine. However, you might have problems, because they are too fast. This short term support must be supplemented by a migration strategy for the old PLCs. I know that is hard, have worked in a project using PLCs in railway control systems, which have to run for 20 or more years before they are replaced again. Therefore, you need also a strategy how to replace the replacement in the future.

    One important tool to do this, is detailed documentation of protocols (including timings) and semantics of the software.

    1. Re:You need to come up with a migration strategy by Osgeld · · Score: 1

      I work with this software, and too fast is not a problem, as its the PLC that runs the software, you just need to run the funky 20 year old uploader on something

    2. Re:You need to come up with a migration strategy by Anonymous Coward · · Score: 0

      Migration isn't always financially feasible. I was with a company that ran it's own 16-bit based software wrote in the early 90s. To create new software would have been in the tens of millions of dollars, something this small business could not have afforded. The solution was to roll out win 98 virtual machines. Saved the company millions and worked like a charm.

    3. Re:You need to come up with a migration strategy by prefec2 · · Score: 1

      For the PLC part this is true, if replacement PLCs do not have a different sampling speed. However, I was more referring to the control software running on PCs. 20 year old software do sometimes timing stuff based on CPU cycles and even if not, certain problems first occur when the software is executed faster. But, yes, this is only an issue for PLC scenarios, where PLCs and PCs are tightly coupled.

    4. Re:You need to come up with a migration strategy by inasity_rules · · Score: 1

      That is what I love about Omron. Upload the program from, say a C2H, and download it on a modern CJ CPU, and everything seamlessly and flawlessly just works. Plant downtime rangers from zero to 15 minutes.... Other PLC manufacturers are very decent too, but bloody Siemens breaks between PLCs of different sizes on the same generation. Bastards. And Toshiba is still on Generation 1.

      --
      I have determined that my sig is indeterminate.
    5. Re:You need to come up with a migration strategy by some+old+guy · · Score: 1

      Siemens has sucked out loud in every imaginable way ever since they abandoned the old TI 505/Step 5 framework. Step 7 is grossly bloated for the scale it's good at, and fails miserably as a wannabe DCS.

      --
      Scruting the inscrutable for over 50 years.
    6. Re:You need to come up with a migration strategy by Osgeld · · Score: 1

      Theres too much speed viratity to be clock synced with a CPU 20 years ago, it was an obsolete practice 15 years before that

    7. Re:You need to come up with a migration strategy by wolfguru · · Score: 1

      Migration is not always a simple matter when you are talking multi-million dollar installations which would require months of redesign, wiring, programming and timing to replace the PLC hardware with newer versions. I am talking equipment with multiple feeder stations on a manufacturing chain that include as many as 500 conditions and timings based on conditions both up and down the line each, which were purchased as much as 20 years ago for some of them. If you're interested in the actual devices, they are used to select and assemble multiple groups of pages to build catalogs, from as many as 32 different "pockets" based on criterion for each individual catalog at a rate of about 250 books per minute (different page groups, covers, wraps and inserts for different versions of the catalog, as many as 20 or 30 different combinations in a single run. The techs need to be able to access and adjust embedded plcs to keep the lines running accurately,

    8. Re:You need to come up with a migration strategy by tibit · · Score: 1

      It could probably be done very nicely using today's components. You'd pretty much need distributed I/O, and one modern PC-based PLC would take care of keeping things running. Compared to legacy hardware, a codesys environment running on a modern i7 or Xeon box can really do what dozens of legacy PLCs had to do before. It's much easier to develop since everything is on one system, and you have modern IP-based communications available to tweak things.

      --
      A successful API design takes a mixture of software design and pedagogy.
  10. Where to Buy by bgmacaw · · Score: 0

    At a company I used to work for we found that EBay was a great place to buy old equipment we required for our outdated, but still needed, systems (mostly to connect to scales and such). You do need to use a lot of caution when buying there since the quality of the equipment and the quality of the sellers vary a lot. There are also some sellers who have separate online stores where they feature a wider variety of items in order to avoid fees. You may also find someone who sells online also has a physical store location in your area. Visiting a tech graveyard store is a fun way to blow an afternoon. I do agree though with what AmiMoJo said, virtual machines and cost/benefit analysis is going to be better in the long run than trying to keep that IBM AT running.

  11. Solution by Anonymous Coward · · Score: 0

    Never - ever - upgrade.

  12. Moxa serial connection equipment by stasike · · Score: 1

    A few posts ago I wrote about Industrial PCs.
    If you need just a serial port, and not complete PC running old software that needs to access serial port directly, there are boxes from Moxa that let you connect dozens of serial ports to one PC.

  13. 16 Bit what? by jfdavis668 · · Score: 1

    16 bit software. What OS? Windows 3.1? 2.11? OS/2? DOS? Xenix? Beside the RS-232 problem, finding new hardware for these OS can get difficult. As others stated, you can use VMs to run, but it would help us answer the question if you list the OS. Just finding old OSs can be quite difficult. (legally)

  14. You're not alone by mykepredko · · Score: 5, Informative

    Hi Timothy,

    Unfortunately, you didn't provide a lot of information in your post as to what the problems are.

    As people have pointed out, there are a ton of USB to Serial solutions out there so having the modern hardware with the ability to communicate over RS-232 is generally not a problem (although, depending on the connections used, you might want to invest in a RS-232 breakout box and read up on RS-232 handshaking as many of the older devices do use hardware handshaking). I have a few hand wired 9 pin to 25 pin connectors with the CTS-RTS and DSR-DTR pins shorted together as they can simplify your life immeasurably.

    In my experience, the biggest problem is retaining floppies & CDs with the original software on them (assuming that the developers are no longer supporting the product/are out of business). If the company is still in business, usually they're pretty good at providing updated software for their products. If they're not in business, then look to see if they were bought out by anybody. Chances are you'll find that the purchaser is still supporting the product, although it may be under another name.

    Personally, the biggest issue that I see when I have encountered this type of situation is that the original programs are on floppies. If this is the case, you will need to find somebody with a Windows/95 machine that they're keeping together with spit, bailing wire, gaffer's tape and good intentions - you should be able to copy the program onto a USB key and then burn it on a CD/DVD for more permanent storage.

    Once you have the program in a media that you can work with, you may have problems with the installation. You will probably have to create a virtual machine on your PC AND there may be 16 bit programs that you have to convert to 32 bit - here's a great resource that's saved me a couple of times: http://www.reactos.org/forum/viewtopic.php?f=22&t=10988

    Finally, Google is your friend. Chances are the answers are out there for your particular equipment.

    Good luck!

    myke

    1. Re:You're not alone by Anonymous Coward · · Score: 1

      Once you have the program in a media that you can work with, you may have problems with the installation. You will probably have to create a virtual machine on your PC AND there may be 16 bit programs that you have to convert to 32 bit

      No need. You can run 16-bit, or even 8-bit software in a VM. You may need to run it under something like Bochs instead of hardware assisted, but for software that old, full software emulation is not going to slow it down.

      The bottom line - if it ain't broke, don't fix it. The fix can break it.

    2. Re:You're not alone by CAIMLAS · · Score: 1

      'dd' (or rawdiskwrite, or whatever the Windows equivalent is) is your friend, as is virtualization. There is very, very slim rationale behind keeping these systems physical. Even SCO virtualizes OK in most scenarios.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    3. Re:You're not alone by toygeek · · Score: 1

      For one application where a customer had to run an old 16 bit DOS application on a newer Windows box, I installed DOSBox (which is typically used for gaming) and it worked great. Mind you, it was a very simple piece of software and did not use rs232 communication, but instead was like a hard coded spreadsheet. A very specific, difficult to replace, probably no replacement existed, hardcoded spreadsheet. It worked great.

    4. Re:You're not alone by inasity_rules · · Score: 2

      USB to serial adapters are shit. +/-6V instead of +/-12V and variable latency (USB does not guarantee latency). RS232/RS485 to Ethernet adapters are far better, but nothing competes with a physical port for some obscure finicky equipment. And yes, it is still out there working fine unlike the modern rubbish that fails if the air gets slightly moist.

      --
      I have determined that my sig is indeterminate.
    5. Re:You're not alone by tibit · · Score: 1

      You can still buy USB floppy drives. They were very popular when macs dropped internal floppy drives. Mac-based labs were full of those things back around 2000.

      --
      A successful API design takes a mixture of software design and pedagogy.
    6. Re:You're not alone by tibit · · Score: 1

      USB guarantees latency if you have control of the entire stack :)

      --
      A successful API design takes a mixture of software design and pedagogy.
    7. Re:You're not alone by Blaskowicz · · Score: 1

      You can still buy a mobo with a floppy drive controller too. The connector only has to be physically there. Not specialty mobos but you do have to look for it (ASRock N68C-GS FX for instance but I've seen it on some socket 1155 mobo I think)

    8. Re:You're not alone by dublin · · Score: 1

      Personally, the biggest issue that I see when I have encountered this type of situation is that the original programs are on floppies. If this is the case, you will need to find somebody with a Windows/95 machine that they're keeping together with spit, bailing wire, gaffer's tape and good intentions - you should be able to copy the program onto a USB key and then burn it on a CD/DVD for more permanent storage.

      3.5" floppies are no problem - although getting a bit scarce, it's still pretty easy to get USB-connected floppy drives. It's the 5.25" floppies that are hard. Although I didn't expect to need to do this, I recently found that life would be better if I could get a bunch of data that lives only in a few files of 5.25" floppies.

      There are a number of solutions to this, but few are just plug-and-play. It also depends on whether you need to be able to read and write the floppy as an application would, or whether you just want to scrape the bits off and save them in some kind of container on another filesystem. (I was looking for IBM-format floppies, but realized while I was researching this, that this is probably the time to grab the data off my old Commodore floppies as well - I was surprised to find that many of these 5.25" interface solutions are capable of reading floppies from darn near anything - C64, Apple, Atari, Amiga, etc. As a result, a couple of these are C64-centric, and some are read-only.)

      BTW - Lots of folks will say that disks this old cannot be read. IMO, you'd be surprised how often the data is intact even after decades. I suppose it has something to do with the fact that these older disks were considerably less dense in the first place, making them more resistant to the vagaries of time-based magnetic bit rot than newer more dense media.

      Here is a rundown of what I found - this will no doubt be handy to anyone with the same problem:

      http://webstore.kryoflux.com/catalog/product_info.php?cPath=1&products_id=30
      http://store.go4retro.com/zoomfloppy/
      http://ascii.textfiles.com/archives/2503
      http://www.deviceside.com/fc5025.html

      --
      "The future's good and the present is nothing to sneeze at." - Roblimo's last ./ post
  15. But dos and older windows 9X apps / os may not by Joe_Dragon · · Score: 2

    But dos and older windows 9X apps / os may not like USB to RS232 and or pci / pci-e based RS232 ports. Also VM pass though may not work 100%.

    You can try running free dos / MS-DOS 7.x or 8 on newer hardware but usb may not work as well.

    1. Re:But dos and older windows 9X apps / os may not by hairyfeet · · Score: 4, Interesting

      I'm surprised nobody has simply named the obvious, which is just pick up an older laptop on ebay. Plenty of old Toughbooks still out there, built like tanks,, with RS232 already on them. Sure it isn't as fancy as setting up VMs and trying to get them to talk to the old gear but sometimes the simplest answer is the best IMHO.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    2. Re:But dos and older windows 9X apps / os may not by Anonymous Coward · · Score: 0

      Depends on the scale you are operating at - if you have a few machines that need RS232, this works fine, but when you have a few hundred, maintaining them would be a serious challenge - you'd have to replace whole systems when they break, which is fine from a hardware cost, but may not be from a system setup time perspective.

    3. Re:But dos and older windows 9X apps / os may not by wolfguru · · Score: 1

      I use toughbooks now, and the used ones and refurbs are possible, but they have specific issues with XP SP3 and serial hardware, and difficulty with some direct hardware access to the serial port. Some of this controller management software dates back to dos/win95 and is at best touchy on the toughbooks. Used hardware is often a grab-bag and has a lot of variations in port availability too.

    4. Re:But dos and older windows 9X apps / os may not by DigiShaman · · Score: 1

      It's prolonging a much bigger issue however. Eventually, that antique hardware will also have to be replaced and out goes the need for RS232. One would hope anyways. This problem is a yarn ball of a discussion that need to happen now and not later.

      1. When will the 20year old printing hardware be replaced or decommissioned?
      2. How much will it cost?
      3. Does the company plan on investing in upgrades, or flip the company leaving the next owners with a money pit? (if yes, GTFO and find another job. There is no future for you)
      4. When will the upgrade plan to take place? This will determine how much old hardware you will need to ensure an adequate support overlap.
      5. If upgrades are to occur, what (if any) ancillary effects will this cause throughout the rest of the company's network infrastructure (software, client, server, etc). Are you looking at just the tip of the iceberg in capital expenditures?

      --
      Life is not for the lazy.
    5. Re:But dos and older windows 9X apps / os may not by Anonymous Coward · · Score: 0

      everyone on slashdot thinks they are geniuses so they are going to come up with the nerdiest solutions, instead of keeping it simple. I think the DosBox and PCI ideas may be the simplest. And of course buying an old laptop.

    6. Re:But dos and older windows 9X apps / os may not by hairyfeet · · Score: 2

      As somebody who has their first gaming PC, a 100Mhz P1 still running with DOS 3 as the controller for an expensive old column lathe that they don't even make anymore? The problem with having that discussion is some of this stuff is just fricking insanely expensive and in a down economy you may not have the money, or spending that money might seriously hurt operations in other areas.

      Believe me nobody WANTS to keep really old shit, but you may have a PHB middle manager that won't let go of a dime, sometimes as i said the cost is just too high, a lot of time you keep the old shit because you simply have no other choice.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    7. Re:But dos and older windows 9X apps / os may not by tlhIngan · · Score: 1

      But dos and older windows 9X apps / os may not like USB to RS232 and or pci / pci-e based RS232 ports. Also VM pass though may not work 100%.

      You can try running free dos / MS-DOS 7.x or 8 on newer hardware but usb may not work as well.

      All serial ports from the Win9x era use PCI. Well, they use a PCI-to-ISA bridge (external), or a PCI-to-LPC (intenral) bridge.

      PCIe is no different - ti's a different physical layer, but once everything is mapped correctly by the BIOS, you can use it by doing simple IN and OUT instructions like you always could. Once it is all set up (which just involves reassigning the right memory and I/O mappings into the system memory map) it's no different than if someone hung a UART off the port directly.

      Hell, that's one of the fancy things with Thunderbolt - you can actually hang real PCIe devices (and thus, real serial ports) off it. No crappy USB-to-serial adapters - just a real serial port.

    8. Re:But dos and older windows 9X apps / os may not by Joe_Dragon · · Score: 1

      Thunderbolt has bridge chips in it. But the real issues may be the os being able to see that new hardware and software if may be looking for stuff like com1, com2.

      And does that pcie card have dos divers? windows 9x drivers? Does the serial chip work with the all Seldom used features?

    9. Re:But dos and older windows 9X apps / os may not by Anonymous Coward · · Score: 0

      It's prolonging a much bigger issue however. Eventually, that antique hardware will also have to be replaced and out goes the need for RS232. One would hope anyways. This problem is a yarn ball of a discussion that need to happen now and not later.

      /quote>

      No! Do the quick/cheap fix right now. Be the hero that moves up/away before the results hit the fan in a few years - that's how careers are built, not by doing it right.

    10. Re:But dos and older windows 9X apps / os may not by pnutjam · · Score: 1

      Just like the guy who feels bad about getting another job when they need him so much at his company, then on day he get fired because the reality is however important he is, the owners will find a way to work around him or replace him when the need arises.

      They want to do things on their schedule. Sometimes that is good, some delay can help to smooth out a well run operation. Usually it is a sign that the business is not well run or has found someone they can exploit. If you are saving a company $500k I hope you are getting at least 10%.

    11. Re:But dos and older windows 9X apps / os may not by tlhIngan · · Score: 1

      Thunderbolt has bridge chips in it. But the real issues may be the os being able to see that new hardware and software if may be looking for stuff like com1, com2.

      And does that pcie card have dos divers? windows 9x drivers? Does the serial chip work with the all Seldom used features?

      Of course Thunderbolt has bridge chips - it's a different physical layer than regular PCIe. But going through a bridge is very easy for PCI/PCIe/Thunderbolt - you just do a standard memory or I/O operation. The bridge chip (which has been preprogrammed) captures the operation and forwards it on through its fabric.

      As far as the system CPU knows (or anything on the main bus), it's completely transparent.

      And the only PCIe drivers you need for DOS? They're in the BIOS. Part of the "Plug and Pray" deal is that the BIOS configures the PCI(e) bridges as necessary to map stuff into memory and I/O space.

      Be aware that PCI has existed since the early 90s, before Win9x was even a glimmer in Gates' eye. And even during the Win9x era, most people still used DOS, and ISA was done through PCI-ISA bridges. It's also where PnP failed because one had to manually map out ISA resources so the PnP stuff in the BIOS and OS will NOT attempt to use those resources. But once all-PCI PCs debuted, it was pretty transparent.

      And once configured by something (which really just involves setting up maps and IRQ mappings) - which could even be DOS application - using the hardware is actually pretty trivial - PCI is a memory and I/O mapped bus. And PCIe, to encourage adoption, is logically PCI backwards compatible, so anything that's PCI-aware can configure a PCIe device in legacy mode.

      Thunderbolt may require more configuration of the bridge chips, but it really doesn't actually implement anything that isn't in the PCIe spec (hot plugging is actually in PCIe). Of course, it's an advanced PCIe feature, but it still doesn't mean you can't configure it somehow.

      Of course, the REAL problem will come from the fact that PCI only has 4 interrupts that are shared. Those 4 are system dependent on how they map to the IRQ controller, so it's possible REALLY old software that assumed I/O and IRQ addresses may not work. Then again, those rarely worked beyond COM2 anyhow.

    12. Re:But dos and older windows 9X apps / os may not by Smokeybehr · · Score: 1

      I've been running Toughbooks for a while, simply because I have older network equipment that needs a real RS-232 serial connection to talk to it, and I have a plethora of two-way radio equipment that requires programming using a serial port and interface box. The Radio Programming Software won't recognize serial ports above COM4, and most USB-to-Serial converters have issues with sending the signals down the line. I also have Amateur Radio equipment and software that requires a real serial port for sending and receiving data and keying the radio. USB converters can't provide the correct signaling functions.

  16. Use virtual machines by woboyle · · Score: 1

    On a modern OS, such as Windows or Linux (preferable), you can use a virtual machine to run older DOS and such operating systems, passing the RS-232 ports of the host though to the virtual machine. Works great for me, and I use that for dealing with similar embedded systems all the time. FWIW, my preferred host OS is a clone of Red Hat Enterprise Linux (RHEL) 6, Scientific Linux (SL). CentOS is another such clone, and widely used in industry. I use SL because I personally know the maintainers of SL at Fermi National Laboratory in Illinois (my wife is a staff scientist/physicist there), so if I have an issue, I can contact them directly. My preferred virtual machine manager tool is currently VirtualBox (open source, from Oracle/Sun), but KVM will also work very well for this. That said, I prefer the GUI and configuration tools provided by VirtualBox.

    --
    Sometimes, real fast is almost as good as real-time.
  17. This is a piece of cake... by Anonymous Coward · · Score: 0

    ...we run two pick and place machine which run on CP/M daily. Replaced floppy disk (5") with emulator which runs on sd cards and everything works fine.

    So, 232 and Windows is a child play :)

  18. Risks by martin · · Score: 1

    All about risks, not just the fact the device is RS-232 only, but can the manufacturer support the equipment and if it fails whats the cost to the business while the machine is down.

    Sure we can all get 486's with ISA cards if the device needs connectivity to the outside world, but the device of that is a business risk and needs Mgmt to be aware of the issue.
    I've had a parts carousel system go down for weeks while we replace gearboxes, made worse by a switch from AC to DC by the manufacturer. Costs to the business were huge and all production was slowed down. Mgmt were informed of the risks but wouldnt spend any money till if broke.

    Basically you're looking at a CYA situation, make sure mgmt are informed in writing (email etc) of the issues around the machines and what costs there are vs getting in new machines and added benefits of new machines

  19. Keep a few older systems by Anonymous Coward · · Score: 1

    Ethernet and USB to RS-232 are great solutions, but sometimes software is written a little too specific to HW, like CPU clock speeds, system IO chips, etc., and it just won't run in newer OSes and virtualized environments. For that reason I've kept a few older motherboards and systems and I've had to run them from time to time- ISA slots, 5.25" floppies, even 3.25" floppies are rare for me these days but once in a while, needed. About a year ago a guy paid me around $200 to recover lots of files from some XT and AT class hard disks, and I was able to do it (fairly easily).

    Everyone has "upgrade fever" but I don't necessarily recommend it. Often the 20 year old software is well written and works 100% in its correct environment.

    A good friend of mine works at a company with just this problem. They have a very expensive CNC machine. The software is very hardware dependent- needs to see old AT architecture stuff, the original 5.25" floppy (software key), CPU clock dependent timing loops, etc. The whole machine was wearing out and needed so much overhaul, all new bearings, slides worn, etc., they finally scrapped it, but replacement cost hundreds of thousands. But during it's 25 year lifetime they kept some older PC hardware around for spares and kept it running.

    It might be more cost-effective and time-efficient to find some older stuff on ebay. Maybe I should rent out my systems / services!

  20. Some observations... by tlambert · · Score: 4, Interesting

    Here are some observations about why the problem isn't as difficult as you are making it out to be.

    First and foremost, for older PLC hardware, the PLC hardware was considered to be the valuable part, and the software/drivers were considered to be overhead that they had to have to sell the hardware. So most of the serial protocols for these things were well documented in order to reduce support costs. In general there was either reluctant free support for their software/drivers, or you paid a fee per incident. If support contracts were an option ... you are unlikely to have kept the payments up this long. So you will likely be writing some code, but you will likely have documentation with which to do it.

    Second, the FTDI drivers are crap. They leak kernel memory in Linux when you unplug them while the device associated with them is open. They also do this in the Windows Drivers, and because Mac OS X is religious about its encapsulation model in IOKit, unplugging them in Mac OS X while the device is open generally leads to a kernel panic. Almost all the USB-to-RS232C/RS422 adapters use chips sourced from FTDI, or use clones of the FTDI chips so they don't have to actually write their own drivers. Rampant code copying between vendors is my suspected reason that most of these vendors refuse to document their hardware well enough that an Open Source driver without the bugs could be written. You are unlikely to be happy with USB fobs.

    Third, 9 pin RS232C is frequently not enough for a lot of older devices. The RS232C specification allows external clocking of the signal, but these pins are not present on the 9 pin connectors, only on the 25 pin. Additionally, there is out of band signaling that is sometimes used on other RS232C pins that aren't as frequently used that can be necessary. As you are with a printing firm, if what we are talking about here is an old Linotype or similar machine, you are likely to be SOL without full 25 pin RS232C. You should be happy that it isn't an 8 pin DIN cable from an old Mac, since at least you get the RI pin on the 9 pin connector.

    Fourth, terminal servers often have these issues, in spades. There are a number of terminal servers where, if you have a blocking outstanding read on the serial port, outgoing writes are blocked until the read completes or times out. They basically expect that you will poll, or that all your communications over the serial port will be synchronous (i.e. you will not end up with output to your Wyse-50 until after you have input something). I can name a number of vendors with 8-port serial cards that have this issue. On the plus side, it's a driver design bug, so if you are swilling to use your own driver, or are willing to go Open Source OS, this is typically not a problem, but you will end up screwed by Windows and Mac OS X -- but a Mac OS X subclass of the broken driver is easier than an entirely new driver written in windows. Computone 8 port cards used to have this problem a lot.

    Fifth, and finally, with USB dongles, it's frequent that the modem control signals are borked up. What I mean by this is that until the pseudo tty USB driver on the host side of things is opened, then the pins on the RS232C side of the adapter are floating in an indeterminate state which depends on the USB fob firmware, and is frequently not where you would want e.g. DTR or CTS/RTS or other signals hanging out for an idle serial port. This can make older equipment Do Things(tm), and the oly real remedy is to get the port open, set the signals right, and THEN plug in the serial cable. Generally, this means that you get to have two sets of signal state for setup, in addition, since the line buffers in some of the older devices are not optoisolated, and on those which are, the optoisolation can blow if you immediately apply voltage before ground, etc.. If you think talking to an old PLC is hard, try replacing an ancient Zilog UART on the damn thing.

    1. Re:Some observations... by Dadoo · · Score: 2

      Third, 9 pin RS232C is frequently not enough for a lot of older devices.

      That hasn't been my experience. I've been doing RS232 since the early 80s, and I've run across very few devices from that time period that use more than the minimum three.

      What I have seen for devices that use the other signals is that they'll use them differently. For instance, the original RS232 spec uses RTS/CTS differently than they're used today. Also, pins will be used incorrectly; I have a computer in my garage that uses DTR for flow control.

      --
      Sit, Ubuntu, sit. Good dog.
    2. Re:Some observations... by inasity_rules · · Score: 2

      And 9 out of 10 USB to serial adapters I have run into can't even generate the correct pin voltages... +/- 6V might work for some devices, but not all. A lot won't see anything below +/-12V. Especially the 'comms powered' type.

      --
      I have determined that my sig is indeterminate.
    3. Re:Some observations... by Anonymous Coward · · Score: 0

      Big deal, any 15 year old kid could rig up a gate to bring in exactly the voltage and interface would need. Perhaps you need to learn about that which you speak?

    4. Re:Some observations... by Anonymous Coward · · Score: 0

      I've wired up plenty of converters to step up the voltage and make cheap usb-to-serial adapters usable for 12 V devices... at home. My employer wouldn't want me wasting time on something like that and would rather I just buy a dozen or more converters that work from the start and move on to doing actual work.

    5. Re:Some observations... by Lvdata · · Score: 3, Informative

      My ftdi on my arduino does have intermittent upload errors when used inside of VMware. I can live with it as it does a crc check. If your H/W S/W doesn't error check you might want to avoid that combination.

    6. Re:Some observations... by tibit · · Score: 1

      This is some serious bullshit about the FTDI drivers, and I don't like them but you just don't know what you're talking about I think.

      On linux you have two "ftdi" drivers: there's the open source one that's part of the kernel and it shouldn't be problematic. It's maintained and it uses the usbserial infrastructure that's used for many other devices. I can't see it having such problems. The FTDI-provided "driver" is 100% userspace and uses libusb, so if that leaks kernel resources, man, you better posted about it on LKML or something.

      On Mac OS X, the FTDI driver is, again, userspace-only and uses libusb. Now libusb on OS X is a horrible hack IMHO, but that's besides the point. If it leaks kernel resources, you better file a bug with Apple.

      As for Windows FTDI driver - it's semi-reasonable.

      I think that you've got FTDI's chip mixed up with another popular chip that's available from multiple sources and there indeed the driver situation is bad.

      --
      A successful API design takes a mixture of software design and pedagogy.
    7. Re:Some observations... by tibit · · Score: 2

      I think those devices have transceiver chips that are broken, because the RS-232 specification for the receiver certainly requires it to work with +/-3V levels - those are considered the minimum levels, in fact. Anything between +3 to +15V and -3V to -15V is a valid logic level. If you have an RS-232 receiver that doesn't work with +/-6V signals, it's broken, plain and simple. I've designed some RS232-powered devices and they obviously had to work through the range of allowed logic level voltages. There's good engineering, then there's cargo cultism. I prefer the former.

      --
      A successful API design takes a mixture of software design and pedagogy.
    8. Re: Some observations... by inasity_rules · · Score: 1

      Probably broken by design, but sometimes you have to work with what has been specified. In general, all devices seem to work correctly with ethernet to serial and physical serial adaptors (except if you try to talk via Microsoft's .net serial libraries which weirdly introduce random framing errors). USB to serial is always a toss up. Sometimes it works, often it won't.

      --
      I have determined that my sig is indeterminate.
    9. Re:Some observations... by inasity_rules · · Score: 1

      Your fellow AC addresses this nicely. I know exactly what I speak of, and I can not have a jury rigged nightmare mess sitting in a professional quality industrial panel. I would much rather have a proper adapter to start with.

      --
      I have determined that my sig is indeterminate.
    10. Re: Some observations... by tibit · · Score: 1

      except if you try to talk via Microsoft's .net serial libraries which weirdly introduce random framing errors

      In asynchronous serial terms, a framing error other than a break condition can only be generated by malfunctioning hardware, EMI or a collision on a multi-node bus. A .net library can't do it, because the underlying OS API doesn't expose any interfaces for you to do it. Now the UART hardware of course has transmitter and receiver enable bits that you could flip to simulate a framing error, but that's not what's happening here. Now if you refer to the fact that just because you write() some bytes, they aren't necessarily contiguous on the wire (without pauses) - then well, you never were supposed to depend on that anyway. A lot of serial protocol implementations are done by people who have never bothered to look at the wire with an oscilloscope, and who never understood the limitations of the medium. It is "simple", so people stop thinking - yeah, it's simple, so we do whatever the heck we want 'cuz it's so simple.

      Not so. Serial stacks on most modern OSes give you zero guarantees as to segmentation of the data. That means that if you write() a certain amount of bytes, for all you know they may be sent on the wire one-by-one with several ms worth of a pause between them. There's simply no guarantee in the design of the protocol stack to protect you from that. It's not ethernet. You can expect certain idle time limits to be reasonable, and exceeding them can be considered an error that you then recover from by re-sending whatever it was that has failed. But then your protocol better had numbered packets, numbered replies, a sliding window, and well defined semantics of what happens upon an error. For some applications discarding all further packets until the bad one is re-sent is the right thing to do. For other applications sending that one packet later while accepting the other ones is the way to go. It needs to be figured on a case-by-case basis.

      Same limitations apply to the receive direction. A number of bytes sent contiguously on the wire by the device can be chopped up and have to be read in multiple read()s. When you receive data, you need to acquire timestamps after each read and keep track of timeout counters. Some serial APIs help with that, but you need to be clever and validate the implementations to make sure they perform the way you think they do. Some APIs only have timing accurate to the system timer tick; on Windows it will usually be more than 10ms. There's no way around the engineering process here: instead of just brushing things off as "simple", you have to characterize the performance of the system you depend on, and then implement the code and the protocol so that it works in presence of those limitations.

      I've been dealing with various industrial and ad-hoc communication protocols for the last decade, and all I know is that most protocols are designed by people who have no idea about what it is that they are doing. I know this partly because I've at first committed the same mistakes I now know to avoid. You'd think, though, that serious established companies out there can afford people who know what they are doing.

      --
      A successful API design takes a mixture of software design and pedagogy.
    11. Re: Some observations... by inasity_rules · · Score: 1

      This is a weird one. The laptop in question(I couldn't be bothered to try a different machine) communicates flawlessly with the device through everything except .NET, where it writes correctly but reads a response full of random framing errors. It isn't an encoding or a settings issue, since I'm using the same settings as my C++ 6.0 library does, and the write would fail(which means the device would not respond). The device in question is half duplex. I don't design protocols anymore, just implement them.

      No idea what went wrong here, and yeah, I would love to have looked at this under a CRO, but I no longer have access to one, and it was honestly simpler to revert to a TCP/IP driver to a standard ethernet to serial unit. I have met some insanely awful protocols in my time, but this is one of the better ones. CRCs, byte counts, standard packet formats, ACKs and NAKs and so forth. Each packet has metadata, so confusion is hard. All standard 7 bit ASCII. I suppose I could write a C# wrapper for a C++ function to read the serial device, but only one user is still using direct serial, and even then, it is a virtual comm port, so I can get around it.

      [rant]Worst people for protocols are the makers of Lab and Test equipment. Apart from the Japanese, these tend to be universally bad, with often a write only setup on the instrument. How do you know it has been written? "Just assume it has." How do I know the device is on? "Start a test and wait for data. Or look at the light." I name no names... [/rant]

      --
      I have determined that my sig is indeterminate.
    12. Re: Some observations... by tibit · · Score: 1

      reads a response full of random framing errors

      Do you know about the errors since you inspect some error status or get exceptions? Does the data returned look like garbage as well, or is it a case of good data with incorrect error feedback?

      --
      A successful API design takes a mixture of software design and pedagogy.
    13. Re:Some observations... by Anonymous Coward · · Score: 0

      The "standard" is not interesting here. If his old equipment does not support rs-232 to the letter, then any new communication equipment have to work with that. The problem at hand is to keep using that old equipment - because replacing it might be extremely expensive. You don't replace industrial machinery just because it has a quirk in the rs-232 communication.

    14. Re: Some observations... by inasity_rules · · Score: 1

      The error counts that are part of the API and indicates framing errors. The returned data is full of '?' bytes in fairly predictable but not always consistent places(so not really random I guess...) in the packet, which is, again consistent with what the API tells me will happen on a framing error. The device only functions at 9600 baud and below. I was tempted to try at 300 baud, but I can't justify too much time in this.. Still I would be interested to know how the heck this happened....

      The same code to sign on to the device (my code is transport agnostic) works flawlessly over a 4 port MOXA ethernet to serial device. The signon sequence (which I can't detail, as I am under an NDA - foolish of the manufacturer, but not under my control) proceeds correctly until the device returns a long packet (off the top of my head, more than 10-15 bytes). Smaller packets(5 bytes and less) seem to be fine.

      Come to think of it, I did have a similar problem under .NET with a Tinsley resistance bridge, which also forced baud and bitrate settings on me, but that device is used on a moxa, so it didn't worry me too much either, though I strongly suspect the .NET serial API has a weird bug in it that only manifests under certain settings. I must check if the Tinsley used the same settings, but it occurs to me it probably did. I suppose I could bridge out the serial port and see if I can receive what I send correctly. It could also be that windows doesn't pick up the handshaking pins fast enough and so looses some bits? I haven't dug that deeply into the low level UART implementation in a quite while, but I would have expected that to be firmware controlled. I should also try it with a virtual comm port as opposed to a TCP pipe.

      --
      I have determined that my sig is indeterminate.
    15. Re:Some observations... by DaWorm666 · · Score: 1

      In addition to the modem control signals, USB adapters also really mess up the timing of the signals. Some RS-232 hardware does not use any flow control, and relies on character timeouts to detect end of message. USB ports packetize the data, and can break up the packets in unpredictable places, so that delays can appear in the message, causing the other side to detect an end of message too soon. Also, some equipment uses the control lines such as RTS/CTS, DSR/DTR, RI, and DCD for I/O purposes. In DOS, it wasn't that hard to get somewhat decent timing to create and/or detect signals of specific duration with these pins, using them as essentially free digital I/O. With a USB to serial adapter, especially under Windows, it is nearly impossible to get any precision timing. Add to that another layer of VM, and it just gets worse. How bad this is really depends on the chipset and drivers. I've had more luck with PL2303 based devices than FTDI along these lines, but for some applications, USB to serial just won't work.

    16. Re:Some observations... by cusco · · Score: 1

      Start playing with PTZ cameras and you'll quickly encounter more than "a very few devices". Custom pinouts and bi-directional communications were rule rather than the exception. Just Bosch PTZs have three different pinouts possible, Pelco has two, American Dynamics have a couple more, and there are four major and a dozen minor protocols possible, and three major addressing schemes for daisy chained devices.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
    17. Re:Some observations... by adolf · · Score: 1

      All of which are RS-485 or RS-422, not RS-232.

      Perhaps you should understand some of the complexity of which you speak.

    18. Re:Some observations... by adolf · · Score: 1

      This. I've been doing RS232 since the late 80s, and have only come across one relic that requires more than three wires for basic operation: An old TI SilentWriter thernal teletype that I scored in barely-used condition a few years ago.

      It -needs- DSR, DTR, CTS, RTS, or nothing happens. And, obviously, RXD, TXD, and GND. Getting 2-way chitchat going on this thing with fewer than 7 wires is a complete non-starter.

    19. Re:Some observations... by adolf · · Score: 1

      The "standard" is not interesting here. If his old equipment does not support rs-232 to the letter, then any new communication equipment have to work with that. The problem at hand is to keep using that old equipment - because replacing it might be extremely expensive. You don't replace industrial machinery just because it has a quirk in the rs-232 communication.

      The "standard" is very interesting here, because if the antique device does not follow it to the letter and this creates a problem, then you have justification to create a better solution.

      A MAX232 chip might be part of that solution. A +/- 12VDC supply and some transistors might be a different part of it.

      Whatever the case, if the old gear isn't within spec, you can say "Yeah, boss: It should with with 3.3V input, like EIA-TIA says, but it doesn't.. So we need to get a special interface to make the modern widget work with the old antiquated widget."

      And then you give him a price. And then he writes the check. And then you hook it up. And then you can go back to reading Slashdot.

      *shrug*

    20. Re:Some observations... by cusco · · Score: 1

      True enough. I assumed parent was referring to serial comms in general, as most people don't know that there's anything but RS-232. I didn't until I started working with them. I'm just glad that analog video matrixes are going away, the frelling Vicon matrix was the most frustrating piece of hardware I've ever had to deal with.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
    21. Re:Some observations... by adolf · · Score: 1

      I assumed that when parent said he'd been dealing with RS-232 since the early 80s, he knew what the fuck he meant when he assigned that term to that timeframe.

      You, however, assumed he was an idiot.

      Good luck out there, kid.

    22. Re:Some observations... by cusco · · Score: 1

      Amusing. Haven't been called 'kid' in over a decade.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
    23. Re:Some observations... by adolf · · Score: 1

      Me neither, kid.

  21. aka Terminal Server by tengu1sd · · Score: 2

    When you buy a rack mounted unit that does this, it's sometimes called a terminal server. You can provide network to serial access, enable unique passwords on each device and create access lists. When I managed customer equipment, I used to require a DECserver and modem/phone line for last ditch access. In this case, I had firewall, switch, router and console access. Much of this kit is can be found used or see Vnetek. I understand Cisco also makes comparable product. You can pair this with virtual comm port driver, letting you drive these units from a central location.

    Answer number 2, you need to put a business risk into supporting antique systems. Cost of replacement, downtime to find part vs lost business. Consider stocking in house pre staged replacement systems.

    1. Re: aka Terminal Server by Anonymous Coward · · Score: 0

      I fucking hate dec and their mmj over rj45 bullshit. There are other terminal servers that dont rely on goofy rs232 wiring and offer the stability a dec termserver provides.

  22. USB - serial adapters are cheap and easy to find by Lisandro · · Score: 1

    Just make sure you get one supporting the flow control lines, which most cheapo adapters don't. Most industrial equipment i've worked with wont communicate without those.

  23. 20 year old antique?? by sir_eccles · · Score: 1

    Am I the only one laughing at the thought something from the early 90s is now considered antique?

    1. Re:20 year old antique?? by greg1104 · · Score: 1

      Yeah, I was just blowing dust out of a not easily replaced original IBM PC from 1982 at a manufacturing site last week, and I sure wouldn't call even that antique.

      Serial ports are a pretty easy thing to deal with. In PC land it's stuff on old ISA cards that are the real nightmare. One of those is what's keeping that PC alive, and we can't even replace the system with a newer model because the software is only timed right at 4.77Mhz. I'm just glad I don't have any MCA bus hardware to worry about anymore.

    2. Re:20 year old antique?? by plcurechax · · Score: 2

      Am I the only one laughing at the thought something from the early 90s is now considered antique?

      Ha, darn kids probably can't fathom the idea that there were real computers in use by companies and organizations before those flashy single chip microprocessor based PCs were all the rage.

      No mention of minis like PDP, VAX/VMS (RIP DEC), CDC Cyber (12-bit bytes), Data General, or IBM & Unisys mainframes.

      Thankfully there was at least mention of Zilog's Z80, terminal servers, RS-422/485, and green screens.

      Bunch of whiny kids. Next they'll complain their first automobile or hand-me-down cathode ray tube colour television doesn't have WiFi and a web browser. Get old my lawn.

      Heck, I develop, maintain, and extend software that's over 20 years old. I've worked on software written before I was born. Software approaching 50 years old is more like what I would consider ancient. Like much of the insurance and banking industry in Europe and North America.

      So. my serious bit: Learn about industrial computer market, products, and vendors. Use industrial USB to RS-232C converter in most cases (where timing or bit banging isn't used), not the $5 USB-to-serial adapter from the big box electronics store. Take a class from your local community college if PLC or ladder logic is relevant to your environment.

    3. Re:20 year old antique?? by techno-vampire · · Score: 2

      Heck, I develop, maintain, and extend software that's over 20 years old. I've worked on software written before I was born.

      The software JPL uses to navigate all of its space probes was written by Dan Alderson, who died in 1986. Why haven't they replaced it? Better yet, ask why should they replace it when it works so well. So far, the only failure it's had was when somebody screwed up a measurement conversion, and you can't blame the software for that!

      --
      Good, inexpensive web hosting
    4. Re:20 year old antique?? by techno-vampire · · Score: 1

      Correction: he was forced to retire because of failing health in 1986, and died in 1989.

      --
      Good, inexpensive web hosting
    5. Re:20 year old antique?? by tibit · · Score: 1

      It should be eminently doable to software-simulate it on modern hardware. Simulate everything including custom hardware they have.

      --
      A successful API design takes a mixture of software design and pedagogy.
    6. Re:20 year old antique?? by wolfguru · · Score: 1

      Considering that I built an altair 88 from a kit, a kim1 from the board and sourcing parts myself (anyone rememeber hamilton-avnet?) and both repaired and modified TRS-80 (article on putting the full 48k of RAM in the keyboard with a circuit I developed published in 80 Micro back then) I find the idea that stuff that was developed LONG after I started with these as antique tobe humorous as well, but since the definition as far as vehicles for "classic" is 20 years and "antique" is 25, it fits :)

    7. Re:20 year old antique?? by Anonymous Coward · · Score: 0

      This is why a new setup should use open-source software. Because - 20 years later when you are replacing broken PCs and the industrial device manufacturer is long gone, you simply hire a code guy to port the 16-bit software to your current 64-bit platform. A proprietary driver / control program should be a "don't buy" indicator, when buying expensive gear that is likely to outlast the control computers by decades.

      Others here want to force companies to maintain old products forever. It is much better to not depend on that. You may not be able to force such maintenance - and even if you make it a law, the company could go bankrupt anyway. Don't set up a factory with eternal dependencies that is so easily avoided. Just demand source code. A maintenance contract may be cheaper right now, but in the far future, they may disappear or declare "end of life" for the product. With specs & source code, eternal support will never cost more than hiring a programmer for a while.

    8. Re:20 year old antique?? by cusco · · Score: 1

      Place that I used to work had a knee-high pile of 386 laptops, as the control software for their radio tower would work on any other CPU and the manufacturer had been bought up so the software wasn't supported or upgraded. For a long time Turtleware smart meter reading systems wouldn't run on a CPU faster than 866 mhz (and complained about that).

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
    9. Re:20 year old antique?? by DutchUncle · · Score: 1

      When I was working on phone systems, one of the issues was the required-by-law amortization period. We were making brand new interfaces that had to connect to 40-year-old systems buried under the street somewhere.

      As I see it, the assumption that everything is disposable is part of the problem. People seem to forget that cars, buildings, roads, etc. do NOT get replaced every 2 years like cellphones. /.ers tend to live on the leading edge of technology, and that technology often has some interface in the real world that is NOT leading edge.

  24. yes, me too by Anonymous Coward · · Score: 0

    A business critical piece of hardware that needed a custom 8 bit ISA card and Win3.11 to control it. Made sure I had multiple good images of the hard drive because the original floppies were lost. I was burning through old PCs that I kept in storage but found a supplier of 486 computers with ISA slots, so I bought two that I kept in a ready to go state. Thankfully that one custom card was rock solid.

    Eventually (last year) the 25 year old machine broke and the company had to pony up the $50,000.00 for a new one which is also much more functional.

    We also use lots of RS232. PCI cards from Comtrol have been the most reliable for us.
    There are lots of USB-Serial cables, most suck. I only buy from FTDI.

    You don't need Win95 to read floppies; USB floppy drives work fine. The real problem is that old floppies are almost guaranteed to be unreadable. As soon as you can copy all your floppies onto cd-rom. I use linux to make floppy images "dd if=/dev/fd0 of=floppy.img". Then they can be mounted, read, stored on cd-rom, used to make new floppies, etc.

  25. Re:RS 232 to ethernet adapters - Security warning by Animats · · Score: 2

    RS232 to Ethernet devices have a big security problem - they can expose your RS-232 device directly to the Internet. Many RS232 to Ethernet devices will talk to anything that tries to talk to them. Some have built-in minimal web servers for configuration, and those make it easy for attackers to find the device.

    Industrial automation people try to have isolated Ethernets for these devices. But then something comes along that needs to be on the isolated net and also needs to talk to something in the outside world. Then someone reconfigures the isolated net to connect to the outside world. Everything still works fine, until somebody breaks in.

    This used to be more of a theoretical attack, but there are now search systems out there finding and cataloging control devices reachable on the Internet.

  26. Virtual Machines that support the older OS's by Anonymous Coward · · Score: 0

    Virtual machines would provide the bridge you need to consolidate the processing power on the newer machines with antiquity. You can even network a DOS VM. I love the old stuff, making what was.....work.

  27. Re:RS 232 to ethernet adapters - Security warning by inasity_rules · · Score: 1

    100% of RS232/RS485 to ethernet adaptors I have worked with have had at minimum IP level filtering. Trivial to defeat, I know, but most sit on networks with no direct connection to the internet. And honestly if you've got a hack on your subnet you have bigger problems than the fact that he can access your unknown (to him) PLC. Like the fact that he can own your SCADA and break things without having to understand ladder logic in the PLC.... Worry about your SCADA first, and your conversion devices second....

    --
    I have determined that my sig is indeterminate.
  28. One thing to try by kilodelta · · Score: 1

    Is see if the PLC manufacturer supports newer hardware/software. I went through this in a few places. Ancient systems in place to do a specific function.

    But where I could I replaced them with more modern hardware and software. Sometimes I'd have to write the software myself but it got done.

  29. What about a terminal server? by Vrtigo1 · · Score: 1

    What about using a terminal server for RS232 stuff? There are plenty of them out there that are designed to give you a console connection to network gear. Seems like you might be able to hack something like this to make it work. Essentially you would load a driver on a PC that makes it think the serial port on the terminal server is a local RS232 port.

  30. what's the problem? by DogDude · · Score: 1

    I don't understand the question. Why is running hardware via serial ports a problem? Serial ports have been included on almost every PC made for the last 30 years. I have plenty of serial port based hardware. You plug it in. There are literally billions of computers on the planet with serial ports.

    --
    I don't respond to AC's.
    1. Re:what's the problem? by cusco · · Score: 1

      Most laptops and a lot of desktops made in the last five years don't have serial ports unless you pay extra for them at purchase time (and for laptops you're limited as to what models are available with serial ports). Interestingly enough, most of the servers that I see still have serial ports on them. Many times I've had to talk on-site staff through dismounting a switch and carrying it back to the server room to plug into a machine, as no one else on site had anything with a serial port.

      --
      "Think about how stupid the average person is. Now, realise that half of them are dumber than that." - George Carlin
  31. Scavenging.. by technos · · Score: 2

    I had to support a manufacturing company 15 years ago that was using (at the time) 15-20 year old gear. I did it by scavenging and making it myself. Robot needs a new SSDD floppy drive? Flea market Commodore. RAM in the Soviet S100 clone going bad? Take apart a broken synth. Winchester drive controller going tits up? Drive around and look at all the junk bins of every computer shop in the county. Need to move a bit of kit but now the non-standard 45-pin cable is too short? Clip the ends off and Radio Shack them to RS-232. I also swapped a lot of gear around; The DOS machine that was used to program one robot was gradually upgraded from an 8088 machine to a 486 as I stole parts from it to keep the CP/M-86 one running.

    The other thing I did a lot of was preventative maintenance. Blow out the dust, check the power supply, clean the disc drive, make sure everything is well seated. Switches got lubed, cables checked for faults, and media replaced.

    --
    .sig: Now legally binding!
    1. Re:Scavenging.. by Anonymous Coward · · Score: 0

      You sir remind me of two jobs ago - I spent 5 years as a network admin/programming unit of work for a local manufacturing firm. I spent many hours going through old equipment bins, getting bits from here and there and making friends with my corporate counter-parts so when other production plants scrap their old equipment I get notified. So many hours late at night diving in wooden crates heading off to Asia somewhere to be "scrapped". These guys were cheap to (and paid me like that as well :P); HP930C no longer printing properly? Take printer, dump in a tub and clean out with running water and air dry and lube up!

      Floppy disk logic board dead? Find ones whose drive motors are dead - you know the ones people like to throw out? Swap! Fixed!

      Now I am purely a software grunt - I do miss my hardware days and the challenges where you HAD to be creative! Rocket Port serial cards with a saving grace for me as well!

      Tes

  32. one solution: piles of old crud by swschrad · · Score: 1

    the way they supported old lines at (major environmental controls company you've all heard of) was to keep all the old 286 machines and line printers in a back room the size of an 80s living room, and repair, repair, repair. label printing for boxes on the production line was old Printronics machines, which was the big headache.

    --
    if this is supposed to be a new economy, how come they still want my old fashioned money?
  33. All this is still possible on modern hardware... by cianduffy · · Score: 1
    ...assuming your software can support being run on a recent 32 bit Windows properly

    My employer has only recently taken off sale a re-shelled 1980s Object Pascal application that needed direct serial and parallel access and we were able to provide machines that handle it and the various peripherals perfectly well. Intel Reference boards (which they're withdrawing for PCs sometime soon unfortunately) and Startech PCI-E cards for the ports. I think the boards even have a floppy controller although the need for them was finally removed by an upstream supplier buying some CD burners a few years back.

    Something written to work on 1987 grade hardware can sometimes run faster than intended on a Core i7, though.

  34. Legacy systems maintenance and upgrade plan by Anonymous Coward · · Score: 0

    I am running into the same problem supporting legacy systems. Finding older systems that will support the hardware you need, i.e. EBay is what we use to find older control systems and other hardware. I have found some software does not work well in a virtual machine environment. The original software sometimes needs particular OS (i.e. older dos versions or specialized OS versions). Hard drives fail and can be restored from Ghost images. Installing obsolete and unsupported software and software keys are sometime difficult to impossible to reinstall, not to mention the data lost. Serial ports are still available but ISA card slots are obsolete and are hard to find on new hardware. There are repair depots that will repair just about anything. Cost and downtime are a big problem if the parts can be fixed.

    Best suggestion is to start to plan an upgrade to newer controls. There will be a time that some older hardware will fail and you will not be able to fix it. You will be forced to upgrade hardware immediately. If you have a plan to upgrade, the down time and cost to fix are substantially less in both investment cost and downtime. The older programs can be rewritten or converted to newer controls. The programs can be rewritten and ready to install when needed. This upgrade can save a lot of machine downtime. We have used this upgrade model more than once. This has limited our downtime to a couple of days for wiring and troubleshooting. Emergency programming of PLC and operator interface panels are at best very expensive on an immediate time frame. Learning new programming languages can take a long time to program efficiently. Extended machine downtime can be more costly than planned upgrades. Our management has been more open about planned upgrades after the first major downtime disaster.
    Good luck in the trenches
    Willie
    .

  35. Emulator companies by Anonymous Coward · · Score: 0

    There are companies that specialize in emulating "legacy" hardware systems. This usually means VAX/Alpha/HP3000 machines. But there is no reason it couldn't also be old PCs running DOS. The company I am most familiar with is Stromasys, but there are others as well.

  36. Re:RS 232 to ethernet adapters - Security warning by LordLimecat · · Score: 1

    Trivial to defeat,

    Only if its UDP, and only if you dont care about return traffic.

    Spoofing an IP is really only useful when you are flooding a target and really dont care about bi-directional communication, or if youre punching a hole in a firewall with the help of an intermediary server.

  37. Industrial Ethernet Book by D1G1T · · Score: 3, Informative

    One of the few marketing catalogues I actually use. Sometimes flipping through a book can show you products you didn't know existed. http://www.iebmedia.com/

  38. Buy lots of X40 series ThinkPads by Enleth · · Score: 1

    They are cheap, almost indestructible, small, low-power and ancient enough to comfortably run any legacy application out there, even under pure DOS. Should one break (which is, in itself, rather unlikely even for heavily used units), full service manuals are available and having lots of them means easy replacements. They have traditional, hardware RS232 and LPT ports, one of each. As long as you need a single machine for a single PLC, X40s should be one of the best tools for the job.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
    1. Re:Buy lots of X40 series ThinkPads by Anonymous Coward · · Score: 0

      x40 series used non standard sized hard drives... you'd be better off using x30 series thinkpads.

  39. Support for old software should be required. by pubwvj · · Score: 1

    Vendors, such as Apple, Microsoft, etc, should be required to continue to support older software in their new hardware and OS releases.

    There is no excuse, except greed, for them to drop support for Classic, Rosetta, PPC, etc. The new hardware, even a lowly iPodTouch, can easily emulate the old systems by orders of magnitude. There is a tremendous amount of not just mission critical software such as the above article discussed but also simply good software like what came out of the hay-day of educational software programming during the 1990's.

    Apple and Microsoft have committed cultural and intellectual crimes by dropping compatibility such that older software can't run on the new OSs. They have HUNDREDS OF BILLIONS (yes, I'm shouting) of dollars and could not just afford but should be required to provide backward compatibility.

    If they plan to stop providing backward compatibility then they should be required to give up all copyright, trademarks and patents related to the hardware, OS and software and provide full documentation five years before they sunset it so that others can pickup the software, OS or hardware.

    1. Re:Support for old software should be required. by DogDude · · Score: 2

      Windows maintains the best backwards compatibility in the industry. Apple, the worst. Why you'd lump these two together is beyond me...

      --
      I don't respond to AC's.
    2. Re:Support for old software should be required. by Anonymous Coward · · Score: 0

      Apple maintains a site with lots of OS softwear going back a long, long way, free. So as long as your hardware works, you are OK. As for PLCs, the software should be maintained by the manufacturer. In my experience, terminal servers are a good, OS independent, solution, provided the manufacturer has kept their software accessible and/or up to date.

  40. Windows98 VMs by Deideldorfer · · Score: 2

    I have two Windows98 virtual machines to support equipment requiring crusty old modems. They have been running trouble free for several years now.

    --

    Power off before disconnecting connecting connector. Seen on a cash register
  41. use a moxa 6150 by Anonymous Coward · · Score: 0

    we use these at work

    http://www.moxa.com/product/nport_6150.htm

    ethernet to serial they work very well for us

  42. I could also use a hand with a quick followup ? by LordNinja · · Score: 1

    I am actually working with such systems right now! I've been trying to remote into an HP 1000 unit over serial but can't get the hyper terminal settings right to send the break command over and get going, it call comes out as corrupted. What has your experience been with this? We have no documentation for the manroland folks/ HP so I've been digging around.. happy to get communication back over MUX 0 to even see nonsense coming back from the terminal... Perhaps I can't use hyperterminal or ADVLINK so... I was very frustrated and happen to see your post! What are the odds? I was hoping for some terminal settings such as flow control etc for these things but have had no luck! Mostly we have been trolling around online to find legacy vendors that have amassed the stuff, to respond to your question.

    1. Re:I could also use a hand with a quick followup ? by tibit · · Score: 1

      Get an oscilloscope and look at it.

      --
      A successful API design takes a mixture of software design and pedagogy.
    2. Re:I could also use a hand with a quick followup ? by Anonymous Coward · · Score: 0

      Just a thought - maybe a different terminal program? The Hyperterminal program included with Windows is pretty bad. It seems to work [best] only on plain-jane terminal interfaces.

      I've used PuTTY and TerraTerm with better success.

  43. PLC? by Anonymous Coward · · Score: 0

    Public Limited Company? Define your acronyms, moron.

    1. Re:PLC? by greg1104 · · Score: 1

      If you are too dumb to know what type of PLC is implied by the context, the moron arrow is pointing at you here.

  44. WTF! Shorting flow control pins! by MasterOfGoingFaster · · Score: 1

    I have a few hand wired 9 pin to 25 pin connectors with the CTS-RTS and DSR-DTR pins shorted together as they can simplify your life immeasurably.

    Better be careful about shorting hardware flow control pins. I've seen CNC mills where someone did that. (Google "CNC Drip Feed"). The feeding PC didn't know the CNC controller buffer was full and kept sending data. When the CNC controller began accepting data again, it had missed hundreds of lines of code. The move commands drove the cutting tool into a bad place and people almost got hurt.

    Your advice to learn RS-232 was excellent. But one must understand the flow control issues before you can know how to cable it.

    --
    Place nail here >+
  45. Question - printing - is it Motorola 68000 by Anonymous Coward · · Score: 0

    My understanding is that the "web press" industry was / is almost entirely controlled with hardware based on the Motorola 68000 or 68030.

    For those throwing out all kinds of Wintel solutions, the vast majority of them, in my experience FAIL the bit-endian conversion on a regular basis.

    This is a question, not an answer, but one which I think could use some clarification.

    IF it is Motorola 68000, yep you are in a world of hurt since Apple has tried repeatedly to kill that "line" out, regardless of the fact that I still provide support to people still running farms and small businesses on Apple IIe hardware. Replace the power supplies every five years and they just do not fail to simply work.

  46. Elan 104 NC by Anonymous Coward · · Score: 0

    Elan 104 NC works with DOS and QNX and many flavor of Linux, comes with many Serial ports, USB, HDD, etc.

    Industrial strength hardware, few years ago, they were much more expansive than a traditional PC.

    http://www.farnell.com/datasheets/59590.pdf

    Previously owned by Arcom Control Systems Inc., now owned by EuroTech inc.

    http://www.eurotech-inc.com/

    This one is still being sold among others with 2 working serial ports:
    http://www.eurotech-inc.com/single-board-computer-geode-pc104-cpu1233.asp

    Otherwise you can use a classic USB 2 Serial Port converter.

  47. Ebay - I'm not kidding either. by Anonymous Coward · · Score: 0

    I've found lots of old hardware on ebay and it saves the bank too. The hardest problem I had was convincing Accounting to create an ebay account.

  48. I have exactly this problem.. by the_rajah · · Score: 1

    I occasionally have to interface with Square-D SyMax PLCs from the early 80s. We still have equipment at customer sites that's using it. The software we have to do the programming uses software timing loops so I have to use a 386 or early 486 laptop to run it. I have this very old 386 laptop with an 80 Meg hard drive that still hangs on and boots. I've warned my boss that someday it won't boot and we'll be done.

    --


    "Do the Right Thing. It will gratify some people and astound the rest." - Mark Twain
    1. Re:I have exactly this problem.. by tibit · · Score: 1

      You need to reverse engineer whatever runs on those PLCs and implement using something contemporary and off-the-shelf. Pronto.

      --
      A successful API design takes a mixture of software design and pedagogy.
  49. Re:RS 232 to ethernet adapters - Security warning by tibit · · Score: 1

    An RS232-to-Ethernet device is should be essentially a hardened Raspberry Pi running a modern Linux, configured for security. The communications should be established using ssh configured for login only using known keys. This can be set up relatively easily to be pretty foolproof and can probably beat 99.99% of commercial products out there when it comes to security. It's really not that hard.

    --
    A successful API design takes a mixture of software design and pedagogy.
  50. Serial solutions by mknewman · · Score: 1

    I would go with one of the Ethernet based terminal server solutions. They are reliable and well proven.

  51. Re:RS 232 to ethernet adapters - Security warning by inasity_rules · · Score: 1

    Good point... You would need two way comms to get into most PLCs...

    --
    I have determined that my sig is indeterminate.
  52. Who says print is dying? by Anonymous Coward · · Score: 0

    It's sounds like things are going well there.

  53. x86 system on a chip? by snooo53 · · Score: 2

    It seems like if someone were to create a small 486 single board computer, similar to a Raspberry Pi, for under $60 or so, there would be an incredible market for it. For running everything from industrial equipment to a DOS/Windows retro gaming rig. Are there any cheap systems like this out there? I've seen lots of cheap ARM based boards but haven't come across any x86 ones.

    --
    The sending of this message pretty much inconveniences everyone involved.
    1. Re:x86 system on a chip? by pnutjam · · Score: 1

      The problem is they aren't aimed at hobbyist/education, so they are expensive instead of cheap.

    2. Re:x86 system on a chip? by Hognoxious · · Score: 1

      But it would have to work *identically* to a genuine vintage 486. Otherwise, any crufty techniques in the old software - acting directly on the hardware rather than making a "proper" OS call - wouldn't work.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  54. dude, if you are working for a by Anonymous Coward · · Score: 0

    "large printing firm", you might be in an antique world

  55. Bait and Switch by tmjva · · Score: 1

    I'm conceptually surprised by the title, the author complains about supporting antique software, then complains about hardware issues.

    --
    Tracy Johnson
    Old fashioned text games hosted below:
    http://empire.openmpe.com/
    BT
  56. Not antique by Anonymous Coward · · Score: 0

    RS232 is still routinely used in NEW PLC projects in modern factories. If you think this is "antique" you don't know much about the real world.

  57. I miss serial ports, sort of by JimtownKelly · · Score: 1

    Before embedded web pages became de rigeur, configuring network equipment seemed so much more mysterious. And billable. I used to love the money received from tapping into customer's serial ports, but that's about all I miss.

    --
    -- Jimtown Kelly
  58. Virtual Machines by Anonymous Coward · · Score: 0

    I work in the exact same industry as you. I ended up getting our maintenance department mid range tough books with all the extra ports then I run virtual machines for xp down to ddoes. Works like a charm. If you need legacy ISA support you're SOL. You just need to tell everyone they have no choice but to upgrade. I did it and held my ground and got them to finally move on some of the testing equipment.

  59. IT didn't choose this by rhalstead · · Score: 1

    IT didn't choose this, or at least not in any case I'm directly familiar with. Industry as a whole has a huge number of PLCs which in general are programmed internally with ladder logic which interfaces with very old systems. These are the process controllers and flow controllers used in the chemical industry as well as industry in general.. As long as they work and are supported by the manufacturer or are simple enough to repair in-house, they will remain in service. I know of many systems still in service that were installed before I quit and went to college in 87. Those would be a minimum of 26 years old. If it works, don't fix it. Then you have Chromatographic integrators interfacing with data collection systems which can be another PITA

    1. Re:IT didn't choose this by Hsien-Ko · · Score: 1

      and using DOSBox for them, a emulator designed for playing DOS games and not for precision-requiring industrial applications, is purely irresponsible and reckless.

    2. Re:IT didn't choose this by pnutjam · · Score: 1

      Please tell us the right way to do it.

  60. Windows XP on a virtual machine. by Anonymous Coward · · Score: 0

    I am a PLC engineer, On the older systems, Siemens S5 I have found that running windows XP on a VM with the Helmholtz usb cable works pretty well. Most if not all of my dos applications run in windows XP. The only stumbling block I can see you running into is if you have some old GE series six plc's floating around. If I recall correctly they require a full-size communications card that plugs into an ISA slot. Given you can still get Mainboards with ISA slots on them I am not sure how more modern systems would support those 1970's and '80's hardware.

  61. Litigation industry here by Anonymous Coward · · Score: 0

    Hi.
    I'm really lucky to have access to (generally) modern systems, but I feel my post is still relevant due to the nature of some of my work.
    Often times, a matter (most of what we handle is copyright disputes) will have backup tapes. When it does, they are usually pretty old, unless the data is being provided by a company that is decently funded or actually cares about keeping records.
    On more than one occasion, I've been given boxes of very very obsolete stuff.

    There are a couple of ways we've handled this in the past. We have a guy who scours ebay every so often, and goes to various places in the state (and a few out of state) to look for *old* stuff. One time he scored a very old (late 80's) QIC tape drive. People wondered why we'd waste money on that, but about a year later we got a a really old pre-DLT tape that was exactly what we needed it for.

    It's not a favorable solution, but it's the best one we've come up with: Acquire old hardware whenever possible. Especially when it's in half-decent condition.