Thursday, May 21st, 2009

Math, astrophysics, and humour

Quite some time ago, I read a humourous piece about the mass of Pluto. The writer decided to collect the estimates of Pluto's mass over the years, assume that they were all, in fact, correct, and apply a curve fit to their values over time. He came up with some sort of a sine function to an irrational power. He went on to say that the sine function would pass through zero some year hence, and then become negative. And he pointed out that a negative number to an irrational power yields a complex number. And gleefully added something to the effect that "while this idea may be repulsive to some, Pluto will be repulsive to everything.". Sadly, I don't remember where I found this essay, and the usual array of search engines comes a cropper.

Musing on this somewhat abstruse bit of humour, I recalled the recent ballyhoo over the IAU no longer regarding Pluto as a planet, and started to wonder. Was this theory actually correct, and Pluto is indeed shrinking? Are they trying to soften up the blow for when Pluto either vanishes in place or, repelled by the Sun, scoots off into the eternal darkness, never to be seen again?

(5 comments | Leave a comment)

Sunday, April 26th, 2009

Wiring standards

Some time ago, I realized I was taking a lot of time finding, making, and debugging RS-232 connections and cables. After some thought, I decided to simplify my life by using a system of modular connectors and cables, and adaptors to various connectors and pinouts. I found that 8P8C (oft called RJ-45) to DE-9 and DB-25 male and female connectors were easy to find, affordable, and available in a variety of colours. I rounded up a bunch of them, along with a spool of 8 conductor silver satin cable, matching crimp-on connectors, and a crimp tool. The tool also cuts and strips the wire, so making up a cable of any length is quick and easy. Then popping on the right adaptors would yield a cable with whatever characteristics I needed at the moment.

The missing piece of the puzzle was how to pin out the connectors. At the time, I didn't find a lot of information on existing standards, other than a mention of one system that allowed use of a straight through cable to make pin-for-pin connections, and a rollover cable for null modem connections. Thinking on this, I decided it was not for me, as it would require multiple ground connections, Y connections, or some assumptions about the characteristics of the equipment to be connected.

I therefore decided to roll my own. Since ordinary 6P4C modular phone plugs will mate with the 8P8C jacks (albeit mashing on the wires a little much), I wanted to allow use of phone cables as patch cables as well. Some such phone cables only contain two wires (the center pair). Therefore, I elected to arrange the signals so even such wires would yield a useful (if minimal) link. So I made ground and TX the center two. Another wiring of the adaptors makes them ground and RX, for a one-way null-modem cable. The next two out got RX and DTR, so a common 4-wire phone cable can provide two-way connectivity, along with a signal lead. Working outward, I continued to add signals, in what I considered a logical order of precedence.

I shared this wiring with several friends, including [info]rmd, who published it on her site as well. I figured the more people who used my scheme, the more convenient it would be. The document is still available on my web site.

Fast forward to today. I was looking up pinouts for Cisco console connectors, thinking I could just make an adaptor for that (Cisco uses 8P8C connectors for the console connection on many of their products, and uses them with rollover cables and adaptors, or all-in-one cables to connect to DE-9 serial ports).

I found that, over the years, a few different standards for this sort of connection had emerged. Cisco's scheme, documented here by a Zonker that is apparently not [info]rmd, uses two ground leads in the center, and a fairly symmetrical pinout around it. Another scheme, also based on rollover cables, is the Yost one, which became fairly popular when it was published in a Unix System Administration Handbook. Dell had their own bizarre scheme for RS-232 over 6P4C.

Today, there's actually an international standard for this sort of wiring. It's EIA/TIA-561, often referred to as "RS-232D". How do you think it is wired? It doesn't use up multiple wires for ground and all signals are straight through. In fact, it looks very like my old scheme, although the pinouts don't match exactly. I assume the thinking behind it is similar. I am rather pleased with the indirect vindication. However, I'm left with the decision to just keep my existing adaptors the way they are, or switch them all around to match the new standard (and place a note on my web site explaining the change).

(3 comments | Leave a comment)

Saturday, April 25th, 2009

But is it cool?

They've been testing the fire alarms at work lately. For hours on end, there will be bouts of an ear-splitting screech for 1-15 minutes at a time. Most of the folks rounded up earplugs. But I wanted more. Fortunately, the Peltor Solution II hearing protectors/headphones that [info]fizzygeek and I take to auto races were in the trunk. So I rounded up them and the iPod, and replaced the shriek of the fire alarm system with tunes of my own choosing. The folks at work were impressed and amused. Apparently they only see industrial-strength hearing protection in such places as on aircraft carrier decks.
(4 comments | Leave a comment)