Hi All,
Currently I'm a bit struggling to get a proper ethernet connection between two raspberry pi's.
I'm new to Emteria so maybe I miss some functionality/limitation?
My set-up:
Raspberry Pi 3 B running Dietpi v8.25.1, configured LAN with static IP 10.0.0.2 255.255.255.0
Raspberry Pi 4 B running Emteria v13.4.0, configured LAN with static IP 10.0.0.1 255.255.255.0
Connected to each-other directly with an ethernetcable (no router/switch etc. inbetween)
Both connected to the same WiFi network as well (both with DHCP 192.168.1.x)
I'm trying to stream UDP data from Emteria to Dietpi over the LAN connection between the devices (So I am not depending on the WiFi).
Initially I was only able to ping from DietPi to Emteria but not the other way around.
I've added an IP route/rule to fix this:
ip route add 10.0.0.2/32 dev eth0
ip rule add to 10.0.0.2 lookup eth0
IP route gives:
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.1
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.208
IP route get 10.0.0.2 gives:
10.0.0.2 dev eth0 table eth0 src 10.0.0.1 uid 0 cache
IP rule list gives:
0: from all lookup local
9999: from all to 10.0.0.2 lookup eth0
10000: from all fwmark 0xc0000/0xd0000 lookup legacy_system
11000: from all iif lo oif dummy0 uidrange 0-0 lookup dummy0
11000: from all iif lo oif wlan0 uidrange 0-0 lookup wlan0
11000: from all iif lo oif eth0 uidrange 0-0 lookup eth0
16000: from all fwmark 0x10063/0x1ffff iif lo lookup local_network
16000: from all fwmark 0x10067/0x1ffff iif lo lookup wlan0
16000: from all fwmark 0x10c4f/0x1ffff iif lo lookup eth0
17000: from all iif lo oif dummy0 lookup dummy0
17000: from all iif lo oif wlan0 lookup wlan0
17000: from all iif lo oif eth0 lookup eth0
18000: from all fwmark 0x0/0x10000 lookup legacy_system
19000: from all fwmark 0x0/0x10000 lookup legacy_network
20000: from all fwmark 0x0/0x10000 lookup local_network
23000: from all fwmark 0x67/0x1ffff iif lo lookup wlan0
23000: from all fwmark 0xc4f/0x1ffff iif lo lookup eth0
31000: from all fwmark 0x0/0xffff iif lo lookup wlan0
32000: from all unreachable
Both ping tests back and forth are now fine, both with a stable <1ms time
But unfortunately the UDP stream of data is still not stable.
Also tested successfully:
- Disable WiFi on Emteria (which seems to force the stream over eth0 and then works fine?)
- Emteria stream to Dietpi over WiFi instead of LAN
- Windows laptop stream over WiFi to DietPi
- Windows laptop stream over LAN to DietPi (also configured with static IP 10.0.0.1, plugged ethernet from Emteria into laptop)
To be more specific on the UDP datastream:
This is a Godot "Game" to running on Emteria and also streaming the screen data to DietPi.
But the screen on the DietPi is very laggy.
The Godot code uses the PacketPeerUDP() with set_dest_address(IP_SERVER, PORT_SERVER) and put_packet(buffer) to set up the UDP stream.