Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard blinking constantly, very intermittent keypresses going through #6

Open
abzman opened this issue Aug 15, 2021 · 4 comments
Open

Comments

@abzman
Copy link

abzman commented Aug 15, 2021

OK, this has been bugging me for a while and I think I've finally fixed it but I want to know how this ever worked for anyone else. The lines 938-940 in lk201.ino seem to mean that every time the keyboard is connected, the software disconnects it. I commented out those three lines and now it works perfectly. What I want to know is why were those lines in there at all? did it work as is for anyone else? should I issue a pull request that deletes those three lines?

@abzman
Copy link
Author

abzman commented Aug 15, 2021

I take it back, it doesn't work perfectly for me now, it boots up and the usb state goes to green, then off just before it throws a keyboard error, but after that any character I type makes it green again and seems to work perfectly

@pkoning2
Copy link
Owner

Unfortunately it's hard to do good error handling given that there is no real way to send error reports. At one point I had it send various distinct error codes as different morse code letters.
The purpose of line 938 is to send the standard LK201 power-up notification to the host or terminal. That tells it there is a keyboard, and if the controlling device wants to set any non-standard keyboard settings it would generally do so in response to that notification. For example, RSTS would change the edit keys to be autorepeat, not up/down as is the surprising default, and it would turn off keyclick so it can generate clicks in the driver to acknowledge those keys for which it wants the click.
Do you have the powerup beeping enabled (the little morse code sequence)? If there's an error that crashes the controller it would resend that sequence. If you're just seeing various light colors and blinking, that means the USB state machine is recycling through its state. I could imagine that being a broken keyboard, or a bad USB cable. If you can swap keyboards or cables or the cable adapter, that's worth a try.
It's been very reliable for me (though right now I'm using the PS2 version instead) and I've had one other report of successful operation (toncho11, who posted various comments here in weeks past).

@abzman
Copy link
Author

abzman commented Aug 18, 2021

I've been working on other projects so I may not get to debugging this for a little while, I have two brand new keyboards to use with this but I have three others to try as well. I know the keyboards work, but I'm not hearing any beeping. My next test was to make sure my beeper circuit works. I'll let you know how it goes, I may try to bodge on a software serial port for debug messages

@pkoning2
Copy link
Owner

pkoning2 commented Nov 5, 2021

Any news? Did you get it to work or are you still seeing problems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants