PopTops Posted January 1, 2019 Posted January 1, 2019 Hi guys, First and for all Happy Newyear. I've just received my Arduino board and I started the very basics; The master caution LED light. However, I can't get the LED on. According to me I've done everything correctly uploading the file to my Arduino and connecting my LED but it's still not working. Can you validate my code? I've limited myself to the A-10 so far. #define DCSBIOS_DEFAULT_SERIAL #include "DcsBios.h" DcsBios::LED masterCaution(0x1012, 0x0800, 10); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } Also, when I run the connect-serial-port (connected to COM3) I get "Couldn't connect FAST_CWD pointer". Any suggestions? Kind regards, PopTops
Hansolo Posted January 1, 2019 Posted January 1, 2019 What happens if you change to; DcsBios::LED masterCaution(0x1012, 0x0800, 13); This will use the onboard LED. Have you verified that the LED is connected correctly and not reversed? The error when running SOCAT is normal. Got this from another DCS-BIOS user on 476th Discord I found the issue described here: https://github.com/dcs-bios/dcs-bios/issues/108 At the bottom there, there's a link to a fork which contains a new version of SOCAT (https://github.com/PrestaMath/dcs-bios). I just downloaded the SOCAT folder from there and replaced the folder in my original installation of DCS BIOS. I haven't tried it myself yet though. Cheers Solo 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
PopTops Posted January 1, 2019 Author Posted January 1, 2019 I tried to do this and it gave the following result; Putting it to 13 is not changing anything. The "ON" light on the Arduino is red but nothing else is blinking. To test, I changed the values, uploaded the script, ran the connect-serial-port tool and pulled the left Engine Fire pull handle. Master caution is blinking, but not on the Arduino. SOCAT error, I downloaded and replaced the files and now the error message is not there anymore however it gives "Waiting for 0 seconds, press a key to continue..." and then there is nothing (also not when I press a key :)
Bullant Posted January 1, 2019 Posted January 1, 2019 To test that you have DCS-BIOS installed correctly (you followed all the instructions, right?) try running dcs-bios in interactive mode and toggle some controls Intel i7 13700K @ 5.3 GHz / ASUS TUF Gaming Z490-Plus / 64 Gb G.Skill DDR4-3600 / RTX 4090 / 2TB Kingston KC3000 NVME / Win 10 x64 Pro / Pimax Crystal / WINWING F/A-18 HOTAS A-10C, AJS-37, AV-8B, F-4E, F-5E, F-14, F-15E, F-16, F/A-18C, F-86F, FC3, Christen Eagle 2, FW190D-9, Mosquito, P-47D, P-51D, Spitfire, AH-64D, KA-50, UH-1H Combined Arms, WWII Asset Pack, China Assets Pack, Super Carrier, Falklands Assets Nevada, Normandy, Persian Gulf, The Channel, Syria, Mariana Islands, South Atlantic, Sinai, Kola, Afghanistan
Hansolo Posted January 1, 2019 Posted January 1, 2019 SOCAT error, I downloaded and replaced the files and now the error message is not there anymore however it gives "Waiting for 0 seconds, press a key to continue..." and then there is nothing (also not when I press a key :) That sound like there is no communication with DCS. Once DCS is running (unpaused) the SOCAT should be filled with garble which is all the information from DCS through SOCAT. By garble means that you can't read it but the Arduino can. Check that your Export.lua has the following line; dofile(lfs.writedir()..[[scripts\DCS-BIOS\BIOS.lua]]) If it does not then there is your problem. Export.lua is found in ..\Saved Games\DCS.openbeta\Scripts Secondly if you have both stable and Beta version on your PC make sure that you start the one which has above line in the Export.lua. Alternative make sure both Export.lua has the line :) Cheers Solo 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
PopTops Posted January 2, 2019 Author Posted January 2, 2019 (edited) I've added the line to the bottom, but still not OK. Is it mandatory do have the open Beta? @Andrew, I still have to test your suggestion Edited January 2, 2019 by PopTops
PopTops Posted January 2, 2019 Author Posted January 2, 2019 Ok, I solved it thanks to you guys. I did the necessary concerning the export file but on the install location, not in the script folder. And the onboard light is working. Now I can start my fun ;-) Thanks guys!
Hansolo Posted January 3, 2019 Posted January 3, 2019 Interesting. Where did you put it? Glad you got it working Cheers Solo 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
PopTops Posted January 6, 2019 Author Posted January 6, 2019 I installed DCS on my 2nd harddrive, so I was searching for the Scripts folder which I found there instead of Saved Games location. On that location you also have an export.lua but with a lot of coding. Being convinced I found the right file I didn't think of creating a Scripts folder on the Saved Games location and copy an extra export.lua file there. Basic mistake I think...
Hansolo Posted January 8, 2019 Posted January 8, 2019 Ah in that way. Well you will enjoy the Saved Games location when you update DCS as modifications in the main install location will be overriden during update. Glad you got it to work. Cheers Solo 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Recommended Posts