pkoning2 / lk201emu

Emulate DEC LK201 keyboard using a standard PC USB keyboard
BSD 2-Clause "Simplified" License
46 stars 7 forks source link

On using the adapter #5

Closed toncho11 closed 3 years ago

toncho11 commented 3 years ago

Hi,

I managed to finally plug the adapter. In general it is working.

1) So the F3 key (on the USB keyboard) switches between menu and writing modes? Right? 2) Can you type (do letters show) on the VT220 terminal without attaching it to a computer through serial? In my case I can not. I type, but nothing shows up.

I use the right "ENTER" for selecting options in the menu.
Pressing too many keys on the keyboard lights up a red diode on the Adafruit controller.

pkoning2 commented 3 years ago

Yes, F3 is the "Setup" function key on VT2xx and later terminals. (Not on the Pro, though, it has a different function key layout.)
I don't have a VT220, so I have to look in a manual to remind myself what it does. The way I normally navigate the menu is using the cursor keys, then Enter to do the selected action. One of the options on the first setup screen is "On-line" which if you select and Enter should change to "Local". That makes keyboard data go to the display directly, without any communication to any host. The red light on the Arduino is the "Wait" LED (the fourth LED on the LK201). I did it that way because I want all four to be visible, the other three are handled using the three PS keyboard LEDs. See the documentation, it's mentioned in there.

toncho11 commented 3 years ago

Thanks!!!

The terminal though is only in cyrillic letters when typing using English words in whatever language you choose. I guess they adapted the ROM, so that one can type in cyrillic, but in the end I do not see how to switch to English. It is because cyrillic was not built in, so they had to make un eagly hack. I think the only solution is an original ROM??

IMG_20210801_211516 IMG_20210801_211617

pkoning2 commented 3 years ago

Yes, looks like they replaced lower case letters by Cyrillic capital letters. The original ROM would be the best solution. Or use only upper case...

toncho11 commented 3 years ago

Nice observation! It does work with capital letters in English. I still need both if I want to connect to a Linux terminal. Some strategy can be developed!

I can add a code after your code in the adafruit controller:

toncho11 commented 3 years ago

Actually I need another micro controller on the serial port output in order to do that, The display will always stay in English capital letters even if I manage to send both lower and capital letters to the connected computer. Or it could be a C program on the computer that translates to the correct English codes.

toncho11 commented 3 years ago

You can update that:

Max3232EPE driver/receiver is also compatible as U3.

pkoning2 commented 3 years ago

Thanks Toncho, I updated the documentation to show that.