Skip to content

Fix HSL messages not being sent on wifi interface#2408

Draft
rmburg wants to merge 1 commit intoHULKs:mainfrom
rmburg:fix-hsl-messages
Draft

Fix HSL messages not being sent on wifi interface#2408
rmburg wants to merge 1 commit intoHULKs:mainfrom
rmburg:fix-hsl-messages

Conversation

@rmburg
Copy link
Copy Markdown
Member

@rmburg rmburg commented Mar 15, 2026

Why? What?

The issue in #2369 was caused by the UDP broadcast packet ending up on the ethernet interface on the back of the robot instead of the wifi interface.
This is due to the fact that the robot has a default route on the ethernet interface, needed for internet connectivity.
We used to broadcast on an unspecified address, which was only sent on the default route.

ToDo / Known Issues

Completely untested as of yet

Ideas for Next Iterations (Not This PR)

Don't hardcode the 10.0.0.0/16 subnet?

alternatives considered:

  • add parameter for subnet (like 10.108.x.x used in GO26 HSL_B)
  • broadcast on all interfaces (manually iterate over interfaces in Rust)
  • add default route on wifi interface
  • add route to 255.255.255.255 on wifi interface

How to Test

Check if our message count decreases in the game controller

@rmburg rmburg added the GO26 label Mar 15, 2026
@github-project-automation github-project-automation Bot moved this to Request for Review in Development Mar 15, 2026
@rmburg rmburg moved this from Request for Review to In Progress in Development Mar 15, 2026
Comment on lines +36 to +41
let hsl_socket = UdpSocket::bind(SocketAddrV4::new(
Ipv4Addr::new(10, 0, 0, 0),
parameters.hsl,
))
.await
.map_err(Error::CannotBind)?;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This errors on startup :(

Error: 
   0: failed to initialize HSL network
   1: failed to bind socket

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing this, I'll look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

post-game task: Send messages again

2 participants