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

Periph: enable Network Socket to UART passthrough #25595

Merged
merged 4 commits into from
Nov 26, 2023

Conversation

magicrub
Copy link
Contributor

Enable Network Socket to UART passthrough

This allows a periph to be a UART to IP/Ethernet converter!

Needs more docs..

Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

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

looks good!
needs some param docs, plus I suspect you'll need the passthru object param table to be in a separate file to pass the param generation CI test?

Tools/AP_Periph/networking.cpp Outdated Show resolved Hide resolved
@magicrub magicrub force-pushed the pr/networking8_periph branch 3 times, most recently from dffd984 to 50c9538 Compare November 22, 2023 23:35
@magicrub
Copy link
Contributor Author

I tested, and fixed, the docs using Peter's PR #25613 which really helped.

Tools/AP_Periph/networking.cpp Outdated Show resolved Hide resolved
@magicrub magicrub force-pushed the pr/networking8_periph branch from 50c9538 to 6b0f485 Compare November 23, 2023 00:11
return;
}

// Fastest possible connection is 3Mbps serial port, which is roughly 300KB/s payload and we service this at <= 1kHz
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, How do we come to this number of 3Mbps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

UARTs can't really go higher than that reliably. Is there a different number you're thinking? Bigger/smaller?

Copy link
Contributor

Choose a reason for hiding this comment

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

UARTs can't really go higher than that reliably. Is there a different number you're thinking? Bigger/smaller?

No, I was just wondering if there is any theoretical way to derive it.

@tridge
Copy link
Contributor

tridge commented Nov 23, 2023

@magicrub looks good to me, just need to get it all OK in CI and param gen

@magicrub magicrub force-pushed the pr/networking8_periph branch 2 times, most recently from f636c0f to 63dd5ee Compare November 25, 2023 22:13
@magicrub magicrub force-pushed the pr/networking8_periph branch from 63dd5ee to 1aa88d6 Compare November 25, 2023 22:14
@tridge tridge merged commit f870b63 into ArduPilot:master Nov 26, 2023
86 checks passed
@magicrub magicrub deleted the pr/networking8_periph branch November 26, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants