Bluetooth keypad gives wrong output

  Description of the problem

The bluetooth keypad is giving the wrong output to the interface unit
For example, pressing on the "G" gives "/" or "F" gives "*"

  Possible origins

  • By plugging another USB keyboard, the key mapping was reset to standard.
    • A user tried to switch from QWERTY to AZERTY keyboard. 
      • It may also come from pressing keys while the Raspberry Pi is turning ON.

          Solution (step by step)

        Material Needed:

        • Your Mekanika CNC Powered On
          • The Interface Unit (Mekanika's Keypad and touchscreen)
            • A Regular USB Keyboard plugged into the control Unit of the CNC

              Goal:

              You will need to check the Raspberry Pi's Localisation Option, and go into the Terminal console to instruct it to use the specific keyboard mapping made for Mekanika's keypad

              Steps to Follow:

              1. Minimize the Planet CNC window on the interface unit.
              (yellow line on top right)

               

              2. Go to the localisation/keyboard settings following this path :
              Press the Raspberry in the bottom left corner,
              Then Preferences > Raspberry Pi Configuration.

               

              3. Go to the tab Localisation, and click on Set Locale... 
              Check that the parameters are set like below (or make adjustments if needed)
              - Language: en (English)
              - Country: US (United States)

              - Character Set: ISO-8859-1

              Then click OK.  

               

              4. Click on Set Keyboard...
              Check that the parameters are set like below make adjustments if needed)
              - Model: Generic 105-key PC (intl.)       -> Important !
              - Layout: English (US)
              - Variant: English (US)
               
              Then click OK.

               

              5. Open the Terminal console by pressing the Raspberry in the bottom left corner, then Accessories > Terminal

               

              6. Write the following line of command in the terminal, using the USB keyboard you plugged in (don't forget the spaces).

              sudo nano /etc/default/keyboard

              Then validate with Enter.

               

              7. A new window opens up.
              Use the keyboard's arrows to put the cursor after XKBVARIANT=
              And write mekanika after the equal sign (use lower case).

               

              8. Exit by pressing Ctrl + X on the USB keyboard.
              The terminal will ask you if you to Save the modifications.
              Press Y on the USB Keyboard (NOT on the Mekanika Keypad), to say yes.
              Then  press ENTER to close the window.

               

              9. Close the Terminal Console.
              Restart the Computer (Raspberry > Logout > Reboot)

              10. Check if the problem is solved by using the Mekanika Bluetooth Keypad!

              If you still have an issue, check that you didn't miss a step (it is easy to miss saving a modification by mistake).


              If you still have a problem with the keypad, you can contact our Support Team and tell us you have followed this guide thoroughly, we will help you to fix it quickly!

              Was this article helpful?