PDA

View Full Version : opencockpits cdu script



dazchad
02-26-2012, 12:30 PM
has Anyone got the opencockpits cdu script to work with pmdg 737:???::???:

fordgt40
02-26-2012, 03:18 PM
Your best, and perhaps only bet, is to use the Michael Devlos driver and script etc. To the best of my knowledge no one has been able to write a SIOC script because PMDG refuse to provide a SDK which gives the necessary information on how to access their FMC command table .
Michael provides quite comprehensive instructions in his manual, so perhaps you should try again. This link may also help

http://www.mycockpit.org/forums/showthread.php/19366-PMDG-737NG-driver-for-OpenCockpits-CDU-B737-released

David

dazchad
02-26-2012, 03:52 PM
hi david its not the drivers its the script for the keys. the cdu screen works just the keys don't
daz

fordgt40
02-26-2012, 04:03 PM
Daz

The SIOC script is very basic, only a few lines. Suggest you check the instructions again. Does your SIOC screen match the example in the manual and can you see the key presses in the IOCPconsole

David

dazchad
02-26-2012, 04:14 PM
Daz

The SIOC script is very basic, only a few lines. Suggest you check the instructions again. Does your SIOC screen match the example in the manual and can you see the key presses in the nsoleIOCPco

David
no we can not see the key presses in IOCPconsole

fordgt40
02-26-2012, 04:23 PM
no we can not see the key presses in IOCPconsole

Presumably you can see the variables that were defined in the script, they just do not change when you press a key?

David

dazchad
02-26-2012, 04:26 PM
yes spot on i can not see the changes

fordgt40
02-26-2012, 04:34 PM
Daz

Having to ask the "simple" questions first:)
Apologies for another "simple" question - did you change the sioc.ini file to reflect your USBKeys device number?

David

dazchad
02-26-2012, 04:42 PM
IOCP_port=8091
IOCP_timeout=4000
Minimized=No
toggle_delay=20
CONFIG_FILE=.\scripts\sioc fmc pmdg.txt

IOCard_disable=No
IOCard_LPT=No

USBStepper=0,0
USBKeys=1,119
USBServos=0,0
USBRelays=0,0
USBDCmotor=0,0
USBAnalogic=0,0

FSUipcdisable=No
FSUipcRefresh=50

IOCPini_delay=3000
IOCPclient0_disable=no
IOCPclient0_host=192.168.16.3
IOCPclient0_port=8090
IOCPclient1_disable=Yes
IOCPclient1_host=localhost
IOCPclient1_port=8099

Sound_disable=yes
Volume=100

Sound=APDis.wav,-1,-1,-1

window =a.txt - Bloc de notas

#1=\B\A
#2=B
#3=C
#4=D
#5=E
#6=F
#7=G
#8=H
#9=I
#10=J
#11=K
#12=L
#13=M
#14=N
#15=O
#16=P
#17=Q
#18=R
#19=S
#20=T
#21=U
#22=V
#23=W
#24=X
#25=Y
#26=Z
#27=1
#28=2
#29=3
#30=4
#31=5
#32=6
#33=7
#34=8
#35=9
#36=0
#37=<
#38=,
#39=.
#40=-
#41=*
#42=+
#43=//
#44=/0
#45=/1
#46=/A
#47=
#48=
#49=
#50=\1\BM\2
#51=\3\1M\2\4
#52=\1\P\2
#53=\3,\4
#54=\3\1E\2\4
#55=\3\1B\2\4
#56=\1B\2
#57=\33\4
#58=\34\4
#59=\35\4
#60=
#61=
#62=
#63=
#64=\3\14\2\4
#65=\3\15\2\4
#66=\3\1,\2\4
#67=\3\10\2\4
#68=\3\13\2\4
#69=\3\1.\2\4
#70=\3\15\2\4
#71=\3\16\2\4
#72=\3\17\2\4
#73=\3\18\2\4
#74=\3\19\2\4
#75=\3\1ˇ\2\4
#76=
#77=
#78=
#79=
#80=
#81=
#82=
#83=
#84=
#85=
#86=
#87=
#88=<a
#89=\3\11\2\4
#90=\31\4
#91=\3\12\2\4
#92=\32\4
#200=<b

fordgt40
02-26-2012, 04:51 PM
Daz

You have not changed the sioc.ini files as outlined in the manual. These lines must be there

IOCP_port=8092
IOCPclient0_disable=No
IOCPclient0_port=8092

David

dazchad
02-26-2012, 04:58 PM
IOCP_port=8092
IOCPclient0_disable=No
IOCPclient0_port=8092
that port is for my mcp

