Bluetooth Keypad gives wrong output
1. Description of the problem
The keypad is giving the wrong output to the interface unit.
For example, pressing on the "G" gives "/" or "F" gives "*".
2. Possible origins
By plugging another USB keyboard, the mapping went back to the standard mapping of the US, or a user wanted to switch from QWERTY to AZERTY.
It may also come from the mapping when the Raspberry is booting and some keys are pressed, disrupting the procedure.
3. Solution
Material needed: A Mekanika CNC powered on, the interface unit, and a full USB keyboard plugged into the control Unit of the CNC
You will need to go into the Terminal console of the Raspberry and instruct the Raspberry to use the specific keyboard mapping made by Mekanika. The pictures below will help you see each step.
- Minimze the Planet CNC windows on the interface unit.
- Go the to keyboard settings following this path : press the Raspberry in the bottom left corner, then Preferences>Raspberry Pi Configuration
- In the tab Localisation, verify both Locale and Keyboard settings as depicted in the pictures, especially the model of keyboard must be Generic 105-key PC (intl.).
- Validate or close this setting page.
- Open the Terminal console by pressing the Raspberry in the bottom left corner, then Accessories>Terminal
- Write the following line of command and press enter : sudo nano /etc/default/keyboard
- Write after the XKBVARIANT the text "mekanika" in lower case (see pictures) and validate by pressing on the USB keyboard "Control+X"
- The terminal will ask you to save the modified buffer, press "Y" on the USB Keyboard to validate and then "ENTER".
- Close the Terminal Console
- Restart the Raspberry
- Go back to Planet CNC and see if the problem is solved by pressing the keys of the bluetooth keyboard !