Jump to content

Need help with SOCAT ??


ponch17

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by JG14_Smil
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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;

 

1EqYn36.png

 

It may be because you need to find the SwitchMatrix.h elsewhere and install using your Arduino IDE

 

Cheers

Hans


Edited by Hansolo
Link to comment
Share on other sites

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...



John Wall

 

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by Jester_ITA
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 months later...

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?

socat.thumb.jpg.d69fc1536430ce82f992d3f6263d3de8.jpg

dcsbios.thumb.jpg.3ed2a1eb831c811171592209e5306d9f.jpg


Edited by SteenosMT
Link to comment
Share on other sites

  • Recently Browsing   0 members

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