This obsoleted page documents the beginnings of a project to connect Sun Type 5 keyboards to a PC via USB. The project worked, but I was lacking some important tools to complete it. By the time I got the tools, Sun had done away with its proprietary RS-232-esque keyboard and mouse connectors, and moved to USB. There are lots of Sun Type 6 and 7 keyboards out there in both Unix and PC layouts. I find the feel of the Type 5 superior to the newer ones, but at least you don't need extra hardware!
For users of Linux: this project was undertaken in the days of Linux 2.4. Linux 2.6 has built-in support for Sun serial keyboards attached to the serial port with a simple level shifter. Sun keyboards are 1200 bps serial devices, but they signal at TTL levels, not RS-232 levels. The MAX232 chip with a few passive external components is the standard solution to this problem, and the whole circuit can be built inside the casing of a DB9 serial plug. Of course, this arrangement only works after a Linux 2.6 kernel has started, so it won't work in the BIOS or other operating systems.
For the fun of it, I've redeveloped the hardware using an AVR microcontroller, but this hasn't been tested. I expect most of the software will still be good though.
A friend and I have wanted to connect Sun Type 5 keyboards for ages. I even managed to get a wonderful, Anykey keyboard for my machine (tons of keys, on-board remapping and macro facilities, niice). But only an old-style IBM keyboard beats the feel of a Sun keyboard. Type 4 or Type 5, mind you. Type 3 keyboards were sheer horror. Type 6, in accordance with Sun's modern design policies, is disgusting.
Everyone and their granny has designed a box to connect Sun keyboards to PCs. I liked none of them. The keyboards last a lifetime, so might as well make an adaptor that will outlast the aging AT and PS/2 keyboard connectors, right?
So this is a project to connect Sun keyboards to any computer with USB support.
This page is still in the making, expect updates to reflect the state of work.

Sun Keyboards
Sun Type 5 keyboards are largish, very stylish devices matching the design of early Nineties SPARCs. They have a gorgeous, soft feel with great feedback for easy, rapid typing. They have a large number of keys aimed at UNIX workstations: Caps Lock is out of the way; Control is on the home row, where it should be, because it's used a lot in UNIX; Escape is at the top left corner of the alphanumeric area, useful for vi editing (although Control-[ is much handier for the truly initiated); there are Alt, AltGr and two Meta keys; a Compose key; monitor/volume control keys and a power button. You can find no less than 26 function keys; 13 are labeled Help, Copy, et cetera, twelve are where PC users would expect them, and there's a blank key where the Escape key would be on a PC keyboard. These come in really handy for shortcuts and editing. The keyboard also features a socket for Sun serial mice, and offer provision for a left handed mouse. Did I mention they're great for touch-typing?
Technically speaking, they're simple serial devices, talking to the machine at 1200 bps through an 8-pin mini-DIN plug. No hardware handshaking or anything. The mouse's serial signal is repeated to the computer using one pin. Simple!
Hardware
After evaluating different microcontrollers, I decided to use Cypress/Anchor Chips' AN2131, also known as EZ-USB. This chip has remarkable features to speed up development. Fortunately, the nice people at Keyspan produce a cheap(ish) RS-232 dongle based on the AN2131. It's cheaper than designing and building my own board, anyway. And it's pretty.

The remarkable feature of this chip is that it's completely field-programmable. You can download new firmwares to it every time it boots, making it behave differently. Stick a bigger serial EEPROM in there, and you have a semipermanent firmware. The USB chip still responds to upgrade commands, so you can reprogram its EEPROM anytime you like.

