PDA

View Full Version : Problem with 4th Mastercard



Jerrymc3
09-17-2013, 08:50 PM
I added a 4th Mastercard for my Homemade B747-400 Overhead Panel. When I enabled it in my ini file, started the SIOC Monitor and clicked on ALL ON I got this error message and none of the digital outputs were activated: "Access violation at address 0046A1FD in module 'siocmonitor.exe'. Read of address 0000200C." I tried another mastercard and the same thing happened. Could it be a bad chip on my USB Espansion Card and if so how do I figure out which one?

CanberraACT
09-17-2013, 10:52 PM
Just checking the obvious Jerry,

You are supplying enough current at 5 volts to J5 on the USB card?

J5 = REGLET 2 PINS 5V+ POWER OUTPUT

If not, you may have been dragging enough current through the computer's USB socket to power/control three MC cards but not enough when you added the last one?

CanberraACT

Jerrymc3
09-18-2013, 11:55 AM
Made sure - 5.17V. Each mastercard is connected to a separate 5V feed from a 300W power supply.

Jerrymc3
09-18-2013, 02:18 PM
Okay, I swapped USB Card with one that was working for my MCP/Radios. Still got the error. Unplugged inputs & outputs on the 4th card-error. Unplugged 4th card from USB Card. The only way I can get the error message to stop is to disable the 4th card in my ini file. Oh, I'm using SIOC ver 4.4B1

Here is my ini file:

[ fichero de configuracion para el SIOC ver. 4.3 ]
[ Configuration file for SIOC ]


[************** SIOC ***************]

[ Nombre asignado al SIOC ]
[ SIOC name ]
Name=Main

[ Puerto del servidor IOCP ]
[ IOCP port ]
IOCP_port=8092

[ Tiempo de respuesta máximo de los paquetes IOCP ]
[ IOCP Timeout ]
IOCP_timeout=4000

[ Arranque minimizado en la barra ]
[ Start minimized in tray ]
Minimized=No

[ Retraso necesario para las variables toggles (Project Magenta)]
[ Deley needed for var. toggles (Project Magenta) ]
toggle_delay=20

[ Fichero de configuracion ]
[ Configuration File ]
CONFIG_FILE=.\PM_B747-400.ssi

[************** MONITOR MODULE ***************]

[ Desabilitar monitorizacion remota del SIOC ]
[ Remote monitor disable mode yes/no ]
Monitor_disable=No

[ Refresco broadcast monitor (en segundos) ]
[ Broadcast monitor time (seconds) ]
Monitor_time=2


[************** IOCARDS MODULE ***************]

[ Desactivar el módulo de las IOCards ]
[ Disable IOCards module ]
IOCard_disable=No

[ Divisor de frecuencia para los ejes analogicos (1-999). Retarda la entrega de valores. ]
[ Frequency divisor for delay the analogic axes. (1-999)]
Divisor_AD=10

[------------- CARDS CONFIG -------------]

[ IOCard Master ]
[...............]

[ Spanish : ]

[ MASTER=(Indice device),(Tipo),(Número de tarjetas),(Número device) ]

[ Indice Device: Índice usado en la variable SIOC como device, para indicar a que tarjeta se hace referencia ]
[ Se usa 0 en el caso de que sólo haya una tarjeta y no se tenga en cuenta el número de device, por defecto un script en SIOC cuando no se pone parámetro DEVICE, se hace referencia al índice 0]

[ tipo = 0 : Emulador de Master Card // OBSOLETO ]
[ tipo = 1 : Tarjeta Master conectada al puerto paralelo directamente // OBSOLETO ]
[ tipo = 2 : Tarjeta Master conectada al puerto paralelo mediante cable de compatibilidad // OBSOLETO ]
[ tipo = 3 : Placa de expansión por puerto paralelo // OBSOLETO ]
[ tipo = 4 : Tarjeta USBExpansion usada ]
[ tipo = 5 : Modulo MCP de Opencockpits ]
[ tipo = 6 : Tarjeta USBOutputs ]
[ tipo = 7 : Modulo EFIS de Opencockpits ]
[ tipo = 8 : Modulo Radio COM de Opencockpits ]
[ tipo = 9 : Modulo Radio NAV de Opencockpits ]
[ tipo = 10 : Modulo Radio ADF de Opencockpits ]
[ tipo = 11 : Modulo Radio ATC de Opencockpits ]
[ tipo = 12 : Modulo Radio Airbus RMP de Opencockpits ]
[ tipo = 13 : Modulo FMC-737 de Opencockpits ]
[ tipo = 14 : Tarjeta USBDcmotorPLUS ]
[ tipo = 15 : Modulo MCP V3 de Opencockpits ]


[ Número de tarjetas = Número de placas Master usadas, 1 a 4 para uso de placas de expansión, 1 para conexión de placa Master directa o del Emulador ]

[ Número de device = 0 en el caso del Emulador o primera tarjeta USB detectada, Dirección del puerto paralelo (por ejemplo $0378), o número de dispositivo USB ]


[ Un ejemplo de 2 USBExpansion conectadas con 3 y 2 placas Master ]
[ MASTER=0,4,3,22 ]
[ MASTER=1,4,3,24 ]

[ Un ejemplo de conexión a simulador ]
[ MASTER=0,0,1,0 ]


[ English : ]

[ MASTER=(Device index),(Type),(Number of cards),(Device number) ]

MASTER=0,4,3,23
MASTER=1,4,4,25



[ Device index : Index used in SIOC variable like device, this is the card used for SIOC sentence ]
[ Use 0 for only one card, for this value you not need specify Device number. If you not use DEVICE parameter in a definition in SIOC script, the default index used is 0]

[ type = 0 : Master Card Emulator // OBSOLETE ]
[ type = 1 : Master Card connected directly to parallel port // OBSOLETE ]
[ type = 2 : Master Card connected throught compatibility cable to parallel port //OBSOLETE]
[ type = 3 : Expansion Card connected throught parallel port //OBSOLETE ]
[ type = 4 : USBExpansion Card used ]
[ type = 5 : Opencockpits MCP module ]
[ type = 6 : USBOutputs Card used ]
[ type = 7 : EFIS module ]
[ type = 8 : Radio COM module ]
[ type = 9 : Radio NAV module ]
[ type = 10 : Radio ADF module ]
[ type = 11 : Radio ATC module ]
[ type = 12 : Radio RMP Airbus module ]
[ type = 13 : FMC-737 module ]
[ type = 14 : USBDCmotorPLUS Card used ]
[ type = 15 : MCP V3 module ]

[ Number of Cards = Master cards connecteds, 1 to 4 for expansion cards, 1 for a Master card directly connected or Emulator ]

[ Number of device = 0 for Emulator or first USB card detected, parallel port address, device number for specifies USBexpansion card ]

[ For example, two USBExpansion cards connected with 3 and 2 Master cards used ]
[ MASTER=0,4,3,22 ]
[ MASTER=1,4,2,24 ]

[ For example, use of Master card emulator ]
[ MASTER=0,0,1,0 ]

[ Use the first USBExpansion card connected with only one Master Card attached ]
[ Esta definición es para usar la primera tarjeta USBExpansion que se encuentre instalada que además llevará conectada una placa Master ]

[MASTER=3,6,1,252]
[MASTER=0,4,1,0]
[MASTER=0,12,1,0]
[MASTER=0,15,1,0]

[ Others Cards / Otras tarjetas ]
[...............................]

[ Spanish : ]

[ Nombre_de_tarjeta=(Indice device),(Número device) ]

[ Indice Device: Índice usado en la variable SIOC como device, para indicar a que tarjeta se hace referencia ]
[ Se usa 0 en el caso de que sólo haya una tarjeta y no se tenga en cuenta el número de device, por defecto un script en SIOC cuando no se pone parámetro DEVICE, se hace referencia al índice 0]

[ Número de device = 0 para usar primera tarjeta USB de este tipo detectada ó número de dispositivo USB ]


[ English : ]

[ Name_of_card=(Device index),(Device number) ]

[ Device index : Index used in SIOC variable like device, this is the card used for SIOC sentence ]
[ Use 0 for only one card, for this value you not need specify Device number. If you not use DEVICE parameter in a definition in SIOC script, the default index used is 0]

[ Number of device = 0 for first USB card of this type detected, or device number for a specifies device ]

[ Ejemplo de dos USBServos en indices 0 y 1, y números de devices 17 y 23 ]
[ Example of two USBServos for index 0 and 1, and device number 17 and 23 ]

[ USBServos=0,17 ]
[ USBServos=1,23 ]


USBStepper=0,0
USBKeys=0,0
USBServos=0,0
USBRelays=0,0
USBDCmotor=0,0

[ Para los ejes analógicos se usan los números de devices de las tarjetas donde están alojados ]
[ For analogic axles, you use the device number of cards what allow the axles ]

USBAnalogic=0,0


[************** FSUIPC MODULE ***************]

[ Desabilitar lectura de las FSUIPC ]
[ FSUIPC disable mode yes/no ]
FSUipcdisable=No

[ Refresco recepción FSUIPC ]
[ FSUIPC refresh ]
FSUipcRefresh=50


[************** IOCP CLIENTS MODULES ***************]

[ Retraso para inicializacion una vez conectado el cliente en milisegundos ]
[ Delay for initialization when client has been connected in mseconds ]
IOCPini_delay=3000

[************** IOCP CLIENT MODULE #0 ***************]

[ Desactivar el módulo cliente IOCP ]
[ Disable IOCP client module ]
IOCPclient0_disable=No

[ IP del servidor donde debe de conectar el cliente ]
[ IOCP client host name ]
IOCPclient0_host=localhost

[ Puerto de envio del protocolo IOCP cliente ]
[ IOCP client port ]
IOCPclient0_port=8099


[************** IOCP CLIENT MODULE #1 ***************]

[ Desactivar el módulo cliente IOCP ]
[ Disable IOCP client module ]
IOCPclient1_disable=Yes

[ IP del servidor donde debe de conectar el cliente ]
[ IOCP client host name ]
IOCPclient1_host=localhost

[ Puerto de envio del protocolo IOCP cliente ]
[ IOCP client port ]
IOCPclient1_port=8099


[************** SOUND MODULE ***************]

[ Ficheros de sonido ]
[ Sound Files ]

[ Desactivar el módulo de sonido ]
[ Disable Sound module ]
Sound_disable=yes

[ Volumen general de los sonidos 0-100 ]
[ Master Volume 0-100 ]
Volume=100


[ put '*' first filename for loop Sound ]
[ anteponer '*' en el fichero para bucle continuo de sonido]

[ Sound=wav_file,frequency,volume,pan ]
[ frequency=100 to 100000 0=original -1=current ]
[ volume=0 to 100, -1=current ]
[ pan=-100 (left) to +100 (right) 0=center -1=current ]

[ Sound=Fichero_wav,frecuencia,volumen,balance ]
[ frecuencia=100 hasta 100000 0=original -1=Por defecto ]
[ volumen=0 hasta 100 -1=Volumen por defecto ]
[ balance=-100 (Izquierda) hasta +100 (Derecha) 0=centro -1=Por defecto ]

[ #1 ]
Sound=APDis.wav,-1,-1,-1

[ #2 ]
Sound=*outermk.wav,-1,-1,-1

[ #3 ]
Sound=*hello.wav

[************** KEYBOARD EMULATOR MODULE ***************]

[ 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


[ Asignación de teclas ]
[ assign youe keys ]

#1=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=
#51=
#52=
#53=
#54=
#55=
#56=
#57=
#58=
#59=
#60=
#61=
#62=
#63=
#64=
#65=
#66=
#67=
#68=
#69=
#70=
#71=
#72=
#73=
#74=
#75=
#76=
#77=
#78=
#79=
#80=
#81=
#82=
#83=
#84=
#85=
#86=
#87=
#88=<a
#200=<b

[ End of File ]</b
</a

Jerrymc3
09-18-2013, 09:18 PM
Yes, I have to set the 2nd USB Card to 3 Mastercards to keep from getting the error message.

MASTER=0,4,3,23
MASTER=1,4,3,25

iwik
09-19-2013, 02:28 PM
Jerry,
What happens if you only turn on a few outputs for this card?. Don't turn them all on as I suspect what David says is correct. If you can turn on some and then it happens try running the last card from its own p/s.

Les

Jerrymc3
09-20-2013, 05:39 PM
I replied yesterday but I'm not sure what happened. It disappeared. As I said before, I can disconnect my output cable from the 4th Mastercard J2 and I still get the error message. I can even unplug the Mastercard from the Expansion card and still get the error. The only way to stop it is to change from 4 to 3 cards in the ini file. I'm using 8 conductors of a 10 conductor 24ga. cable to feed the 5v to the 4 cards. I wonder if that could be causing a problem. Maybe the conductors need to be separated. Is it okay to use twisted pair? One other question. I bought a couple of 120VAC - 5VDC adapters but I was afraid to use them on my Mastercards because the actual output voltage was 8.3VDC. I read somewhere that more than 5v could burn the Mastercard. Is that right?

Perik
09-20-2013, 07:02 PM
Jerry

A wild shot, but to me it sounds like a problem with the SIOC Monitor itself.
I expect you are running version 1.2. Can you try the previous version
which I believe should be 1,0c or even go back to 1.0.

BTW - Manuel is working on an update of 1.4 version (part of SIOC 4.5B1) as that
one seems to fail on certain systems. It could be part of the same problem.

Have you asked on the OC forum? (Yes, I know they are "slow" answering or not at all :-()

iwik
09-20-2013, 08:59 PM
Jerry,
I agree with Per-Erik, it sounds like a problem with sioc and not with hardware.
Good suggestion By Per-Erik.

Les

Jerrymc3
09-20-2013, 11:11 PM
Yes, I'm running ver1.2 of the Sioc Monitor. I'll try switching back to 1,0c. Still would like some input on the AC adapter though.

iwik
09-21-2013, 12:23 AM
Jerry,
Don't put more than 5v on the Master card. PC p/s are dirt cheap and have plenty of current available.
If you need further help just ask.
Les

Jerrymc3
09-21-2013, 04:58 PM
Thanks, I'll try changing to a larger wire first and if that doesn't work I'll go to ver. 1.0c.

CanberraACT
09-23-2013, 11:22 PM
Hello Jerry,

Last night I was reading the Open Cockpits Manual for the USB card. I need to retract my earlier post regarding the need for a 5V power supply. Can you check the manual (At the top of one of the later pages - can't remember the page number) but it says that each of the four Master Card requires 5 volt but NOT the USB Card. In fractured English, it says the 5V connection on the USB card is an output for small accessories - not a 5V input. Maybe that is causing the problem?

Try that and see what happens?

Aussie123

Jerrymc3
10-05-2013, 05:07 PM
Haven't had time the past week to work on this. I powered each of 4 mastercards with a separate 18ga cable from the power supply. Didn't make any difference. I wasn't connecting anything to the 5V input on my Expansion card. I just tried turning on each Digital Output individually in the SIOC Monitor (all 4 cards) and now with all outputs on there is no error message and all the leds I have connected so far (133) are on. Seems to me the problem is with the ALL ON/ALL OFF Commands in the monitor. I tried clicking ALL OFF and I got the same Access Violation error and none of the outputs went off. Funny, it works fine with 3 cards enabled though.

popovichyr
10-06-2013, 02:29 AM
My name is Yaroslav.
I have exactly the problem with 4 mastercard with the ALL ON/ALL OFF Commands in the monitor.I do not know how to solve it.

iwik
10-06-2013, 02:44 AM
Guys,
Does this error still occur if you disconnect the 5volts to the Master cards?.
If it does then I don't think its a P/S problem.
The problem when one has turn ALL Leds on or off there is a Sudden load on the P/S which can lead to spikes
and glitches which affect software.
Please report back the results.

Les
P.S Have you tried to write a small sioc script to turn leads on and then off. Maybe tie it to
a switch. Your problem maybe a Monitor one and this would prove it.

Perik
10-08-2013, 05:41 PM
Hi Jerry

New SIOC version (4,6B1) available</SPAN>: Opencockpits (http://www.opencockpits.com/catalog/info/information.php?info_id=45&cPath)
They have added a nice sioc.ini editiing feature+++

Includes a new release of SIOC Monitor (1.41).

Give it a try and it would be nice to get a feedback.
On my small rig I don't see any problems.

Jerrymc3
10-16-2013, 10:10 PM
Forgot to come back with this post. When I installed the new version of SIOC it solved my problem with the 4th Mastercard. Thanks for everyone's input.

Jerry