ponch17 Posted May 20, 2019 Posted May 20, 2019 hello I update my DCS bios yesterday with the version x.28 .. I install new library but When I start the serial port command I got an error with SOCAT .. like if the programme isn t running .. or something like that but with my old version is still working fine I have actually One arduino mega and I use it in come port 6 .. I was trying to install latest vesrion and will try soon some test with master and slave I just wait my chip 487 But it s a bad start .. I think I miss something with this SOCAT did I have to install the socat.exe first ?? I try but a quick terminal windows appear and close without anything .. so not easy .. I am a bit lost Thanks for your help
BlackLibrary Posted May 21, 2019 Posted May 21, 2019 Socat is now packed in 2 zip files. 32 and 64 bit. Unzip it an create the folders like in the readme aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server
ponch17 Posted May 21, 2019 Author Posted May 21, 2019 OK I restart from scratch 1-download dcs bios master 2-install librairies 0.2.16 3-install SOCAT to C:/socat/ 4-install in saved games DCS-bios and EXPORT LUA intp script my eport lua : dofile(lfs.writedir()..[[scripts\DCS-BIOS\BIOS.lua]]) local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[scripts\DCS-SimpleRadioStandalone.lua]]) local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua') when i try to load the eemple dcs master caution this: /* use '#define DCSBIOS_DEFAULT_SERIAL' instead if your Arduino board * does not feature an ATMega328 or ATMega2650 controller. */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* Declare a Master Caution Reset button on pin 10 */ DcsBios::Switch2Pos ufcMasterCaution("UFC_MASTER_CAUTION", 10); /* Make the LED connected to pin 13 into a Master Caution Light */ DcsBios::LED masterCaution(0x1012, 0x0800, 13); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } I get this error : Arduino : 1.8.7 (Windows 10), Carte : "Arduino/Genuino Uno" In file included from C:\Users\JGO\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.16\src/DcsBios.h:109:0, from C:\Users\JGO\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.16\examples\MasterCaution\MasterCaution.ino:5: C:\Users\JGO\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.16\src/internal/Switches.h:6:26: fatal error: SwitchMatrix.h: No such file or directory compilation terminated. exit status 1 Erreur de compilation pour la carte Arduino/Genuino Uno Ce rapport pourrait être plus détaillé avec l'option "Afficher les résultats détaillés de la compilation" activée dans Fichier -> Préférences. And .. I don t know what I don t do correctly
JG14_Smil Posted May 21, 2019 Posted May 21, 2019 Socat folder goes in the dcs-master/programs folder.
JG14_Smil Posted May 21, 2019 Posted May 21, 2019 (edited) Here is what I did: (I think). dcs-bios-master folder installed wherever. Copy scripts folder to the saved games/dcs/ Move socat to dcs-bios-master\programs if there is an error ( I had to do this). You edit the scripts found in the dcs-master folder if needed, not the saved games copies. They are re-written when DCS starts. Edited May 21, 2019 by JG14_Smil
ponch17 Posted May 21, 2019 Author Posted May 21, 2019 ok I move Socat folder on the right place but still some probleme something is wrong as my error message come from ARDUINO iDE when I try to push the code to the card it s an arduino uno on com 3 but even if i send the basics i get this error /* Tell DCS-BIOS to use a serial connection and use the default Arduino Serial library. This will work on the vast majority of Arduino-compatible boards, but you can get corrupted data if you have too many or too slow outputs (e.g. when you have multiple character displays), because the receive buffer can fill up if the sketch spends too much time updating them. If you can, use the IRQ Serial connection instead. */ #define DCSBIOS_DEFAULT_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } Arduino : 1.8.7 (Windows 10), Carte : "Arduino/Genuino Uno" In file included from C:\Users\JGO\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.16\src/DcsBios.h:109:0, from C:\Users\JGO\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.16\examples\DefaultSerial\DefaultSerial.ino:12: C:\Users\JGO\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.16\src/internal/Switches.h:6:26: fatal error: SwitchMatrix.h: No such file or directory compilation terminated. exit status 1 Erreur de compilation pour la carte Arduino/Genuino Uno Ce rapport pourrait être plus détaillé avec l'option "Afficher les résultats détaillés de la compilation" activée dans Fichier -> Préférences.
Hansolo Posted May 21, 2019 Posted May 21, 2019 (edited) I don't think your problem is related to SOCAT at all. First of all SOCAT handles the communication between DCS and the Arduino panels and you describe that the error you are getting is from the Arduino IDE during compiling. At this point SOCAT isn't running at all. Secondly the reason why the compilation is terminated is described; fatal error: SwitchMatrix.h: No such file or directory It means that while compiling and using Switches.h it found a reference it cannot find. I just downloaded the dcs-bios-arduino-libary-0.2.16 and found following in the Switches.h; #ifndef __DCSBIOS_SWITCHES_H #define __DCSBIOS_SWITCHES_H #include <math.h> #include "Arduino.h" #include "SwitchMatrix.h" SwitchMatrix swPanel = SwitchMatrix(); However when you look at the \dcs-bios-arduino-library-0.2.16\src\internal location the SwitchMatrix.h isn't there; It may be because you need to find the SwitchMatrix.h elsewhere and install using your Arduino IDE Cheers Hans Edited May 21, 2019 by Hansolo 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Warhog Posted May 22, 2019 Posted May 22, 2019 Why don't you take a step back and start fresh once you read the entire users guide. It’s found here: http://dcs-bios.a10c.de/ Follow the installation instructions to the letter. That should help you get things working. And if I might suggest, don't deviate from the examples found in the users guide or add your own extras that are not in the users guide until you have tried them all and that they work for you. It should take some of the frustrations away.:thumbup: Regards John W aka WarHog. My Cockpit Build Pictures... My Arduino Sketches ... https://drive.google.com/drive/folders/1-Dc0Wd9C5l3uY-cPj1iQD3iAEHY6EuHg?usp=sharing WIN 10 Pro, i8-8700k @ 5.0ghz, ASUS Maximus x Code, 16GB Corsair Dominator Platinum Ram, AIO Water Cooler, M.2 512GB NVMe, 500gb SSD, EVGA GTX 1080 ti (11gb), Sony 65” 4K Display VPC MongoosT-50, TM Warthog Throttle, TRK IR 5.0, Slaw Viper Pedals
ponch17 Posted May 22, 2019 Author Posted May 22, 2019 Thanks Hansolo I will check more tonight at home .. and try to erase and reinstall arduino ide and reinstall the librairies .. Thanks
Jester_ITA Posted May 22, 2019 Posted May 22, 2019 In the latest DCS-BIOS release there was the new function related to the matrix input and voltage divider by Dehuman. Look here https://forums.eagle.ru/showthread.php?t=240525 Last line of first post: note: requires the SwitchMatrix library by Agoston Diamont download it from https://github.com/dagoston93/SwitchMatrix
ponch17 Posted May 22, 2019 Author Posted May 22, 2019 Thanks That's seems to be my problem Good good I will check that !!
BlackLibrary Posted May 23, 2019 Posted May 23, 2019 In the latest DCS-BIOS release there was the new function related to the matrix input and voltage divider by Dehuman. Look here https://forums.eagle.ru/showthread.php?t=240525 Last line of first post: upps. :hmm: that i have not seen will add it for the next release aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server
ponch17 Posted May 23, 2019 Author Posted May 23, 2019 I add this librairy and its resolve some error message but some new appears so well i will wait and jump in a next version well what i do is take a lover version 0.7.26 and compilation inside arduino IDE work well I still have a SOCAT error when I start SERIAL COM PORT I select my port which is 6 then the countdown goes and at zero I get an error But when I start the serial port command from my old DCS Bios version all work fine which is good .. So tonight I do a quick video of the error and a bit of my WIP pit Thanks for all As I speak french it's not so easy all the time Jul
ponch17 Posted May 24, 2019 Author Posted May 24, 2019 ok Here you can see a quick video of my ''SOCAT'' problem the mesage is a mix between french and english but anyway, as you can see I get this message with the latest version I use 0.7.26 but if I start serial command with my oldest version of DCS Bios everything is working well https://youtu.be/ImzhoopJklQ and an other video quick tour of my WIP sim .. sorry for my accent anf low english skills :megalol: https://youtu.be/eD3HDpI32Ao Thanks
Jester_ITA Posted May 24, 2019 Posted May 24, 2019 (edited) Ponch, it seems that it is not finding the socat.exe file where it has to be. I'm not at the pc using for sim but for what i can see from here, in the directory "socat" there are two zip files for the 32 and 64 bits versions of socat. Try to decompress the version you need (for what i can see you have win10 so it is the 64bit version) in this directory so it will find socat.exe. Good setup you have, similar to mine but i have a lot of work still to be done! Edited May 24, 2019 by Jester_ITA
ponch17 Posted May 25, 2019 Author Posted May 25, 2019 Thnaks Jester you are right I unzip the file but it was in is own folder .. I was thinking it was ok so I remove the wrong folder and now ... no more error !!! Many thanks good job Jul
Jester_ITA Posted May 25, 2019 Posted May 25, 2019 Thnaks Jester and now ... no more error !!! Many thanks good job Jul happy to have been helpful! :thumbup:
SteenosMT Posted August 18, 2019 Posted August 18, 2019 (edited) Ponch. Will you please explain how exactly you got rid of the error? I'm having the same exact issues. I have extracted socat into system32. I have extracted socat into program files. Nothing works. Edited August 18, 2019 by SteenosMT
JG14_Smil Posted August 18, 2019 Posted August 18, 2019 DCS_BIOS used to have a "Programs" folder. I created one and put socat in it and all worked fine for me after that. I've been away from it for too long and it is not on this system.
SteenosMT Posted August 18, 2019 Posted August 18, 2019 (edited) Hey JG. Thanks for the reply. i just did what you said. Now DCS Bios says Waiting for 0 seconds, press a key to continue. I press a key and nothing happens. Do you have teamspeak? Would you be willing to help? Edited August 18, 2019 by SteenosMT
Hansolo Posted August 19, 2019 Posted August 19, 2019 Not by my PC now but it looks good to me. Nothing will happen now unless you have DCSW running or if you flip a switch on your Arduino board with an appropriate sketch. Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Hansolo Posted August 20, 2019 Posted August 20, 2019 Outstanding sir. Good job :thumbup: Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Recommended Posts