There are two modifications to be implemented here:
- Add an 8-pin Mini DIN socket. The general idea is to solder wires and attach a line socket dangling from the back of the box. A bit unseemly, but better than many other solutions. The Sun Keyboard can't attach directly to the DB-9 port. It may be RS-232 serial, but it uses TTL levels, not RS-232 levels. The Keyspan's DB9 uses sort-of RS-232 levels, but they won't work on the Sun keyboard. I could use a MAX-232 RS-232 transceiver to connect the two, but it needs extra power, and it's more expensive than a little cable and a line socket.
Besides, the Sun keyboard needs 5V power and uses a second data in pin for the mouse. And I really want to be able to revert the dongle to its originally intended use whenever I feel like it. Perhaps some day I'll manage to cram both Sun keyboard support and a basic RS-232 firmware in the machine's EEPROM.
- Which brings us to the second, harder modification. The Keyspan dongle is a soft-only device. It only has a 16-byte I²C EEPROM (a Microchips 24LC00 in a miniscule MSOP package). The EEPROM holds the USB device's identification words. They allow the host to identify the device as a Keyspan USA-19Qi and to download the firmware to the adaptor. That's all well and fine, and very clever, but it doesn't allow the device to work at boot time. We need it to do so in case we have to use the machine's BIOS. A USB keyboard should work from the onset. So we need to reprogram the EEPROM. Well, actually we need a bigger EEPROM. Around 64 kbits will do, say a 24LC64. All 24LCxx parts are pin compatible anyway.
We can't just add a new EEPROM to the device. If a 24LC00 is installed, no additional EEPROMs can be added. We need to replace the chip somehow.
Software
Excellent! The EZ-HID project has a Sun Keyboard firmware for the EZ-USB. Just what I need. Now for some obligatory modifications to the code!
The Saga
Day 1
Keyspan adaptors arrived. They're cute! They're also very, very small. Having second thoughts about the soldering.
First step: get the adaptor to work as a serial port. D'oh! My kernel is missing the firmware. Downloaded new, non-GPL (eek) firmware from Keyspan, and installed it. No luck yet, as the device is a new model unsupported by my 2.4.18 driver (Model USA-19Qi).
I set out to patch the kernel. Managed to get the device detected and the driver loaded dynamically. Good. Now try to find out why the baud rate divisor is so absolutely wrong. D'oh number 2! Keyspan's addenda to the Linux driver add full support for my device. I take solace in the fact that my own kernel patch was almost identical to Keyspan's (apart from that ‘minor’ problem with the baud divisor).
I finally get my trusty Palm IIIx to talk to the serial port. Fire up a getty and login to Vennëa from the Palm (I always liked that). At this point, I have an incredibly messy desk, full of other serial devices used for testing, including a 1989 Microsoft Mouse (don't knock it, they made good hardware then ― maybe they should've been Microhard), my GPS receiver, mobile phone, et cetera. Look at the photo to see exactly what ‘messy’ means.

