PostFrontal Forum
PostFrontal Forum
PF Home | International_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?


 All Forums
 LK8000 International Support
 General Support
 Changing MC Setting using the BT Keyboard
 New Topic  Reply to Topic
Author  Topic Next Topic  

N2cee
Pulcino

11 Posts

Posted - 09/01/2022 :  18:06:22  Show Profile  Reply with Quote
Hi all,

is there anyone who can tell me how to get into the LK8000 menu using the keyboard in order to e.g. change the MC setting?

Once when I'm in the main menu (select Menu by touch) I'm able to navigate with the arrow keys but unfortunately the corresponding button (MC, +0.5, OK) cannot be confirmed neither using the LEFT-SHIFT key nor the 'Enter' key that allows to confirm a 'button' in the Airport screen (Goto, Set Alternate, Details, Task, ....)

As I do not use a real keyboard but generate the 'keys' by an arduino sketch, even a specific code to send is of interest.

Any hint is welcome.

Claus

Edited by - N2cee on 09/01/2022 18:44:33

brunotl
Pterodattilo

France
902 Posts

Posted - 10/01/2022 :  01:08:27  Show Profile  Reply with Quote
for device with keyboard :
F1 : show/hide menu
CANCEL : Hide Menu
UP/DOWN/UP/RIGHT : select menu button
RETURN : validate selected menu button
Go to Top of Page

N2cee
Pulcino

11 Posts

Posted - 10/01/2022 :  15:00:34  Show Profile  Reply with Quote
Bonjour Bruno,

I immediately tried the commands you sent.
Environment as follows:
7.2.1 running on Android device
'keyboard 2' configured in LK as device
USB OTG plugged in
PC keyboard connected
JavaScript embedded in HTML page to check keyboard hits

F1 is recognised by JavaScript but not by LK


Any idea what I did not consider / did wrong?


Claus

Edited by - N2cee on 10/01/2022 17:52:19
Go to Top of Page

brunotl
Pterodattilo

France
902 Posts

Posted - 10/01/2022 :  22:04:29  Show Profile  Reply with Quote
Hardware keyboard is currently only suported on Linux and Windows target

in theory keyboard can work on android but never tested, so reality can different from theory.

start point is to modify "HasKeyboard()" to detect connected keyboard on android device :
https://github.com/LK8000/LK8000/blob/4636d74e993134628decd5d732fc3bdf066d259c/Common/Header/Asset.hpp#L135

Edited by - brunotl on 11/01/2022 12:56:18
Go to Top of Page

N2cee
Pulcino

11 Posts

Posted - 12/01/2022 :  16:38:52  Show Profile  Reply with Quote
Bruno,

thanks for replying and taking my a step forward.

What I (finally) found out is, that using device = keyboard1/2/3 does NOT support navigation via menu by F1/up-down/enter at the same time.
Latter one is only possible when device=generic. But in this case jumping to the multi pages is not possible/not this easy. Is this correct? I cannot mix both?

As MC and BAL is crucial I decided to go ahead with the 'menu approach' (device = generic). To keep it less complex, I will continue on the PC environment. But here I face the problem I reported a little bit earlier, i.e. 'Navigation in ASP'. Can you please have a look into this?

Once fine with the PC version, I intend to continue with Android following your hint to enable the 'wired' keyboard modifying hasKeyboard() and compile a 'patched' version.

Best regards
Claus
Go to Top of Page

brunotl
Pterodattilo

France
902 Posts

Posted - 13/01/2022 :  17:21:39  Show Profile  Reply with Quote
quote:
Originally posted by N2cee
What I (finally) found out is, that using device = keyboard1/2/3 does NOT support navigation via menu by F1/up-down/enter at the same time.
Latter one is only possible when device=generic. But in this case jumping to the multi pages is not possible/not this easy. Is this correct? I cannot mix both?


right, i see 2 problem with keyboard1/2/3/A/B/C
- keycode are hardcoded for WinCE platform, but linux , android, and windows don't use the same code for same key of same keyboard...
- they have priority over menu handling and that's an error (menu should have priori if it is visible )

the second is simple to fix, i will do it.
unfortuantly it's not so simple for the first...

quote:
Originally posted by N2cee
As MC and BAL is crucial I decided to go ahead with the 'menu approach' (device = generic). To keep it less complex, I will continue on the PC environment. But here I face the problem I reported a little bit earlier, i.e. 'Navigation in ASP'. Can you please have a look into this?


i've look into the ASP dialog navigation and i've can't reproduce the problem, nor on Linux nor on windows ... i need more info ( version, platform; screen orient, airspaces files ... )

quote:
Originally posted by N2cee

Once fine with the PC version, I intend to continue with Android following your hint to enable the 'wired' keyboard modifying hasKeyboard() and compile a 'patched' version.




I've started to work on this point, i hope it should work soon ...
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.21 seconds. Snitz Forums 2000

Suggerimenti dello staff:

                                         

Note legali (italiano):
Privacy Policy Cookie Policy
Legal notice (english):
Privacy Policy Cookie Policy

PostFrontal S.A.S. di Giuliano Golfieri & c. - P.I. 05264240960