Dawnplayer Posted April 6, 2020 Posted April 6, 2020 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.
Hansolo Posted April 12, 2020 Posted April 12, 2020 Which version of DCS-BIOS are you running? Do you have the file "BIOS.lua" at the location; C:\Users\Dawnplayer\Saved Games\DCS\Scripts\DCS-BIOS\ Possebly also let us know the Arduino code you are using. Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Dawnplayer Posted April 12, 2020 Author Posted April 12, 2020 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:
Hansolo Posted April 13, 2020 Posted April 13, 2020 Well you did write that the switch for the landing gear was working which would lead me to believe that there is communication between DCS and the Arduino, which is puzzling if the DCS-HUB writes something else :huh: Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Dawnplayer Posted April 13, 2020 Author Posted April 13, 2020 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:
Hansolo Posted April 13, 2020 Posted April 13, 2020 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 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Dawnplayer Posted April 14, 2020 Author Posted April 14, 2020 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.
Recommended Posts