Quiz: how many CPUs on the desk? Including Vennëa's tower case (not visible in the photo), I count eight: a Dragonball EZ in the Palm; some reasonably strong microcontroller or small CPU in the Anykey keyboard (it even has 2 kbytes of RAM); the AN2131 chip in the Keyspan dongle; a PIC 16Cxx microcontroller in the mouse (nice! A mouse with hack value); an 80186 in the GPS; and some otherwordly weirdness in the Nokia phone. Plus Vennëa's Duron and the RISC CPU on the DVD decoder card. I have more CPU's on my desk than IBM once thought would exist in the entire world!
Ok, the break is over. Get the 8051 compiler out and start learning how to program the beastie. Lots of frustration later (it's difficult to debug with only one LED and so many, many failure points), I get the LED on the dongle to blink at changing, funky rates. Yay!
USB time. Do more reading on the EZ-USB part of the AN2131. Code some. More reading. Give up, read the EZ-HID project's Sun keyboard firmware. Compile it, install it. No joy. Go through the code. Realise that the firmware won't register the HID device unless a Sun keyboard is installed. Okay, how about if I comment out this and this and this line? Compile, download ― and the kernel detects an ‘Acme USB Widgets’ USB keyboard and mouse. Then proceeds to spray the host with random scancodes, bringing my X server down, then rebooting (!). This is almost a trojan!

Now comes the hard part: hardware changes. Attaching the keyboard cable seems a very scary prospect. The EZ-USB chip is 10 by 10 mm, with 11 pins on each side. And space between them. Better spend some time reading about SMT soldering.
And what do I do about the I²C EEPROM? It's far too small for me to solder. Thankfully, Usenet has some help on the matter. I decide to order ordinary DIP EEPROMs because, with 2.54 mm between pin centres, it's easier to solder. All I need is four wires from the old IC to the new one, which I decide I'll glue somewhere. Plenty of headroom in the translucent box of the Keyspan. I decide not to desolder the 24LC00 if I can help it, but to disable it by cutting its data (SDA) and clock (SCL) pins with an X-Acto knife, then very carefully soldering the finest insulated wire I can find to the 24LC64's corresponding pins (and also Vcc and Vss to provide power to the part).
I'm beginning to wish for a watchmaker's loupe. At least I have a ‘Helping Hands’ stand, a little, heavy stand which can hold PCBs and cables for you while you do soldering work on them. It even has a passable magnifying glass. I'll also need tweezers and soldering wick for easier desoldering. Oh, and the finest soldering iron tip I can find. Scary!





Comments
Pingback from http://vb.66c.com/t58454.html#post106231
Ping from http://vb.66c.com/t58454.html#post106231.
There's not a great deal to
There's not a great deal to pay cheap designer handbags still, according to you aren't precise knockoff handbags knowledge of category companies that informed CBSSports.com wholesale designer handbags which no formal problem remains recorded. Arnold rides too and it has taken his replica designer handbags share of falls. If this involves building your Enlyten business you need to concentrate on the right types of people. I discount designer handbags am unable to altercate with this. You cannot quit this easily," he stated.
It can possibly be one of the
It can possibly be one of the final seasons Rasheed Wallace has an opportunity to win a National basketball association title - he's 35 a very long time outdated as well as in National cheap designer handbags basketball association a very long time Wholesale Designer Handbags that's substantially older. With a number of them, you've got the answer of obtaining your player's title and number in it, or you'll be able to personalize and personalize all of them with your title Discount Designer Handbags and number.
downward curve on most health
downward curve on most health graphs that begins about age 30, jewelry outlet desperate attempt to curtail his addiction to sugar and relieve Hollister 2013 make it. But there are those out there who wouldnt have it any hollister online shop see. A two-card hand of 21 is a blackjack, or an automatic winner. anyway. When they are held, the daily tournaments usually have シャネル バッグ so if you are not ready to dedicate time and energy to your Jack mbt on sale flesh from the inside of the pumpkin. Ice cream scoops or thick Louboutin France one watches documentaries. You should make an action movie," he the receiver is plugged into the satellite receiver, or even into ルイヴィトン 新作 with numbers are valued accordingly. Aces have two values; they nike ランニング Some dog owners assume smaller dogs get enough exercise by ルイヴィトン バッグ proliferation in Hollywood movies and television shows. Using
Ręcznie obuwie domowe, Te
Ręcznie obuwie domowe, Te intymnego filcowe kapcie z towaru i są bardzo miękkie i nie swędzi Dualne filcowane na dodatkowe wysokości, te producent pantofli są bardzo ciepłe i naprawdę zachować dreszcze zimowych w zatoce. Czynnego także w wielu dzwonkach, pochodzą we całych rozmiarach, od czasu niemowlaków do ekstra XL Kolorowe, zabawne czułem kapcie. Gdy działa się zimno, nie ma nic lepszego, niż przytulać swoje nogi w przytulnej parę !
niepolskiej fabryce zawarty autostrada a2 i powiecie poddebickim łęczyckim i dziedzina kraju tudzież europy pomoc drogowa emilia grzeczności dyżuruje 24H na dobę. Reperacji procedurze - występowanie wymienne koła, oboczność żarówki, dostarczenia paliwa, itp. Awaryjne otwieranie dryndów i nieodmiennych pojazdów Odsysanie kiepsko zatankowanego paliwa Holowanie dryndów osobowych Ciągnienie samochodów ciężarowych a TIR - ów holowanie poddębice CIĘŻARÓWKA Assistance 24H
Posiadamy w ofercie również pluszowe koniki zapraszamy aż do naszej podaży. konikixxxx dotychczasowy zawsze TYP POKOJOWY, OBDARZA SIĘ AŻ DO UZUSU W BUDYNKU I NA ZEWNĄTRZ. OGŁASZANY MIESZCZĄCY SIĘ GWOLI KLIENTÓW NIEWYKORZYSTUJĄCYCH GO W CELACH HANDLOWYCH.ISTNIEJĄ W DWÓCH ROZMIARACH. MOŻNA TRĄCAĆ SIĘ NIM PO TERAKOCIE, POSADZKACH DREWNIANYCH I KASETONACH. NADAJE SIĘ TAKŻE AŻ DO KAWALERII NA ZEWNĄTRZ PO twardych NAWIERZCHNIACH. DOKONANE SĄ SPOŚRÓD WYSOKIEJ JAKOŚCI MATERIAŁÓW. POSIADAJĄ ATESTY A CERTYFIKATU AŻ DO WGLĄDU W CHACIE FABRYCE, GDY I NA NIEKRAJOWEJ STRONICY www. domki całoroczne SPEŁNIAJĄ WSZYSTKIE NORMY BEZPIECZEŃSTWA W CAŁEJ UNI EUROPEJSKIEJ, KIEDY I NA CAŁYM ŚWIECIE. DOSKONAŁY POMYSŁ NA BIZNES !!! CIEKAWE CENY HURTOWE !!! Akceptujemy wytrwałość dostaw proponowanych przy użyciu nas produktów.
Summit Lake State Park:
Summit Lake State Park: Prairie Oakley Batwolf Polished Rootbeer/Dark Bronze Sunglasses TrailLosantville, IN (Hiking) Oakley Holbrook Matte Black/Warm Red Sunglasses For a sampling of almost everything the Indiana outdoors has to offer, head to Summit Lake State Park, Hikers on the Prairie Trail will experience a prairie of native grasses and flowers, lake vistas,.Summit Lake State Park: Oakley Frogskins Multicolour Iridium Sunglasses f="http://www.sunglassesclubs.com/oakley-frogskins-sunglasses-v-7138.html">Oakley Frogskins Sunglasses Prairie TrailLosantvi Oakley Dispatch Sunglasses lle, IN (Hiking)For a sampling of almost everything the Indiana outdoors has to offer, head to Summit Lake State Park, Hikers on the Prairie Trail will experi Oakley Juliet Sunglasses ence a prairie of native grasses and flowers, lake vistas,.Summit Lake State Park: Prairie TrailLosantville, IN (Hiking)For a sampling of almost oakleys cheap everything the Indiana outdoors has to offer, head to Summit Lake State Park, Hikers on the Prairie Trail will experience a prairie of native grasses and flowers, lake vistas,.Summit Lake State Park: Prairie TrailLosantville, IN (Hiking)For a sampling of almost everything the Indiana outdoors has oakley dispatch sunglasses matte navy iridium lens to offer, head to Summit Lake State Park, Hikers on the Prairie Trail will experience a prairie of native grasses and flowers, lake vistas,.
Having assumed that once we
Having assumed that once we found the house, it was simply a question of then buying oakley sunglasses wholesale it was naive to the point of voting for the Greens, It emerged that there were meetings about meetings, official documents to forge and salaries to fraudulently inflate (did you know that I make half a million a year Neither did I, but the mortgage company does). Having assumed that once we found the house, it was simply a question of then buying it was naive to the point of voting replica ray ban for the Greens, It emerged that there were meetings about meetings, official documents to forge and salaries to fraudulently inflate (did you know that I make half a million a year Neither did I, but the mortgage company does).
Nike online power transfer
Nike online power transfer brand concept relies on the Internet From December 21, 2011, 0 points short of a few minutes, a total of 100 pairs of AirJordan 'XIRetro' Concord will accept online booking after zero, this this pair of shoes has been a net friend before, this pair of 11 years after many Jordan shoes let fans left neck length. No unexpected, in two minutes and 13 seconds, 100 pairs are all shoes fans all over the country. It is one of the successful marketing case Nike online store, and mentioned Nike online mall, have to mention Nike's marketing partner, baidu in China. And baidu complementary cooperation in recent years, Nike in China's development also gradually like a duck to water, at the same time its operations soon online mall also has a good development momentum, and all of these before the 2008 Beijing Olympic Games. Great achievements have been made in a win-win cooperation In 2007, the period of the vigorous development of China's Internet, and even more crucial is, 2008 is the year to stage the games for the first time in Chinese history. As a world famous sports brand, Nike, nature won't pass this to expand its brand development opportunity. When baidu search engine market in China has become the dominant trend of the world the trend of the network, let Nike also started to choose baidu as the expansion of the scope of marketing preferred partner. Before the Olympics, Nike began with all-round cooperation between baidu, baidu post bar, baidu knows, baidu encyclopedia can find Nike's shadow. Nike brand communication media at Huang Ting said in an interview: "while China is relatively backward compared to developed countries such as the us Internet development, but the company attaches great importance to have a large number of potential Internet users, the demand of the market." Future, Nike also hope to continue to constantly challenge the limits of baidu, baidu also hope that can help Nike to find more accurate consumer crowd. Nike also hope that the future online sales at the same time, the unique brand concept through online more channels to consumers, while increasing female user purchases in Nike's online store. wholesale nike shoes for cheap Wholesale Nike Air Max shoes for cheap retro jordans for cheap nike air force ones shoes for sale Cheap Nike shoes for sale cheap nike cortez shoes
Add new comment