Yubico Forum
https://forum.yubico.com/

problems creating a scanmap for neo2 keyboard layout
https://forum.yubico.com/viewtopic.php?f=26&t=2773
Page 1 of 1

Author:  kjedamzik [ Thu Nov 02, 2017 6:52 pm ]
Post subject:  problems creating a scanmap for neo2 keyboard layout

Hi,

I have a YubiKey NEO-n and I'm trying to create a scanmap for the neo2 keyboard layout https://www.neo-layout.org/

I got the scan codes from:
https://github.com/Yubico/yubikey-perso ... anedit.cpp

... and came up with:
Code:

        'us': [ 'c', 'b', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'n', 'r', 't', 'u', 'v', 'C', 'B', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'N', 'R', 'T', 'U', 'V', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '!','\t','\n']
  'us-codes': ['06','05','0a','0e','08','17','0b','0f','1c','11','18','0d','16','09','0c','19','86','85','8a','8e','88','97','8b','8f','9c','91','98','8d','96','89','8c','99','27','1e','1f','20','21','22','23','24','25','26','9e','2b','28']
      'neo2': [ 'ä', 'z', 'a', 'l', 'e', 'o', 's', 'g', 'n', 'r', 't', 'b', 'c', 'w', 'h', 'p', 'Ä', 'Z', 'A', 'L', 'E', 'O', 'S', 'G', 'N', 'R', 'T', 'B', 'C', 'W', 'H', 'P', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '!','\t','\n']
'neo2-codes': ['15','11','12','09','12','0c','18','16','38','1d','08','0d','0e','0f','04','1a','95','91','b3','89','92','8c','98','16','b8','9c','88','8d','8e','8f','84','9a','27','1e','1f','20','21','22','23','24','25','26','9e','2b','28']


But when I try to set it up I get this error:

Code:
ykpersonalize -y -S 15111209120c1816381d080d0e0f041a9591b389928c9816b89c888d8e8f849a271e1f202122232425269e2b28
Firmware version 3.4.0 Touch level 1285 Program sequence 1

A new scanmap will be written.

Commit? (y/n) [n]: yes
Yubikey core error: write error



Is there anything obvious I'm doing wrong?
Can somebody help me debugging this issue ?

Cheers
Kofi

Author:  My1 [ Fri Nov 03, 2017 12:57 pm ]
Post subject:  Re: problems creating a scanmap for neo2 keyboard layout

a write error.
do you perhaps have at least one of your config slots locked?

I did read that you cant even change the USB Mode while a slot is locked to try to unlock it, and try again.

Author:  kjedamzik [ Fri Nov 03, 2017 3:39 pm ]
Post subject:  Re: problems creating a scanmap for neo2 keyboard layout

thank you,

no, its not protected I can always reset the scanmap with
Code:
ykpersonalize -y -S

I also deleted the config and tried again.

Author:  My1 [ Fri Nov 03, 2017 3:42 pm ]
Post subject:  Re: problems creating a scanmap for neo2 keyboard layout

do other scanmaps you copied from somewhere (like here: https://www.yubico.com/2013/07/yubikey- ... d-layouts/ ) work? if yes maybe there's something wrong in the scanmap, it's easy to mess up a character in a way too long string of hex digits.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/