BadUSB/BLE bug
Describe the bug
BadUSB/BLE function doesn't work properly with Turkish keyboard layout (tr-TR). Characters and punctuation marks are incorrectly mapped when executing payloads.
Steps To Reproduce
-
Set Bruce device keyboard layout to 'tr' (Turkish Q)
-
Set target PC keyboard layout to Turkish Q (Windows: 0000041f)
-
Create payload file with content: GUI r DELAY 500 STRING https://www.youtube.com/watch?v=5wpkmj5YjWI ENTER
-
Execute payload via BadUSB or BadBLE
-
Observe incorrect character output
Expected behavior
Payload should execute as written:
https://www.youtube.com/watch?v=5wpkmj5YjWI
Actual behavior
Output contains incorrect characters:
httpsÇ//wwwçYoutubeçcom/watch?v=5wpkmj5YjWI
Character Mapping Analysis
Problematic characters identified:
.(dot) →Ç(incorrect)/(slash) →ç(incorrect)
Device Info
- Device: T-Embed CC1101 Plus
- Bruce Firmware Version: 23857bc
- Connection Type: USB/BLE
Environment
- Target OS: Windows 11 25H2 Turkish
- Keyboard Layout: Turkish Q (0000041f)
- Hardware: Standard Turkish Q keyboard
Additional Testing Results
Tested with different character sets:
- Lowercase:
abcçdefgğhıijklmnoöprsştuüvyzCorrect - Uppercase:
ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZCorrect - Punctuation:
.,;:\'"!?Errors - Numbers:
0123456789Correct - Special:
/@#$%^&*()Errors
Suggested Fix
The Turkish layout file needs proper scancode mapping for:
- Punctuation marks (.,;:'"!? etc.)
- Special characters (/ @ # $ % ^ & * and Turkısh special characters)
I will check this on my local branch which I have been working on with loads of BadUSB/BLE changes.
duplicated https://github.com/BruceDevices/firmware/issues/1947