Slashdot Mirror


Will the Serial Console Ever Die?

simpz writes "Will the serial port as a console connection ever be displaced — especially for devices such as switches, routers, SAN boxes, etc.? In one sense it's a simple connection. But it is the only current port that, in order to use, you need to know about wiring / baud rates / parity, etc. It has non-standard pinouts. And it is becoming too slow to upload firmware to dead devices, as the firmware updates get larger. Also, the serial port is rapidly disappearing from new laptops — which is where you often really need it, in data centers. Centronics, PS/2, and current loop are mostly defunct. Is there any sign on the horizon of a USB console connection?"

15 of 460 comments (clear)

  1. It just works by mtmra70 · · Score: 5, Insightful

    I upload firmware and program various devices at work via USB or TCP/IP - and it is great because the connections are fast. However, when something goes very wrong with the devices, the RS232 port always works. Also, being able to get serial data just by listening to a couple pins is far easier than trying to deal with USB connections/drivers you have no clue about.

    When it comes down to it, serial works, its easy and it's a life saver.

  2. No. by Dr.+Evil · · Score: 5, Funny

    It will never die. It will be around forever. Technicians, thousands of years from now will have to interface with wireless psychic rs232 adapters so as to configure their Cisco hyperdrives.

  3. Re:You can buy a serial-to-usb converter for $15 by Anonymous Coward · · Score: 5, Informative

    Also there are single chip rs232 to USB solutions available for a few dollars. They are used in lots of things these days. They are great for when the device your making only needs a simple serial port connection to a pc or other device. Arduino uses one on their boards. I cant really think of any other examples at the moment. But I dont see serial console dying anytime soon, its still really useful to have around.

  4. RS232 port utility by Announcer · · Score: 5, Informative

    I work for a small electronics manufacturing company, http://www.westmountainradio.com/
    and we make a number of devices that use the serial port. In recent years, we had to start including USB-serial adapters with every device for the very reason mentioned: Many newer computers simply do not have RS232 ports anymore.

    The RS232 port is a very convenient way to connect with a number of peripheral devices that don't need much bandwidth. In most cases, 9600 BPS is plenty. You also have the "handshake" lines which can be used to toggle an external device on or off. We use it to drive an LED and an opto-isolator to key a ham radio transmitter, among other things.

    As long as there are low-bandwidth, human-interface devices, there will still be SOME use and purpose for the RS232 port.

    --
    Willie...
  5. Easy to design in by jimmyswimmy · · Score: 5, Informative

    I still design lots of equipment with serial interfaces inside. It is much easier to connect to a low-end microcontroller which may barely have even a single UART. And even for a higher-end processor, it's so much easier to build the interface. Developing a USB interface requires a pretty detailed understanding of USB - selecting endpoints, which transfer protocol to use, etc - so there's a big software investment and often a significant additional hardware investment to implement a USB interface. Serial is often damn close to free, so easy that it's a no-brainer to put in. And for ethernet devices like switches I can't imagine why anyone would want to bother with a USB interface when you already have 8/16/48 copies of an ethernet interface available, just plop down yet another copy of the ethernet PHY design and make that your console interface.

    Point is - serial's EASY to give you, so you're gonna keep getting it for a while.

    --

    Just my $0.55 (US inflation, 1774-2008, for $0.02)
  6. Re:Simplicity by SysDaemon · · Score: 5, Funny

    Spitting Image thought it was fun. http://www.youtube.com/watch?v=CDlj0jBtYmQ - back in '85

  7. No by dindi · · Score: 5, Informative

    Serial is cheap, simple, works really well, and you can hook up 15+ year old equipment to it with no problem.

    Is it slow? Not really, but firmware updates should be through TFTP or HTTP by now anyways for larger files.

    Complicated wiring? RX-TX TX-RX, common ground.

    Also RS-232 has many brothers and sisters like:
    RS-422 (a high-speed system similar to RS-232 but with differential signaling)
    RS-423 (a high-speed system similar to RS-422 but with unbalanced signaling)
    RS-449 (a functional and mechanical interface that used RS-422 and RS-423 signals - it never caught on like RS-232 and was withdrawn by the EIA)
    RS-485 (a descendant of RS-422 that can be used as a bus in multidrop configurations)

    On the USB console: yeah, you can have a USB console. Most like there will be a FTDI chip, which will make your USB into a serial connection. Want an example? Arduino.....

    By the way, the post is kinda mis-worded.... USB is a serial bus, so a USB console is technically a SERIAL console :)

  8. Re:Simplicity by darronb · · Score: 5, Informative

    Simplicity really is the key.

    Just a few days ago I hacked together a 9600 baud serial output in like an hour to help me debug an embedded microcontroller design using only a single IO pin and a crude spin-delay based bit-bang function. It worked great, and I found the trouble.

    There's no way you could add something like USB nearly as easily. FTDI makes some great chips / cables, but at the microcontroller it's still TTL-level serial IO.

    Plenty of microcontrollers have lots of extra serial IO ports. Many are adding USB ports as well, but it takes an absolutely stupid amount of firmware to make USB work.

    There are several microcontrollers I can do USB for, since I've done it before. However, it takes weeks of work to implement USB the first time on any new microcontroller. It's usually really prone to bugs, too. USB is just too complex for the simple dumb pipes that most embedded developers need. On top of that... most of the time the micro vendor's USB firmware examples just barely work, and aren't designed very well so they're very hard to modularize and include in another design.

  9. Re:It should have been phased out... by Anonymous Coward · · Score: 5, Interesting

    Screw that. I do programming for embedded systems and serial is absolutely essential. Even the simplest bootloader supports standard serial. Hell, you can write an implementation of rs232 in an fpga in about 20 minutes. Its ubiquitous because requires no real software to make it work...and when you have barely any software working on a system, that uart can be the difference between hours and weeks of debugging.

  10. Offshore Survey Industry by ss_teven · · Score: 5, Interesting

    I work in the offshore survey industry (oil/gas industry), and 95% of products to date still come with serial ports. They are critical for our purposes, and onboard com ports are a must for timing critical jobs such as multibeam bathymetric surveys.

    Current project im working on we are using Moxa multiport serial boards w/ 32 serial ports on this pc with around 25 currently inuse for IO. (Historically used Digi boards but they were awful for timing (relatively!), 30ms delay compared to the near 0ms on the Moxa units.)

    Simple to use, easily available, and cheap. Almost all the devices I work with use standard parity/stop bits etc, just varying baud rates, which is easy enough to remember.

    --
    like a fox..
  11. Re:You can buy a serial-to-usb converter for $15 by russotto · · Score: 5, Informative

    It depends on the serial-to-usb converter chip used. Some don't do a good job of replicating all the characteristics of the port. Best advice is try different types until you find one that works.

    The biggest problem I've found even with the good ones is timing sensitive stuff. In some OSs (Linux included), when a synchronous write to a serial port concluded, pretty much all but the last character was already out on the line. With a USB serial port, the data is probably buffered on the device; it will go out many milliseconds later (because serial is slow). So if you've built timeouts into your code, they're all wrong now.

  12. Re:Serial Ports.. by darkpixel2k · · Score: 5, Informative

    Then you are looking at old catalogs my friend.... no, serial is not included on every piece of hardware.

    No, that little RJ45-looking jack labeled 'Console' on most newer Cisco and HP gear is actually for a serial to RJ45 cable...

    --
    There's no place like ::1 (I've completed my transition to IPv6)
  13. Re:Serial Ports.. by Anonymous Coward · · Score: 5, Insightful

    Other than cisco routers and switches

    Are you serious? The only examples anyone on Slashdot can find seem to be routers and switches? The reasons RS232 isn't going away is because an awful lot of industrial automation equipment (large and small-scale) still uses it. Why? Because a) all of the existing industrial automation equipment uses it, so new equipment is designed to be compatible with existing interface and control systems, b) it has proven itself to be incredibly reliable over the years, c) it's cheap (in terms of money, but also in terms of the amount of supporting hardware required). Also, while it may not be fast enough to transfer huge firmware images or run high-bandwidth stuff like video over, it's fast enough for what it's used for. If a firmware update takes 5min to do on a $100,000 piece of factory equipment, so what? The company probably spent a month planning for the upgrade, and will spend a week testing it after the update to make sure it still meets performance and safety requirements before re-deploying it anyways. There are billions of dollars invested in RS-232 by some highly conservative companies that don't change things on a whim, when a complication arising from an unnecessary change could cause 5-figure-per-minute damages or loss of life.

    Why is RS-232 still around? Because it ain't broke, and it don't need fixin'!

  14. Re:You can buy a serial-to-usb converter for $15 by Sponge+Bath · · Score: 5, Informative

    That is defective design. Receive sensitivity for RS-232 is +/-3V so the signal is within spec. There are plenty of RS232 and RS485 devices that work off 3.3V using integrated charge pumps, and this device requires 3.6?. Double fail! I bet you were pissed off when you figured this out ;-)

  15. RS232 is fee-free by Andrew+Sterian · · Score: 5, Interesting

    From a device manufacturer's point of view, RS232 is free to implement. No special drivers are required on the host.

    Now, for USB, you have to either pony up $2000 PER YEAR to the USB implementers forum to get your own VID/PID and distribute a driver to your customers (and deal with the resulting customer service issues) or add a chip from FTDI (or similar) and piggyback on their VID/PID but then ask your customers to download and install a generic driver that does not specifically identify your hardware.

    Gimme RS232 any day.