Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two devices connected via WiFi and Ethernet cannot communicate properly. #1840

Open
Kisjjw opened this issue Dec 6, 2024 · 2 comments
Open

Comments

@Kisjjw
Copy link

Kisjjw commented Dec 6, 2024

Problem Description

I have a router that supports 5G, and my device A connects to the router via WiFi. My device B is connected to a switch via an Ethernet cable, which results in device B often failing to receive messages sent by device A. This is specifically manifested as the monitor not detecting the connection; it is detected one second, and then disappears the next, showing an intermittent and unstable connection. However, when I connect device B via WiFi as well, it can receive messages stably and normally. Both of my devices use TCP connection mode.

How to reproduce

It's unclear whether the issue is due to the eCAL, the switch, or the router.

How did you get eCAL?

Download from Release Page

Environment

ecal: 5.11.8
Armbian 24.8.1 Bookworm with Linux 6.1.75-vendor-rk35xx

eCAL System Information

[network]
network_enabled           = true
multicast_group           = 239.0.0.1
multicast_mask            = 0.0.0.15
multicast_port            = 14000
multicast_ttl             = 2
multicast_sndbuf          = 5242880
multicast_rcvbuf          = 5242880

multicast_join_all_if     = false

bandwidth_max_udp         = -1

inproc_rec_enabled        = true
shm_rec_enabled           = true
tcp_rec_enabled           = true
udp_mc_rec_enabled        = true

npcap_enabled             = false

tcp_pubsub_num_executor_reader = 4
tcp_pubsub_num_executor_writer = 4
tcp_pubsub_max_reconnections   = 5

[time]
timesync_module_rt        = "ecaltime-localtime"
[process]
terminal_emulator         =

[iceoryx]
service                   = "eCAL"
instance                  = ""

[publisher]
use_inproc                = 0
use_shm                   = 2
use_tcp                   = 2
use_udp_mc                = 0

memfile_minsize           = 4096
memfile_reserve           = 50
memfile_ack_timeout       = 0
memfile_buffer_count      = 1
memfile_zero_copy         = 0

share_ttype               = 1
share_tdesc               = 1

[monitoring]
timeout                   = 5000
filter_excl               = __.*
filter_incl               =
filter_log_con            = error, fatal
filter_log_file           =
filter_log_udp            = info, warning, error, fatal

[experimental]
shm_monitoring_enabled      = false
shm_monitoring_domain       = ecal_monitoring
shm_monitoring_queue_size   = 1024
network_monitoring_disabled = false
@Kisjjw
Copy link
Author

Kisjjw commented Dec 6, 2024

I tested several devices and found that those connected via WiFi can detect each other, and those connected directly via Ethernet can detect each other. However, within the same local area network, they cannot detect each other based on their different connection methods.

@Kisjjw
Copy link
Author

Kisjjw commented Dec 6, 2024

I actually suspect that the issue is with the router because the one I used before only supported 2.4G, while the new router supports both 5G and 2.4G. However, all my devices are using 2.4G. I have also disabled the 5G on the router. In addition, I asked the router manufacturer, and they said that the device does not support VLAN, but broadcast across ports is not a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant