Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:11 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Way to supress num lock on MM+ boot-up?

Author Message
MMAndy
Regular Member

Joined: 16/07/2015
Location: United States
Posts: 91
Posted: 02:32pm 13 Sep 2015
Copy link to clipboard 
Print this post

Is there a way to supress num lock on MM+ boot-up?
Our particular mini keyboard (MC-SAITE PS2/USB) always boots up with the num lock on and interferes with data entry. Is there an easy way to disable the num lock on boot-up/power-on-reset/reset? Firmware change needed?
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 03:06pm 13 Sep 2015
Copy link to clipboard 
Print this post

Hmmmmmmmm. That start-up state of the keyboard, is set by the keyboard itself, and if it chooses to enable num-lock, I don't THINK there is any easy way to stop that, other then pressing num-lock to disable that once the power has been applied.

...i may be wrong here, I am just going on what other keyboards do. I have a couple of laptop-type keyboards, and they too enable num-lock at power-up.

I'm not sure if there is even a firmware hack that would get you around this - I think, as with the likes of CAPS LOCK, you have to press the key on the actual keyboard to enable/disable those features - not sure any commands can be sent to the keyboard to do the same job.

...again - only my 2c, and I may well be wrong. I am no keyboard protocol expert!
Smoke makes things work. When the smoke gets out, it stops!
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 04:26pm 13 Sep 2015
Copy link to clipboard 
Print this post

from the deep dark past... i seem to remember that you can remotely turn numlock on/off, but how to do it from a micromite is another matter. in fact, all the status LEDs can be controlled (numlock, capslock, scroll lock), and i believe that (at least under DOS and Windows) the state of the LED is reflected by the functioning of the keyboard.

another memory - in some PC BIOSes there used to be a setting for the bootup state of numlock.


cheers,
rob :-)
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:40pm 13 Sep 2015
Copy link to clipboard 
Print this post

Keyboards send keycodes, the state of numlock etc is a function of the PC.
The numlock key is just another key.
The PC also controls the indicator LED's.

Sending a numlock keycode by stuffing the keyboard buffer with the appropriate code should do the job.

I have never played with the keyboard buffers but I think it could be done on the Maximite. Not so confident with the Micromite.

This is assuming that the keyboard buffer is keycodes, not ASCII.

Jim

VK7JH
MMedit
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 11:32pm 13 Sep 2015
Copy link to clipboard 
Print this post

Part of correct initialisation between keyboard and 'device' includes 'startup' states. These are initiated by the device and are sent as key codes.

All keyboards should be interrogated continually by a device, the device being able to detect when it is plugged in. As soon as the device detects a keyboard, there is a time-critical exchange of information. Part of this is the state of the LEDs.

Google will reveal all at whatever detail required . . .
 
Greg Fordyce
Senior Member

Joined: 16/09/2011
Location: United Kingdom
Posts: 153
Posted: 01:18am 14 Sep 2015
Copy link to clipboard 
Print this post

http://www.computer-engineering.org/ps2keyboard/ has a list of codes you need to send to the keyboard to control numlock. Maybe you can write a CFunction to send the codes at startup?

Or it might be easier to press the NumLock key.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 01:48am 14 Sep 2015
Copy link to clipboard 
Print this post

  Quote  Maybe you can write a CFunction to send the codes at startup?


Not possible with a CFunction as the in-built code uses interrupts to sense the clock pulses from the keyboard and there is no way to link into these with a CFunction.

The MM+ initialisation code sets:
caps lock off
num lock on
scroll lock off

which is probably the normal thing to want on a full keyboard including a separate number pad. To make this flexible Geoff would need to include another OPTION to change the initialisation condition. You can always ask.......



 
MMAndy
Regular Member

Joined: 16/07/2015
Location: United States
Posts: 91
Posted: 02:47am 14 Sep 2015
Copy link to clipboard 
Print this post

  Quote  The MM+ initialisation code sets:
caps lock off
num lock on <-------<<<<
scroll lock off


On our mini 78 key keyboard there is no keypad but by using the num lock "alternative keys" can be used as a numeric keypad. We chose this special keyboard for portable laptop operation due to its small foot print and PS2/USB operation.

Edited by MMAndy 2015-09-15
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025