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

Feature Request : French Azerty Support #15

Open
leperjulien opened this issue Sep 3, 2019 · 10 comments
Open

Feature Request : French Azerty Support #15

leperjulien opened this issue Sep 3, 2019 · 10 comments

Comments

@leperjulien
Copy link

Hi,

Can't wait to play with this ! I will wait for tommorow to detach the pcb from the dongle and solder it to my USB connector from adafruit that was laying around, but while looking at the source code i saw that only US and DE were present, so i'd like to take care of adding support for french (azerty) keyboard since you must have a lot of work already and i'd hate to add more :)

I just want to be sure to do the right thing before i start so i don't spend time on it for nothing, i was planning on using this file as reference :

https://raw.githubusercontent.com/mame82/UnifyingVulnsDisclosureRepo/master/tools/mjackit/keymaps/fr.json

to modify this one (starting at line 275) :

https://raw.githubusercontent.com/mame82/LOGITacker/master/logitacker/logitacker_keyboard_map.h

but maybe i've got it all wrong and this is not the way to do it.. in which case i'll just leave this here and hope it can be implemented in the future :)

@leperjulien
Copy link
Author

leperjulien commented Sep 12, 2019

So here is what i was able to come up with :
https://github.com/leperjulien/LOGITacker/blob/master/logitacker/logitacker_keyboard_map.h
And also two small changes here 👍
https://github.com/leperjulien/LOGITacker/blob/master/logitacker/logitacker_keyboard_map.c

Now i just need to figure out how to compile it into a valid uf2 file 😇

Any tips would be nice

@Mera-balou
Copy link

Hey @leperjulien, i also want to add a language. Did you manage to compile uf2 file with azerty support?

@leperjulien
Copy link
Author

Yes i managed to do it thanks to @mame82 who put me on the right track when i asked him on twitter !

you can find the compiled firmware in the fork of LOGITacker on my github if you need further help let me know

@learningsomethingnewanduseful

@leperjulien i do like to know how did u manage to do it. could you add it here so anyone else who likes to know can find it.

@cHJlaXpoZXI
Copy link

Hi leperjulien,

Thanks for the work for the French language. Can you give the method to compile? @mame82 has released the 2.1 beta version, and I want with the French keyboard compatibility.

Thanks in advance ;)

@leperjulien
Copy link
Author

leperjulien commented Oct 26, 2019

Sure you need to download this script : https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2conv.py

And next you will navigate to : LOGITacker/apr-dongle/blank/armgcc/

Next you want to type : make and hit enter ! When the build is finish you should have a new folder named _build.

Put the file named uf2conv.py you download earlier in the same folder as the .hex file you just builded and then use this command to conver the .hex to .uf2 :

python uf2conv.py logitacker_aprdongle.hex -c -f 0xADA52840 -o firmware.uf2

New firmware is now here => firmware.uf2

All the credits for this goes to @mame82 :D

EDIT: fond this during a quick search => #4

@mame82
Copy link
Collaborator

mame82 commented Nov 22, 2019

Guys, here's a commit containing a layout addition for DA.

You might find it useful, as it shows which parts of code have to be touched:

f44c0c1

@sogewasp
Copy link
Contributor

sogewasp commented Jan 14, 2020

I've managed to make it compile and work with the added FR language (a lot of work was already done by @leperjulien).

Anyway this line seems to break compilation:

// French                                                                                                             

DEF_REPORT_SEQUENCE_RALT_AND_EQUAL(RALT_AND_EQUAL,    »·· DEF_REPORT(HID_MOD_KEY_RIGHT_ALT, HID_KEY_EQUAL));

Gives this error:

../../../logitacker/logitacker_keyboard_map.h:240:37: error: expected ')' before '{' token
 #define DEF_REPORT_1(modifier,key1) { .mod = modifier, .keys = { key1 } }

So I've just commented it. I don't think it changes that much as another line is already present from DA config :

DEF_REPORT_SEQUENCE_NAMED(US_RALT_AND_EQUAL,»···»···»···         DEF_REPORT(HID_MOD_KEY_RIGHT_ALT, HID_KEY_EQUAL));

The pull request which adds this feature is #44

@FMehault
Copy link

FMehault commented Feb 22, 2020

This little message to inform you that I just managed to add FR keyboard support on LOGITacker v0.2.3-beta, inspired by @leperjulien's work and with @mame82's indications. Many thanks to them.

I've made some modifications to the following files :

https://github.com/FMehault/LOGITacker/blob/LOGITackerFR/logitacker/logitacker_keyboard_map.h
https://github.com/FMehault/LOGITacker/blob/LOGITackerFR/logitacker/logitacker_keyboard_map.c

The covert_channel is functional with "option inject language fr". Sharplock too !

@FMehault
Copy link

FMehault commented Mar 5, 2020

I compiled the azerty keyboard support for all dongles

https://github.com/FMehault/LOGITacker/tree/master/build

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

No branches or pull requests

7 participants