Jump to content

Recommended Posts

Posted

Hello everyone, it's been a while since I wanted to build panels to make flying easier (being the owner of two 3D printers...). So I decided to turn to DCS Bios to link the hardware part to DCS Word. So I did some tests with an Arduino Uno and after a few unsuccessful attempts I manage to make the inputs work: I set a switch for the landing gear (on the Viggen) and it works !!! Nevertheless, I wanted to try later to configure the outputs so that an LED lights up when the landing gear is down. And that's the problem... I have nothing, the LED doesn't light up, even though it's well connected to the Arduino (blinks at startup). I went on the DCS bios online HUB and it seems that the software doesn't retrieve the data from DCS. It displays no "data yet" while the simulator is running and the inputs are working... I can't find the source of the problem. I also just noticed some kind of error message in the DCS bios log :

 

"Util.lua: value -1.000000 is too small for address 17940 mask 8

Util.lua: value -1.000000 is too small for address 17934 mask 4096

Util.lua: value -1.000000 is too small for address 17940 mask 8

Util.lua: value -1.000000 is too small for address 17934 mask 4096

Util.lua: value -1.000000 is too small for address 17940 mask 8"

 

(this message repeats itself many times)...

 

I also found this message in the DCS log (not bios):

"2020-04-05 17:12:10.330 ERROR Lua::Config: Call error LuaExportAfterNextFrame:<LUA_TTABLE>

stack traceback:

[C]: ?

[C]: in function 'try'.

[string "S:Dcs Bios lua"]:98: in function 'send

162: in function 'flush'...

[string "S:\DCS Bios\dcs-lua\BIOS.lua"]:86: in function < [string "S:\DCS Bios\dcs-lua\BIOS.lua"]:83>."

There's also another error (before this message):

"can't open 'C:\Users\Dawnplayer\Saved Games\DCS\Scripts\DCS-BIOS\BIOS.lua''.

 

I don't really understand the problem :helpsmilie:... I'm hoping you can help me.

Posted

Thank you very much for your answer and your help. I am under version 0.10 and yes I have the file Bios.lua in the indicated directory. For the arduino code it's a very simple script (a button and a led programmed on the right PINS, I checked) and I think that the problem is not coming from there since in the web interface I always have the indication "no data yet", so it doesn't seem to be related to the arduino code... :huh:

Posted

Yes the communication is done in the direction of the inputs without any problem, but when it comes to the outputs the data doesn't seem to be exported from DCS... However other software like Helios works on my computer. I don't see how I can fix the problem and start to desperate...:cry:

Posted

As far as I understand then the Arduino communicated with DCS-BIOS on the computer, which communicates with the Export.lua which in turns communicates with DSCW. As such I cannot see anything which should make the communication work only as in to-DCSW mode and not from-DCSW. Hence the reason I asked for a sketch. But granted I am still running the 'old' DCS-BIOS, not DCS-HUB.

 

Have you tried another indication other than landing gear, like a master caution. Sorry have not been using the Viggen so unsure what's available. Could be a type in the core code.

 

Cheers

Hans

Posted

Yes I tried with the F18 for other lights, I always get "no data yet"... I recently saw that the developer of DCS bios stopped the development. Maybe the latest DCS-HUB version is no longer updated and functional. Do you think using an old version (before DCS-HUB) could fix the problem ? I'll probably try, and thanks again for answering me and helping me.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...