Hi,
My first post on this forum!
I have been spending the last 6 months making a virtual pinball cab from scratch and it is nearly complete, i just need the final details, LED LIGHTS!
I have a Teensy with Octo adapter and addressable led strip for my right playfield all wired up and it runs fine on the Arduino test software, so I know i have wired the lights correctly.
However, nothing happens in DOF. I have a Sainsmart which is working fine in DOF, but to rule out the issues i have made a new Cabinet file and am now focusing on just the LED lights.
I have tried several different cabinet files and global settings, but the same error persists. I have also tried changing usb port for the Teensy.
Can anyone help me out with the error message i get from the DirectOutput log file? I have put some comments in red
---------------------------------------------------------------------------------
DirectOutput Version 3.1.6863.36690, built 2018.10.16 20:23
MJR Grander Unified DOF R3++ edition feat. Djrobx, Rambo3, and Freezy
2019.02.21 20:03:27.942 DirectOutput Logger initialized
2019.02.21 20:03:27.927 Global config filename is "C:\DirectOutput\config\GlobalConfig_B2SServer.xml"
2019.02.21 20:03:27.942 Global config loaded from: C:\DirectOutput\config\GlobalConfig_B2SServer.xml
2019.02.21 20:03:27.942 Loading Pinball parts
2019.02.21 20:03:27.943 Loading cabinet
2019.02.21 20:03:27.944 Will load cabinet config file: C:\DirectOutput\config\Cabinet.xml
2019.02.21 20:03:28.025 1 output controller defnitions and 2 toy definitions loaded from cabinet config.
2019.02.21 20:03:28.025 Cabinet config file has AutoConfig feature enabled. Calling AutoConfig.
2019.02.21 20:03:28.025 Cabinet auto configuration started
2019.02.21 20:03:28.040 PhilipsHueAutoConfigurator.AutoConfig started...note, actual connection detection will happen asynchronously, and device disabled if not succesfull (check further down in the log) I think this line is because of my keyboard and mouse which have some led lights, software maybe thinks it is PhillipsHue compatible? Anyway, it should not influence anything.
2019.02.21 20:03:28.052 Cabinet auto configuration finished
2019.02.21 20:03:28.052 Autoconfig complete.
2019.02.21 20:03:28.052 Cabinet config loaded successfully from C:\DirectOutput\config\Cabinet.xml
2019.02.21 20:03:28.052 Cabinet loaded
2019.02.21 20:03:28.052 Loading table config
2019.02.21 20:03:28.053 Warning: No table config file found. Will try to load config from LedControl file(s).
2019.02.21 20:03:28.053 Will try to load configs from DirectOutput.ini or LedControl.ini file(s) for RomName sttng
2019.02.21 20:03:28.055 Loading LedControl file C:\DirectOutput\config\directoutputconfig30.ini
2019.02.21 20:03:28.061 Min DOF Version is 0.8 for file directoutputconfig30.ini
2019.02.21 20:03:28.264 Loading LedControl file C:\DirectOutput\config\directoutputconfig40.ini
2019.02.21 20:03:28.265 Min DOF Version is 0.8 for file directoutputconfig40.ini
2019.02.21 20:03:28.421 2 directoutputconfig.ini or ledcontrol.ini files loaded.
2019.02.21 20:03:28.422 Config for RomName sttng exists in LedControl data. Updating cabinet and config.
2019.02.21 20:03:28.437 Table config loading finished: romname=sttng, tablename=AC-DC PM5 Javier DT Batch_MOD 1.0
2019.02.21 20:03:28.438 Pinball parts loaded
2019.02.21 20:03:28.438 Starting processes
2019.02.21 20:03:28.438 Initializing cabinet
2019.02.21 20:03:28.438 Debug: Initializing output controllers
2019.02.21 20:03:28.441 TeensyStripController LEDStripController intialized and updater thread started.
2019.02.21 20:03:28.441 Debug: Output controllers initialized
2019.02.21 20:03:28.442 TeensyStripController LEDStripController updater thread started.
2019.02.21 20:03:28.444 Cabinet initialized
2019.02.21 20:03:28.445 Loading shape definition file: C:\DirectOutput\config\DirectOutputShapes.xml
2019.02.21 20:03:28.483 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.483 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixColorEffect. Calculated area size: AreaDef(L:0, T:0, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:0, Right:0, Bottom:21, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixFlickerEffect. Calculated area size: AreaDef(L:0, T:85, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:122, Right:0, Bottom:143, Width:1, Height:22)
2019.02.21 20:03:28.484 Debug: MatrixBase for RGBAMatrixFlickerEffect. Calculated area size: AreaDef(L:0, T:85, W:100, H:15), Matrix(W:144, H:1), ResultArea(Left: 0, Top:122, Right:0, Bottom:143, Width:1, Height:22)
2019.02.21 20:03:28.490 Framework initialized.
2019.02.21 20:03:28.490
Have fun!

2019.02.21 20:03:29.707 EXCEPTION: TeensyStripController LEDStripController updater thread could not connect to the controller. Thread will quit. And here is the problem.... but what does it mean?
2019.02.21 20:03:29.707 EXCEPTION: Thread: TeensyStripController LEDStripController updater thread
2019.02.21 20:03:29.707 EXCEPTION: Message: IOException --> Tidsavbruddsperioden for semaforen har utløpt. (this sentence was partly is in Norwegian due to my native pc settings, it says something like "time abort period for semaphor(?) has expired".
2019.02.21 20:03:29.707
2019.02.21 20:03:29.707
2019.02.21 20:03:29.710 EXCEPTION: Stacktrace: ved System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
2019.02.21 20:03:29.710 EXCEPTION: Stacktrace: ved System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
2019.02.21 20:03:29.710 EXCEPTION: Stacktrace: ved System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
2019.02.21 20:03:29.710 EXCEPTION: Stacktrace: ved System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
2019.02.21 20:03:29.710 EXCEPTION: Stacktrace: ved DirectOutput.Cab.Out.AdressableLedStrip.TeensyStripController.ConnectToController()
2019.02.21 20:03:29.710 EXCEPTION: Stacktrace: ved DirectOutput.Cab.Out.OutputControllerCompleteBase.UpdaterThreadDoIt()
2019.02.21 20:03:29.710 EXCEPTION: Targetsite: Void WinIOError(Int32, System.String)
2019.02.21 20:03:56.297 Finishing framework
2019.02.21 20:03:56.298 Finishing cabinet
2019.02.21 20:03:56.299 Debug: Finishing output controllers
2019.02.21 20:03:56.299 TeensyStripController LEDStripController finished and updater thread stopped.
2019.02.21 20:03:56.299 Debug: Output controllers finished
2019.02.21 20:03:56.299 Cabinet finished
2019.02.21 20:03:56.299 DirectOutput framework finished.
2019.02.21 20:03:56.299 Bye and thanks for using!
My cabinet file:
<?xml version="1.0"?>
<Name>TimoPin</Name>
<Toys>
<LedStrip>
<Name>PF Right</Name>
<Width>1</Width>
<Height>144</Height>
<LedStripArrangement>BottomUpLeftRight</LedStripArrangement>
<ColorOrder>GRB</ColorOrder>
<FirstLedNumber>1</FirstLedNumber>
<FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
<OutputControllerName>LEDStripController</OutputControllerName>
</LedStrip>
<LedWizEquivalent>
<Name>LedWizEquivalent 30</Name>
<Outputs>
<LedWizEquivalentOutput>
<OutputName>PF Back</OutputName> This one is redundant as i only have one strip
<LedWizEquivalentOutputNumber>7</LedWizEquivalentOutputNumber>
</LedWizEquivalentOutput>
<LedWizEquivalentOutput>
<OutputName>PF Left</OutputName>This one is redundant as i only have one strip
<LedWizEquivalentOutputNumber>4</LedWizEquivalentOutputNumber>
</LedWizEquivalentOutput>
<LedWizEquivalentOutput>
<OutputName>PF Right</OutputName>
<LedWizEquivalentOutputNumber>1</LedWizEquivalentOutputNumber>
</LedWizEquivalentOutput>
</Outputs>
<LedWizNumber>30</LedWizNumber>
</LedWizEquivalent>
</Toys>
<Colors />
<Curves />
<AutoConfigEnabled>true</AutoConfigEnabled>
<OutputControllers>
<TeensyStripController>
<Name>LEDStripController</Name>
<NumberOfLedsStrip1>144</NumberOfLedsStrip1>
<NumberOfLedsStrip2>0</NumberOfLedsStrip2>
<NumberOfLedsStrip3>0</NumberOfLedsStrip3>
<NumberOfLedsStrip4>0</NumberOfLedsStrip4>
<NumberOfLedsStrip5>0</NumberOfLedsStrip5>
<NumberOfLedsStrip6>0</NumberOfLedsStrip6>
<NumberOfLedsStrip7>0</NumberOfLedsStrip7>
<NumberOfLedsStrip8>0</NumberOfLedsStrip8>
<ComPortName>COM4</ComPortName>
<ComPortTimeOutMs>999</ComPortTimeOutMs> I thought it might be some error related to time delay so i put this as high as it can go, But still the same error message.
</TeensyStripController>
</OutputControllers>
<ScheduledSettings />
<SequentialOutputSettings />
<TableOverrideSettings />
</Cabinet>
My Globalconfig_B2sServer file:
<?xml version="1.0" encoding="utf-8"?>
<!--Global configuration for the DirectOutput framework.-->
<!--Saved by DirectOutput Version 0.6.5240.37622: 2014-05-24 19-41-50-->
<GlobalConfig>
<LedWizDefaultMinCommandIntervalMs>1</LedWizDefaultMinCommandIntervalMs>
<LedControlMinimumEffectDurationMs>60</LedControlMinimumEffectDurationMs>
<LedControlMinimumRGBEffectDurationMs>120</LedControlMinimumRGBEffectDurationMs>
<IniFilesPath>C:\DirectOutput\config</IniFilesPath>
<ShapeDefintionFilePattern>C:\DirectOutput\config\DirectOutputShapes.xml</ShapeDefintionFilePattern>
<CabinetConfigFilePattern>C:\DirectOutput\config\Cabinet.xml</CabinetConfigFilePattern>
<TableConfigFilePatterns />
<EnableLogging>true</EnableLogging>
<ClearLogOnSessionStart>true</ClearLogOnSessionStart>
<LogFilePattern>.\DirectOutput.log</LogFilePattern>
</GlobalConfig>
With regards,
A noob from Norway
Edited by Puzenkatze, 24 February 2019 - 06:31 PM.