Hey guys,
Finally have started to play with software side of things of my Simpit and to learn more about programming and networking.
My question is how to make Arduino receive/send commands from/to Orbiter via Orb:Connect plugin?
My connection is as follows:
PC with Orbiter -> ethernet switch -> Arduino Mega with W5100 ethernet shield.
What I have achieved so far:
1) Tested a simple UDP chat - sending messages from Arduino via serial monitor and receiving them on the PC using java console app. And vice versa. All works fine. (Big shout out to Horace from Arduino forums for their help)
2) Set up orb:connect with Orbiter 2024 installation on the PC. The plugin works fine, tested in raspberry pi browser connected to the same ethernet switch.
What I don't know yet is how to catch data by Arduino to display information (via leds, lcd's, 7segmen displays, etc.) and send commands back to Orbiter (e.g. if pin 7 low, landing gear retracts, etc.).
In theory Arduino should access that your_ip:37777 port the same way as web browser does and gather required data. E.g. something like this:
But how to implement it?
Should there be another script running on the PC sending that data?
Pardon my stupid questions, but this is a COMPLETELY new territory to me, comparing to the hardware design..
PS. main requirement for the simpit - no USB connection, ethernet only
Appreciate any help.

Finally have started to play with software side of things of my Simpit and to learn more about programming and networking.
My question is how to make Arduino receive/send commands from/to Orbiter via Orb:Connect plugin?
My connection is as follows:
PC with Orbiter -> ethernet switch -> Arduino Mega with W5100 ethernet shield.
What I have achieved so far:
1) Tested a simple UDP chat - sending messages from Arduino via serial monitor and receiving them on the PC using java console app. And vice versa. All works fine. (Big shout out to Horace from Arduino forums for their help)
2) Set up orb:connect with Orbiter 2024 installation on the PC. The plugin works fine, tested in raspberry pi browser connected to the same ethernet switch.
What I don't know yet is how to catch data by Arduino to display information (via leds, lcd's, 7segmen displays, etc.) and send commands back to Orbiter (e.g. if pin 7 low, landing gear retracts, etc.).
In theory Arduino should access that your_ip:37777 port the same way as web browser does and gather required data. E.g. something like this:
Code:
//Arduino pseudo code:
open 10.10.0.25:37777; // ip of the PC on my local network
connection ok;
open index.html; // html file under Orbiter/www folder, getting altitude value from Orb:connect
a = get(altitude);
LDC_show(a " km"); // shows var "a" on external LCD connected to Arduino
But how to implement it?
Should there be another script running on the PC sending that data?
Pardon my stupid questions, but this is a COMPLETELY new territory to me, comparing to the hardware design..
PS. main requirement for the simpit - no USB connection, ethernet only
Appreciate any help.

Last edited: