Satnogs Rotor via wifi

Hi to all,
I am a Radio Amateur and I would like to create a remote wifi system for the Satnogs rotor: SatNOGS Arduino Uno/CNC Shield Based Rotator Controller - SatNOGS Wiki
I should send to an Arduino the strings that Orbitron sends me on the serial. In practice, this rotor is controlled by an Arduino and a cnc shield connected via USB port to the PC where Orbitron and PSTRotator run. I would like to connect an Arduino (or an ESP32) to the USB port and I would like this board to send the received data to another board which is about 8m away as if it were directly connected with a USB cable to the PC. Unfortunately, I don't know much about serial and wifi connection theory and would therefore need a practical example which I would then modify for my needs. I have experimented with the wifi connection between two ESP32s with the examples of the Arduino IDE and it works. Could you kindly show me a simple sketch that shows me how to send the program data (coordinates) via wifi?
I apologize for the Googleian English and thank anyone who can help me.

Not Wifi: Getting Started with ESP-NOW (ESP32 with Arduino IDE) | Random Nerd Tutorials.

many thanks Koepel,
I had already found this article. And I managed to get two ESP32s to talk to each other. What I would like to understand is what and how to take the data coming out of the software and transmit it.
Thanks

These are the communication ways of this software:

There are problems when combining Wifi / Bluetooth / ESPnow for the ESP32 and ESP8266.
If you would select Wifi, then UDP is an easy way to transfer data. It just sends data without knowing if it will be received.
The TCP is a protocol to make sure that data has arrived.

Can you find examples to send and receive UDP packets ?
The ESP32 UDP library tries to mimic the Arduino UDP library.

An Arduino board has already a serial communication to the computer. That is the same as selecting RS232, but I don't know how to use a TCP Server over RS232. Any other COM Port selection might be usable if you know how to implement the protocol.

Lanfra:
Could you kindly show me a simple sketch that shows me how to send the program data (coordinates) via wifi?

So you want to create a Wireless serial bridge, unless you were contemplating re-programming the Satnogs rotor to accept its control data in a different format.

Maybe there is a 'simple sketch' to provide a serial bridge over Wifi, if there is it would have a few applications elsewhere too.

Thank you both for the replies. my "ignorance" about data transfer is immense. When I had this idea, I thought that between two Arduino or ESP32 boards it would be easy to create a bridge, thus eliminating the USB cable .... but I'm afraid I'm not up to doing this. I try to look at the example that Koepel kindly gave me.

For Srnet:
Lately I have these ideas with which I get hurt very much ... the ideas come to me but then I don't have the preparation to realize them and this is very painful.

Thanks again and if you think of something, I'm here ....

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.