Author Topic: XT/AT/PS2/Terminal to USB Converter with NKRO  (Read 80157 times)

0 Members and 1 Guest are viewing this topic.

Online alaricljs

  • I be WOT'ing all day...
  • Administrator
  • Posts: 4822
  • Location: NE US
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #420 on: Wed, 06 June 2012, 08:10:56 »
My D820 and e6410 both have opposite side USB ports, I was under the impression that 6xx series were quite similar to the 8xx.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #421 on: Wed, 06 June 2012, 08:40:25 »
Actually, on the D800 (A11 BIOS) it seems to work OK from a cold boot, but not on restart :-/

Doesn't seem like a power issue, but I could try an external powered hub to be sure.

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #422 on: Wed, 06 June 2012, 11:12:04 »
Hmm... so on this Dell actually all devices are showing up. Strangely, the scinfo command manages to get info so the config pipes are (sort of*) working, and as I said, LED output seems fine too. But there is no input to hid_listen, even though it connects.

* USBlyzer reports the scinfo output request as successful, but not the input response. Even though scinfo gets and displays a response!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #423 on: Fri, 08 June 2012, 13:38:48 »
I not sure that this D800 has the quite same problem as those other Dells. On this one, my converter only stopped working if I pressed F2 (or any key) before the BIOS had turned on the USB, or after it had turned it off and before Windows had turned it back on. (I think!). There is an A13 BIOS I could upgrade to and test.

I have managed to fix that bug though - the converter was getting stuck trying to wake up the PC when it was already awake. There's a couple of USB commands that I wasn't handling which enable and disable remote wakeup, so I've added handlers for them which fixed it. I've also reset a couple of internal state tracking flags when the USB connection is reset, as a precaution, since if they are wrong it could prevent any output from the converter.

Here's a new version with those fixes. I doubt it, but there is a slim chance it might fix the Dells and Ubuntu 12.

[ Attachment Invalid Or Does Not Exist ] 52483[/ATTACH]

Offline fohat.digs

  • Posts: 1866
  • Location: Southeastern US
  • you know what they say about opinions
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #424 on: Fri, 08 June 2012, 15:32:59 »
I don't know about anybody else's Ubuntu 12.04 problem, but mine was fixed immediately after I booted up using a (Dell) PS2 keyboard and then plugging in the F/Teensy "hot" to the USB port.

I had read about that from other people, but I never had to do it before, it had always worked for me right away.
I remember, back in the old days ....

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #425 on: Fri, 08 June 2012, 15:48:33 »
Quote from: fohat.digs;609928
I don't know about anybody else's Ubuntu 12.04 problem, but mine was fixed immediately after I booted up using a (Dell) PS2 keyboard and then plugging in the F/Teensy "hot" to the USB port.

I had read about that from other people, but I never had to do it before, it had always worked for me right away.

Interesting... that actually makes it more similar to the Dell laptops' problem, in that something's going wrong during boot that can be worked-around by connecting the Teensy later. Or do you mean it now works through bootup, now that you've done that once?

Offline fohat.digs

  • Posts: 1866
  • Location: Southeastern US
  • you know what they say about opinions
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #426 on: Fri, 08 June 2012, 17:33:19 »
Yes, I think that it just had to recognize the USB device once, smooth sailing after that.
I remember, back in the old days ....

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #427 on: Fri, 08 June 2012, 17:40:09 »
Ah good. Just these pesky Dells to deal with now then! :-D

Online AKIMbO

  • ssk.ℜ
  • Posts: 2297
  • Location: Florida
  • ( •_•) ( •_•)>⌐■-■ (⌐■_■) CHIVES!
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #428 on: Mon, 18 June 2012, 19:07:28 »
Hey guys I need a little help with my teensy install.  I'm converting an XT to usb.  I want to wire the AT cable directly to the teensy and keep everything internally within the XT chasis.

I know I wire these 4 cables to GND, VCC, PF0 (clock), and PF1 (data).  But which wire colors correspond to those pins?
This is what I'm looking at when I open my XT.

« Last Edit: Mon, 18 June 2012, 19:14:46 by AKIMbO »
KMAC Mini (62g vintage mx blacks) | mkawa Beta SSK | IBM Model AT F | IBM F 122 | Realforce 87U (55g Uniform) | Zenith ZKB2-AT (linear green alps) | Dell AT101 (black alps) | Omnikey 101 (blue alps) | Wang 725 (orange omrons)

Join my IBM Model AT F tour!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #429 on: Mon, 18 June 2012, 20:01:44 »
Brown = Vcc
Red = Ground
White = Data
Black = Clock

:-)

Online AKIMbO

  • ssk.ℜ
  • Posts: 2297
  • Location: Florida
  • ( •_•) ( •_•)>⌐■-■ (⌐■_■) CHIVES!
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #430 on: Mon, 18 June 2012, 21:31:17 »
Quote from: Soarer;616598
Brown = Vcc
Red = Ground
White = Data
Black = Clock

:-)

Thank you so much Soarer.  I was pulling my hair out and second guessing myself with these wire colors.  I would have soldered them all wrong.  I`m typing this up right now on my XT.  Thanks for the guide, your help, and the awesome coding!
KMAC Mini (62g vintage mx blacks) | mkawa Beta SSK | IBM Model AT F | IBM F 122 | Realforce 87U (55g Uniform) | Zenith ZKB2-AT (linear green alps) | Dell AT101 (black alps) | Omnikey 101 (blue alps) | Wang 725 (orange omrons)

Join my IBM Model AT F tour!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #431 on: Tue, 19 June 2012, 06:53:56 »
Quote from: AKIMbO;616661
Thank you so much Soarer.  I was pulling my hair out and second guessing myself with these wire colors.  I would have soldered them all wrong.  I`m typing this up right now on my XT.  Thanks for the guide, your help, and the awesome coding!

Haha, yeah, IBM (and Cherry) sure did pick some unintuitive colours! Good to hear of another success :-)

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #432 on: Tue, 19 June 2012, 13:13:59 »
Hi everyone. I'm also trying to convert XT to USB (IBM model F), but when I wire it like mentioned above I don't get any result (doesn't seem to connect at all) and the teensy gets really hot! Any idea's why this is happening? I've tried v0.996 and v1.0.
Visit the °_Paranoid shop_° for your custom cable needs!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #433 on: Tue, 19 June 2012, 14:36:57 »
Quote from: Paranoid;617116
Hi everyone. I'm also trying to convert XT to USB (IBM model F), but when I wire it like mentioned above I don't get any result (doesn't seem to connect at all) and the teensy gets really hot! Any idea's why this is happening? I've tried v0.996 and v1.0.

Ouch, that doesn't sound good at all - the Teensy shouldn't even be warm :-(

Where the wire colours on the same pins as in akimbo's pic?
Might you have (or had) a short circuit between any wires?
If you disconnect the teensy from the keyboard, does it still get hot?

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #434 on: Tue, 19 June 2012, 14:46:55 »
The wire colours are in the same order as in the picture (brown-red-white-black) with the tip of the connector facing upwards.
Could be that when I was testing it at first some wire pins might have touched, but now I soldered the wires so a short circuit now shouldn't exist.
If I connect only the teensy it doesn't get hot and I can still program it.

Does it matter where you connect the VCC and GRND? Because there are connections at the USB port and on the other side of the teensy board.. (I've tried both btw after the teensy wouldn't do anything)
Visit the °_Paranoid shop_° for your custom cable needs!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #435 on: Tue, 19 June 2012, 16:21:46 »
Either Vcc and GND are fine. Hate to say it, but I think somehow the Teensy has died :-( There was someone else who had a short happen, a bit more dramatic... thread.
« Last Edit: Tue, 19 June 2012, 16:30:59 by Soarer »

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #436 on: Wed, 20 June 2012, 02:36:12 »
Damn that would suck! I also can connect it to my computer and run and load the LED blinking program like the guy in your link. But I did do something before, that you mentioned in that post, when I was trying to find the correct wires (and apparantly measured it wrong the first time):
"I don't know what dies (if anything) if you apply +5V and GND swapped over - and I'm not about to try it! " - So I did actually switch GRND and VCC..
Stupid that I can't test something else to see if it works! Is there any way PJRC has a return policy or would it mean that I have to buy another one? I can't seem to find anything on their website.
Visit the °_Paranoid shop_° for your custom cable needs!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #437 on: Wed, 20 June 2012, 07:44:09 »
Reversing Vcc and GND is more likely to damage the keyboard than the Teensy, and I'm not sure if it would explain why the Teensy gets hot. (The power comes straight from the USB port, so it doesn't pass through the chip).

You said measure... does that mean you have a multimeter?

A basic test for the Teensy would be to load my firmware (any version), and measure the voltage on the clock and data pins (with no keyboard connected) - they should show 5V, if not, the chip is damaged. Then connect both clock and data to ground - it shouldn't get hot, if it does the chip is damaged.

A basic test for the XT keyboard is similar, but first I'd measure the current the keyboard is taking when connected (just to power; leave the clock and data lines disconnected). It should be between 100mA and 125mA. Then measure the clock and data line voltages - clock should show 5V, and data should show 0V. Then I'd go back to measuring the current the keyboard is taking, and short the clock and data lines to GND - the current should increase, but only by a few mA. (If you can't read the current or aren't comfortable with that, then it's still worth testing the voltages on the clock and data lines).

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #438 on: Wed, 20 June 2012, 13:16:45 »
Yes, I do have a multimeter :)

I did the test that you asked. Let me sum it up:
Basic test for teensy:
 - voltage on clock and data pins with no keyboard connected: both 5V
 - clock and data to ground: the teensy (or usb cable for that matter) does not get hot

Basic test for the keyboard:
 - Current of the keyboard (only with power): 0,024A = 24mA
 - Data and clock voltage: both 0V, power dropped to 0,8V
 - Current of the keyboard (clock and data to grnd): 0,097 - 0,1A = 100mA
 - Data and clock voltage: both 0,02V, power also 0,8V
In all these cases the teensy and cable get hot.

I would say that there is something wrong with the keyboard then?
Visit the °_Paranoid shop_° for your custom cable needs!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #439 on: Wed, 20 June 2012, 14:26:21 »
I dunno... something doesn't quite add up :-)

I don't see how the Teensy would get hot when just power and ground are connected to the keyboard, and the keyboard is only drawing 24mA!

And not sure how enough current is flowing (somewhere) that the cable can get hot, without the computer just switching off the port and giving a warning.

I'm reluctant to ask you to do too many tests, since it getting hot could damage something more!

So, I'll have to think for a while :-)

Just to check - I'm imagining measuring the current goes something like this:

4563-0
« Last Edit: Fri, 21 September 2012, 08:36:21 by Soarer »

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #440 on: Wed, 20 June 2012, 15:16:15 »
yes that's exactly how I did the current measurement. Maybe there's something wrong with the circuit board on the keyboard.
I'll see tomorrow evening if I can connect the teensy to another keyboard (with XT or AT) that doesn't work through a passive converter. If that works I'll probably know more.
Thanks for the help so far!
Visit the °_Paranoid shop_° for your custom cable needs!

Offline REVENGE

  • Posts: 1140
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #441 on: Thu, 21 June 2012, 01:03:30 »
You could double check the wire config by using a multimeter and testing for continuity between the known XT pin-outs and the contacts on the internal connector.
◕ ‿ ◕

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #442 on: Thu, 21 June 2012, 02:07:02 »
Hi Revenge,
I checked that in the beginning. The VCC, ground and data were correct, only the clock was on pin 3 instead of pin 1. Don't really know if that's a bad thing.
But I connected the teensy either directly on the circuit board pins or through the cut wires of the connector.
Visit the °_Paranoid shop_° for your custom cable needs!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #443 on: Thu, 21 June 2012, 06:30:15 »
Quote from: Paranoid;618482
The VCC, ground and data were correct, only the clock was on pin 3 instead of pin 1. Don't really know if that's a bad thing.

I think that means you were reading the pinout diagram backwards - it's drawn looking looking into a socket, so you need to mirror it when looking into a plug.

Offline Paranoid

  • Posts: 257
  • Location: Belgium
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #444 on: Thu, 21 June 2012, 07:15:04 »
hehe, that would explain why I got the grnd and vcc wrong the first try ^^ the pins and wires are correct then.

*update: so I hooked up my Cherry G80-0779H (that doesn't work through a passive converter) to the teensy and it works! With v0.996 it wouldn't work (just tried it real quick), but with v1.0 it does work :)
So the teensy isn't broken hooray!

Less hooray is that there is something wrong with the model F.. any clues as what could cause this?
There doesn't seem to be anything slighty burned on the circuit board. Although that doesn't really tell us anything. (the white stuff is from the sticky thing that's covering the board)
[ Attachment Invalid Or Does Not Exist ] 53572[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 53573[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 53574[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 53575[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 53576[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 53577[/ATTACH]
« Last Edit: Thu, 21 June 2012, 12:44:55 by Paranoid »
Visit the °_Paranoid shop_° for your custom cable needs!

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #445 on: Fri, 22 June 2012, 15:34:06 »
Sorry, I missed the update :-)

I'm still puzzled why the teensy and cable get hot, with the keyboard apparently only taking 24mA of current... that doesn't make any sense!

If it wasn't for that, I would agree that the keyboard has been damaged.

Offline Parak

  • Posts: 483
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #446 on: Sat, 23 June 2012, 22:26:54 »
For my second F122 refurbishment, I took some of these that I had lying around and four pin headers with the posts removed bent slightly at the end:

[ Attachment Invalid Or Does Not Exist ] 53798[/ATTACH]

Apply shrinkwrap:

[ Attachment Invalid Or Does Not Exist ] 53799[/ATTACH]

Now that I think about it, this would have been better if I soldered the pins from the back instead. Oh well.

Offline Soarer

  • Moderator
  • Thread Starter
  • Posts: 2189
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #447 on: Sat, 23 June 2012, 23:06:59 »
That's pretty neat :-)

Put the pins on the back you mean? But then you'd have bits sticking out on both sides!

Offline Parak

  • Posts: 483
XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #448 on: Sun, 24 June 2012, 00:47:44 »
It would have looked a bit neater as the d0/d1 pins could have been flush, but then I guess there also would have been a slight worry with the teensy being all covered up by the heatshrink and the button being possibly permapressed..

Offline fohat.digs

  • Posts: 1866
  • Location: Southeastern US
  • you know what they say about opinions
Re: XT/AT/PS2/Terminal to USB Converter with NKRO
« Reply #449 on: Thu, 23 August 2012, 14:45:16 »
I am probably just dense or incompetent, but here are 2 questions:

1. How to I get to the original article and instructions? I can get this thread, but not the article itself. I want to re-read the instructions from the beginning.

2. Can multiple Teensies be run simultaneously?

I have an F-122 with internal Teensy that I cut, wired, and installed last year, and have been running flawlessly since, including surviving a format and upgrade from XP to 7 with no additional work on my part (Wow!).

Now I have a new keyboard Teensy which I want to install in an outboard box with a socket to accept original cables. I would also like to upgrade to the latest firmware/software "just because" it seems to make sense.

First, if 2 Teensies are plugged in via USB, will my computer be confused? Should I use a conventional keyboard while setting up the new Teensy?

Second, what is involved in upgrading from 0.997 or whatever to 1.02?

Thanks!
I remember, back in the old days ....