PDA

View Full Version : Getting MCDU's to work with Jeehell



Barrykensett
02-10-2016, 05:17 PM
Tried to get MCDU's working today.
I have two different ones, one is Open Cocpits with IOKeys card, second is FDS Plug and Play.

With the OC unit I used the SIOC creator in the Jeehell hardware section. Worked fine amd I have all functions in the MCDU working off the keys. The program has created a JeehellWare .ssi file:
#Var 0001, name keyfo, Link USB_Keys and text file Var1, name keyfo, Link USB_Keys,Device 0
Problem now is that all my other SIOC devices don't work as the Jeehell created .ssi has replaced mine.
(I have backup of course).
Can I just change the variable (0001 is already used) and add the line to the bottom of mine?

The FDS unit is not recognised in the hardware devices, probably it is too old. However the text keys all work OK but not the LSK's and function keys. With my previous AST software there was a "keyteacher" to sort this out but that won't work outside of AST. Is there an alternative keyteacher I can use?

Barry
www.a320sim.com

jeehell
02-10-2016, 06:41 PM
Hello Barry,

A. SIOC
You can proceed in two different ways.
1. you mix the two scripts yourself, make the numbering yours. However you need to change the c:\A320FMGS\Hardware Modules\FMGSServer.iocp.ini file and point the line USBKeys to the right variable number.
2. you use SIOC creator to mix the scripts. In the "General" tab, you can add several scripts coming from several files. You will just need to renumber the variable 0001 in your own script to another number not yet used. If you use named variables, it should not be too difficult.

Solution 1 is easy for one time change. however if you add opencockpit hardware at some point, you will need to do that every time you change the SIOCCreator generated script.
Solution 2 means you need to renumber your scripts variables (take numbers in the 1000+ range) once, but then every changes in SIOC Creator is easily implemented.


B. MCDU
I do not know how your MCDU works. If it is not shown in IIT Creator, this means it is not an interfaceIT module.
I suppose it is in fact a "regular" USB keyboard disguised in an MCDU? so if you run Notepad even without any other software running you can type text?
If so, if will take me some time to add support for that, but it is possible to do it (if it's ok for you to use the other MCDU meanwhile...). Easiest for me would be to know exactly which key is typed by each button (well at least the ones not working...).


Regards,
JL

Barrykensett
02-11-2016, 12:59 PM
Jean Luc

SIOC working fine now, I took Method 1 this time as I have a long SIOC script with many variables and it would take time and also leave room for errors. I have recorded your notes so I can revisit.
The other MCDU made by FDS but early version is indeed a typewriter, I could have written this on it. This only applies to the alpha/numeric keys. I tried an online keytester but it did not tell me what the other keys transmit.
I am not expecting you to write a routine just for me but I may not be the only user who may come across this. For a start I need pointing to a routine which will detect the keypresses, perhaps somebody out there can help? Surely also there is a little programme out there which will convert the keys I press into what I want to send. This is after all what the AST software had similar to your SIOC generator.
A fallback is to rebuild the MCDU with IOcards but already have the FCU to rebuild - so much work!
Thanks as always for your help, you are very tolerant of your "patients"!
Barry
www.a320sim.com

jeehell
02-11-2016, 01:58 PM
I doubt the LSKs are hard to figure out. They probably are function keys (F1 to F12...). When using the MCDU, pressing does not change the pages? because in the softawre MCDU I use F1-F12 as the pages keys (FPLN, INIT, PERF,PROG etc).
If you don't find an application which tells you which key is pressed, I'll write it quickly for you.

Regards
JL

jeehell
02-11-2016, 02:00 PM
this website seems to give something
http://unixpapa.com/js/testkey.html
it will give you numeric values (keycode). I need the table of correspondance between key and keycode...

JL

FlybyWire
02-21-2016, 06:22 AM
Hello Jean-Luc,

iŽam very happy to read your post. IŽam using a MCDU with a USB-Keyboardcontroller and i having some Problems with the key-assignments. Most of the keys (Num, Alpha-, LSK) work fine, but i have some Problem with the assignment of the Pagekeys (DIR, PROG, PERF,...). Some of the keys have a wrong mapping (i fixed it via autohotkey). But i have Problems to find the keys for ATCComm and OVFY?!

May it be possible, that you insert a Section in the INI File for Map individual Keys with the MCDU-Function?

like ->
[MCDU-Keys]
LSKL1=0x70
LSKL2=0x71
...
DIR=0x7C
PROG=0x7D
...

(Taking the keyValues from this list: http://www.kbdedit.com/manual/low_level_vk_list.html)

Thanks a lot for your excellent Work and have a nice Weekend!!

Best Regards
Joerg

FlybyWire
02-21-2016, 02:18 PM
Hello Jean-Luc,


iŽam very happy to read your post. IŽam using a MCDU with a USB-Keyboardcontroller and i having some Problems with the key-assignments. Most of the keys (Num, Alpha-, LSK) work fine, but i have some Problem with the assignment of the Pagekeys (DIR, PROG, PERF,...). Some of the keys have a wrong mapping (i fixed it via autohotkey). But i have Problems to find the keys for ATCComm and OVFY?!


May it be possible, that you insert a Section in the INI File for Map individual Keys with the MCDU-Function?


like ->
[MCDU-Keys]
LSKL1=0x70
LSKL2=0x71
...
DIR=0x7C
PROG=0x7D
...


(Taking the keyValues from this list: http://www.kbdedit.com/manual/low_level_vk_list.html)


Thanks a lot for your excellent Work and have a nice Sunday Evening!!


Best Regards
Joerg

Migelito
05-14-2016, 10:46 AM
Hyi Jean Luc!

I have a new FDS MCDU. In ITcreator I can assign the knobs, but they have a dual input (Press and release action), so a "1" is inserted in the MCDU as a "11".
Unfortunately I can select the icon on startup ("seperate press/release action") of the ITcreator, but when selecting "CDU...", these click icons disappear and I can just push "assign action" or "delete action". No choice of "seperate press/release action" anymore.

Any suggestions?

Thanks
Michael

pete_fuss
09-02-2016, 06:44 AM
Hello Jean-Luc,

first of all, thanks to your great Software!

Any news about the Problem with the old FDS MCDU USB-Keyboardcontroller?
i use two of them in my Cockpit!

Regards

Peter

jeehell
09-02-2016, 11:17 AM
It's been a while already since the MCDU can use custom keyboard inputs. It is is detailed in the MCDU folder to easily assign keys...

JL

Barrykensett
09-02-2016, 01:00 PM
It's been a while already since the MCDU can use custom keyboard inputs. It is is detailed in the MCDU folder to easily assign keys...

JL

I thought we had fixed this one. With JL help I put together the following CPTkeys.ini which works with my old style FDS MCDU

[keys]
DIRTO=CTRL+F1
PROG=CTRL+F2
PERF=CTRL+F3
INIT=CTRL+F4
DATA=CTRL+F5
BLANK1=SHIFT+F6
FPLN=CTRL+F6
RADNAV=CTRL+F7
FUELPRED=CTRL+F8
SECFPLN=CTRL+F9
ATCCOM=CTRL+F11
MCDUMENU=CTRL+F10
BRT=SHIFT+B
DIM=SHIFT+D
AIRPORT=CTRL+F12
BLANK2=
LEFT=LEFT
RIGHT=PAGEDOWN
CURSOR UP=UP
CURSOR DOWN=DOWN
DECIMAL=.
+=PLUS
-=SPACE
HOME=SHIFT+O
SLASH=/
CLEAR=DELETE
0=0
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9
A=A
B=B
C=C
D=D
E=E
F=F
G=G
H=H
I=I
J=J
K=K
L=L
M=M
N=N
O=O
P=P
Q=Q
R=R
S=S
T=T
U=U
V=V
W=W
X=X
Y=Y
Z=Z
LSK1=F1
RSK1=F7
LSK2=F2
RSK2=F8
LSK3=F3
RSK3=F9
LSK4=F4
RSK4=F10
LSK5=F5
RSK5=F11
LSK6=F6
RSK6=F12

Hope it works for you
Barry

pete_fuss
10-06-2016, 03:21 AM
Hello Barry,

great work, thanks.
Now most of the MCDU keys are now working!

Only this 5 not!

+=PLUS
-=SPACE
HOME=SHIFT+O
SLASH=/
CLEAR=DELETE

Have you any idea who i can bring it to work?

Greetings Peter

pete_fuss
10-06-2016, 03:22 AM
Hello,

it`s me again!

Wath language must i use to get your entries work??

Greetings Peter

jeehell
10-06-2016, 03:21 PM
The MCDU faceplate is a thales one. The +/- key is a single key. So you cannot use separate keys for + and -.
There is no HOME button??
SLASH would be: SLASH=DIVIDE
Clear would be as you worite: CLEAR=DELETE

pete_fuss
10-07-2016, 07:45 AM
Hello JL,

my MCDU is a very old one from FDS

with this layout:
http://www.mycockpit.org/forums/attachment.php?attachmentid=11793&stc=1

Now i found out that my Captains MCDU Clear Key is not working!
I to it with the Copilots MCDU and now the clear Button ist working.

And the Shlaskey works too!

So i only missing +, - and OVYFY Key.

But now i can work with the MCDU, i think i need this three keys not so much!

Now i can go to get my Overheadpanel work with your Offset in FSBus!

Greetings Peter