dazchad
02-26-2012, 06:21 PM
this is the only part that im not happy with what is the source file:roll:

PMDG 737-NG Driver Manual CDU B737
OpenCockpits CDU Driver for PMDG 737 NG Written by Michael Delvos
Copyright © 2010 OpenCockpits – http://www.opencockpits.com
Now, paste them into your SIOC source file below the section called ‘Inicialización
variables’
..
// __________________________________________________ ________________
// Inicialización variables
//__________________________________________________ __________________
Var 1010, name CDUKey, Link USB_KEYS, Device 2
{
IF &CDUKey > 0
{
V1011 = &CDUKey
}
}
Var 1011, name LastCDUKey, LINK IOCP, OFFSET 9999, Value 0
..
These inserted lines define two variables; by default they are numbered 1010 and 1011.
Check out whether these numbers are used elsewhere in your script. If so, you’ll have to
change the numbers because they must be unique! The last edit you have to do is to enter
the correct device number (.., Device 2). Now, save your SIOC script, compile it and start
SIOC.
Firewall

fordgt40
02-26-2012, 06:33 PM
Daz

I assume Michael is talking about inserting his USBkeys code into another sioc script so that it all works together. Provided that your filename, which includes this code, matches the one in sioc.ini then there should not be a problem

One thing I have noticed is that he is using Device 2 in his definition for the CDUKey variable. If you have only one USBKeys card, then try removing the Device argument and also change your sioc.ini line to USBKeys=0,whatever your device number is

Edit: the last para may not work, if his .dll code is referencing a DEVICE 2 somewhere. So if it does not work then change it back again :)

I assume that your firewall is not blocking the port

David

dazchad
02-26-2012, 06:44 PM
yes my device number is 119 in usbcheck.
i can not see the SIOC source file to put in
// __________________________________________________ ________________
// Inicialización variables
//__________________________________________________ __________________
Var 1010, name CDUKey, Link USB_KEYS, Device 2
{
IF &CDUKey > 0
{
V1011 = &CDUKey
}
}
Var 1011, name LastCDUKey, LINK IOCP, OFFSET 9999, Value 0

enela
02-26-2012, 07:32 PM
hi Dazchad if it's for the PMDG FS9 version look at this:
http://www.opencockpits.com/modules.php?name=News&file=print&sid=365
hope this helps you.:D
regards
rakouth

fordgt40
02-27-2012, 05:19 AM
Rakouth

Daz has that Devlos file and is trying to make it work:D

Daz

Either add the above sioc lines to an exisiting source file eg your MCP one, or just create a new one with only the above lines. Make certain if you are adding this code to an existing sioc file that you are not already using var 1010 or 1011 The filename must match the name in your sioc.ini file eg CONFIG_FILE = ./???????

For the time being change the your SIOC.ini line saying USBKeys=??? to USBKeys=2,119 (ignore my previous post re device numbers)

Now check that you have precisely followed the manual, (have you now included the missing sioc.ini lines mentioned in a previous post) and check the Manual SIOC screen printout and advise whether yours exactly matches, if not please advise where and the details

David

enela
02-27-2012, 05:31 AM
Daz, an alternative is to use something like Prosim737.
I have used it as Prosim beta, it works fine for both FS9 and FSX,PMDG NGX no problem...
The script is provided with the software, setup very easy.
You can use all OC modules:MCP,EFIS,CDU (FMC) ,Throttle with it.
rakouth

fordgt40
02-27-2012, 06:27 AM
Daz, an alternative is to use something like Prosim737.
I have used it as Prosim beta, it works fine for both FS9 and FSX,PMDG NGX no problem...
The script is provided with the software, setup very easy.
You can use all OC modules:MCP,EFIS,CDU (FMC) ,Throttle with it.
rakouth


I think that a bit of effort in trying to solve this is better than spending 357 euros!!!

dazchad
02-27-2012, 08:28 AM
what is the source file there is it?

fordgt40
02-27-2012, 08:42 AM
Daz

I cannot put it any simpler. Either

1) Use the above script, call it whatever you like, put it in your sioc directory and amend your sioc.ini file to match the name

or

2) add the script to an existing sioc script and proceed as per post #16

Also read the link I posted earlier where Michael Devlos gave some advice about where to put files

David

dazchad
02-28-2012, 04:02 AM
i give up:-|

fordgt40
02-28-2012, 07:11 AM
Sorry to hear that:( :(
Try coming back to it later:D

David

dazchad
02-28-2012, 06:02 PM
:D got it working BUT my mcp as stopped :cry:

fordgt40
02-28-2012, 06:38 PM
Daz

No gain without pain:)

If you want some help, then you need to provide a bit more info:)

Well done

David