View Full Version : Opencockpit cards strange problem
Olympic260
08-09-2007, 07:34 AM
Hello,
First my setup. I am using 1 USB expansion card and two master cards. Each master card is tested and works OK connected to the USB by a DB25 M/F cable.
Today I tryied to test both master cards connected. I connected the 5V power to all cards and connected Master1 to J1 of USB and Master 2 at J2. Also changed the ini files so that The number of cards are 2.
Running controlador everything OK it recognises two cards. Tested the inputs on N1 master and everything OK, but when I test the inputs of master two they don't work as supposed. Closing Ground1 with Pin 1 at the controlador I am seeing all the inputs of this bank to be active pins (1-9) if I close ground2 with first pin of second bank I am getting the same so on.
If I change the masters and the No1 becomes No2 and vice versa I have the same problem. In few wolrds any card connected to J2 of the USB has the same problem. I have checked all connection at the usb just in case but haven't found anything.
Any suggestions???
Chris
nricky
08-09-2007, 07:39 AM
Hi Chris
In your sioc.ini file die you set it up so it knows that you have a USB card connected and 2 Master Card. What I believe your ini file is not set up probably.
You can send me your ini file and I will have a look at it. rick@nrick.net
Here is a cool page about Opencockpits. http://personales.ya.com/micabina737/iocards/hard/test1i.htm<o></o>
<o></o>
Cheers <o></o>
Norbert<o></o>
Olympic260
08-09-2007, 08:01 AM
Norbert I am not using SIOC yet. All the tests are made by Controlador program. As I wrote controlador says 2 cards connected. If there was only 1 master declared then the 2nd one wont work at all.
Below are my ini files
IOCARD.ini
[ fichero de configuracion para el programa IOCARD ]
[ Configuration file for IOCARD ]
[ Uso de Expansiσn USB ]
[ Iocard Master expansion USB ]
USB=Yes
[ Mϊltiples USBs ]
[ Non unique USB ]
MUSB=No
[ Nϊmero de perifιrico para el USB ]
[ USB Device number ]
deviceUSB=2048
[ Nϊmero de A/D a usar de la placa de Expansiσn USB ]
[ A/D used by Iocard Master expansion USB ]
USB_AD=0
[ Puerto donde se encuentra conectada la IOCard Master ]
[ Iocard Master, parallel port address ]
Port=$0378
[ Modo compatible yes/no , necesita cable especial ]
[ Compatibility Mode yes/no, needed special cable ]
FullCompatible=No
[ Numero de tarjetas Master inter-conectadas ]
[ Number of connected master cards ]
NCards=2
[ Utiliza placa de expansiσn yes/no]
[ Use Expansion card yes/no]
Expansion=Yes
[ Activar en modo SIMULADOR yes/no]
[ Use simulated card yes/no]
simulator=no
[ Retraso necesario para las variables toggles (Project Magenta)]
[ Deley needed for var. toggles (Project Magenta) ]
TOGGLE_DELAY=2
[ Refresco de FSUIPC ]
[ FSUIPC refresh ]
FSUipcRefresh=100
[ Desabilitar lectura de las FSUIPC ]
[ FSUIPC disable mode yes/no ]
FSUipcdisable=no
[ Refresco de poll tarjetas Master ]
[ Master cards refresh ]
MasterRefresh=10
[ Desabilitar protocolo IOCP ]
[ IOCP disable mode yes/no ]
IOCPdisable=yes
[ Direcciσn IP local para el protocolo IOCP (UDP) ]
[ IP address for IOC protocol (UDP) ]
ioc_ip=127.0.0.1
[ Puerto local para el protocolo IOCP (UDP) ]
[ port for IOC protocol (UDP) ]
ioc_port=8090
[ Nombre y localizaciσn del fichero de configuraciσn ]
[ Name and path of Config file ]
ConfigFile=.\iocard.dat
[ Nombre exacto de la ventana donde se enviarαn las teclas ]
[ Name of window for key send ]
[window = "Project Magenta Glass Cockpit - Build 396" ]
window = "a.txt - Bloc de notas"
[ End of File ]
Controlador.ini
[ fichero de configuracion para el programa CONTROLADOR ]
[ Configuration file for CONTROLADOR ]
[ Uso de Expansiσn USB ]
[ Iocard Master expansion USB ]
USB=Yes
[ Mϊltiples USBs ]
[ Non unique USB ]
MUSB=No
[ Nϊmero de perifιrico para el USB ]
[ USB Device number ]
deviceUSB=2048
[ Nϊmero de A/D a usar de la placa de Expansiσn USB ]
[ A/D used by Iocard Master expansion USB ]
USB_AD=0
[ Puerto donde se encuentra conectada la IOCard Master ]
[ Iocard Master, parallel port address ]
Port=$0378
[ Modo compatible yes/no , necesita cable especial ]
[ Compatibility Mode yes/no, needed special cable ]
FullCompatible=No
[ Utiliza placa de expansiσn yes/no]
[ Use Expansion card yes/no]
Expansion=no
[ Activar en modo SIMULADOR yes/no]
[ Use simulated card yes/no]
simulator=no
[ Numero de tarjetas Master inter-conectadas ]
[ Number of connected master cards ]
NCards=2
[ Refresco de poll tarjetas Master ]
[ Master cards refresh ]
MasterRefresh=10
[ End of File ]
Config IO card ini
[ fichero de configuracion para el programa IOCARD ]
[ Configuration file for IOCARD ]
[ Uso de Expansion USB ]
[ Iocard Master expansion USB ]
USB=yes
[ Multiples USBs ]
[ Non unique USB ]
MUSB=No
[ Numero de periferico para el USB ]
[ USB Device number ]
deviceUSB=2048
[ Numero de A/D a usar de la placa de Expansion USB ]
[ A/D used by Iocard Master expansion USB ]
USB_AD=0
[ Numero de tarjetas Master inter-conectadas ]
[ Number of connected master cards ]
NCards=2
[ Utiliza placa de expansion yes/no]
[ Use Expansion card yes/no]
Expansion=No
[ Activar en modo SIMULADOR yes/no]
[ Use simulated card yes/no]
simulator=no
[ Refresco de FSUIPC ]
[ FSUIPC refresh ]
FSUipcRefresh=100
[ Desabilitar lectura de las FSUIPC ]
[ FSUIPC disable mode yes/no ]
FSUipcdisable=no
[ Refresco de poll tarjetas Master ]
[ Master cards refresh ]
MasterRefresh=10
[ Desabilitar protocolo IOCP ]
[ IOCP disable mode yes/no ]
IOCPdisable=yes
[ Direccion IP local para el protocolo IOCP (UDP) ]
[ IP address for IOC protocol (UDP) ]
ioc_ip=127.0.0.1
[ Puerto local para el protocolo IOCP (UDP) ]
[ port for IOC protocol (UDP) ]
ioc_port=8090
[ Nombre y localizacion del fichero de configuracion ]
[ Name and path of Config file ]
ConfigFile=.\test.dat
[ Nombre exacto de la ventana donde se enviaran las teclas ]
[ Name of window for key send ]
[window = "Project Magenta Glass Cockpit - Build 396" ]
window = "a.txt - Bloc de notas"
[ End of File ]
nricky
08-09-2007, 10:47 AM
Hi Chris
Will try your ini files when I get home and that post my results.
Cheers
Norbert
nricky
08-09-2007, 03:26 PM
HI Chris<o>
</o>I just used your INI file on my hardware and it just worked fine for Controlador.ini file. I guess it might be that the master cards are on the wrong position on the USB card, that could be one reason. I also had that problem once, it drove me nuts. And you are making the right connection on the master card for the inputs.<o></o>
<o> </o><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"/> <v:f eqn="sum @0 1 0"/> <v:f eqn="sum 0 0 @1"/> <v:f eqn="prod @2 1 2"/> <v:f eqn="prod @3 21600 pixelWidth"/> <v:f eqn="prod @3 21600 pixelHeight"/> <v:f eqn="sum @0 0 1"/> <v:f eqn="prod @6 1 2"/> <v:f eqn="prod @7 21600 pixelWidth"/> <v:f eqn="sum @8 21600 0"/> <v:f eqn="prod @7 21600 pixelHeight"/> <v:f eqn="sum @10 21600 0"/> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/> <o:lock v:ext="edit" aspectratio="t"/> </v:shapetype><v:shape id="Bild_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75" style='width:447pt;height:315.75pt;visibility:visible;mso-wrap-style:square'> <v:imagedata src="file:///C:\DOKUME~1\Norbert\LOKALE~1\Temp\msohtmlclip1\01\clip_image001.png" o:title=""/> </v:shape><![endif]--><!--[if !vml]-->http://personales.ya.com/micabina737/iocards/hard/assets/j3j4.jpg
<!--[endif]--><o></o>
If you still have problems fell free to ask.
<o></o>
Cheers<o></o> Norbert
http://personales.ya.com/micabina737/iocards/hard/assets/num.jpg
<o></o>