mmmmm
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by mmmmm
-
-
I was expecting that somebody has already wrote some kind of FSUPIC arduino client (or something similar; SimConnect arduino client?).
Some kind of server publishing FSUIPC offsets via ethernet.QuoteHave you tried asking these questions on the ProSim forum? Presumably your needs aren't unique?
Yes. I've tried. No answer so far.
-
Quote
If ProSim has a SIOC driver which is working for you, can't you use that?
limited number of parameters to use (only those listed in Combined config tab, as far as I know).
-
In Prosim I attach a parameter to a variable (see pic below):
Parameter: Gear handle release solenoid
Variable number: 8 (whatever)and I use the above arduino code to get It (Gear handle release solenoid status) on my microcontroller.
Very simple. I don't have to write any additional piece of soft.
The only limitation is number of parameters I can chose from 😕
Quotebut I had to write the Arduino code and an FSUIPC plug-in 9in Lua) to interface to it. It uses a serial COM port, not Ethernet.
is it possible to write similar piece of code (lua script) for ethernet?
I'm looking for something that could link arduino via ethernet with Prepar3d (or Prosim; not sure if FSUIPC takes data from P3d or Prosim) - ailerons and elevator deflection. -
I want to get some data (over ethernet; aileron and elevator position) to move my control wheel. That's the goal.
(I'm pretty sure It's been already done somehow).I thought, maybe there is a similar piece of code (like the one above) to do this.
So I need to use PROSIM SDK to achieve this?
-
Quote
How does your arduino talk to FSUIPC?
It doesn't 🙂 (so far). That's the question. How can I make my arduino talk to FSUIPC?
I don't want to use usb. I want to connect my arduino (ethernet shield) via switch to the PC (where PROSIM+FSUIPC are installed).
-
so,
I have FSUIPC running on the same PC as PROSIM,
FSUIPC has WideServer built in,so now I would need a WideClient code for ARDUINO. Is that correct? If more or less yes, is there any piece of code for arduino (or similar) to start with?
-
Thx for reply 🙂
I was hopping that FSUIPC can send offsets over the ethernet 😕
Quotedefined software interface (in the SDK).
U mean SDK from PROSIM?
There are literally few lines in ARDUINO that can gather data from SIOC (IOCP) server running in PROSIM:
//SOLENOID: //8-AIR/GND SENSOR #include <ESP8266WiFi.h> const char* ssid = "SSSID"; const char* password = "PASSWD"; const char* host = "192.168.1.231"; byte AIR_GND=0; //0-GND, 1-AIR byte SOLENOID=12; //D6 String line=""; WiFiClient client; void setup() { pinMode(LED_BUILTIN, OUTPUT); pinMode(SOLENOID, OUTPUT); digitalWrite(SOLENOID, LOW); Serial.begin(115200); delay(100); Serial.println(); Serial.println("Serial OK"); Serial.printf("Connecting to %s ", ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(" connected"); Serial.print("IP Address: "); Serial.println(WiFi.localIP()); } void loop() { Serial.printf("\n[Connecting to %s ... ", host); if (client.connect(host, 8092)) { Serial.println("connected]"); client.println("Arn.Inicio:8"); //looking for iocp variable no. 8 Serial.println("[Response:]"); while (client.connected() || client.available()) { if (client.available()) { line = client.readStringUntil('\n'); //Serial.println(line); line=line.substring(11,line.length()-2); Serial.println(line); } ////////// if (line=="0"){ digitalWrite(SOLENOID, LOW);} if (line=="1"){ digitalWrite(SOLENOID, HIGH);} line=""; } client.stop(); Serial.println("Disconnected"); } else { Serial.println("connection failed!"); client.stop(); } delay(5000); }
You sing up for variable (here nr. 8 ) and once it is updated SIOC server sends it to you :
client.println("Arn.Inicio:8");
Would be amazing if FSUIPC could do something similar.
-
Hi,
At the beginning I'd like to mention that I'm new in this area.
Recently I've built a 737 wet compass.I used wemos D1 mini board and a stepper motor.
I use SIOC server (running on my PC) and SIOC client (wifi SIOC client on wemos) to get all data I need.
I'm working now on more sophisticated project.
I need to get more data from the simulator this time.
SIOC works fine however it has a limited number of variables/parameters to get from PROSIM.
I use this tool to assign all necessary parameters:
What other method would you suggest to extract more data form PROSIM?
I need to get aileron and elevator deflection this time.
I'd like to send this data over ethernet to any microcontroller.
Best regards,
MM
microcontroller ethernet client?
in FSUIPC Support Pete Dowson Modules
Posted
by default - yes.
On my wetcompass I used wemos D1 mini (ESP8266 WIFI) with some arduino code (arduino IDE) -its nice because the only cable coming into the enclosure is +5V power.
On the second project I used mega2560 with ethernet shield.
(not a big change between both codes)
to many of them already 😉 trying to avoid new ones