-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Enable SocketAPM to run on LwIP and add DDS support #25523
Conversation
44d68d6
to
c4580bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -65,6 +65,10 @@ const AP_Param::GroupInfo AP_DDS_Client::var_info[] { | |||
// @User: Standard | |||
AP_GROUPINFO("_PORT", 2, AP_DDS_Client, udp.port, 2019), | |||
|
|||
// @Group: _IP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to add a description
"IP address of the DDS Agent"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so.
Note, the _POPT docs are broken. Docs say "DDS_UDP_PORT" but code is "DDS_PORT". I'm in favor of removing the "UDP" part and have a different param control TCP/UDP server/client options
try |
Thanks. It works on SITL. On Pixhawk 6X, I can't compile now. Cleaned out the
Is this because both chibios_hwdef.py and AP_Networking_Config.h have |
It's messy at the moment. The enable-networking only applies to SITL. For chibos it's defined by the hwdef. |
Thanks. To set up xinetd:
change the settings
Restart xinetd: Then, you can see port 7 open up:
And.
|
#25522 is merged, please rebase this and fix conflicts. |
Next step: Add an AP_Networking_SITL as a backend. The UDP request/response doesn't work in DDS, but works with the test server. In order to have an easier time debugging, we would like to add a SITL backend. Tridge agrees we can merge this as-is even though DDS doesn't yet work. |
c4580bc
to
725735a
Compare
and default to same as default for DDS server
this allows the net tests to run on SITL, and for DDS testing using the SocketAPM API
12c82b4
to
dd7d4dd
Compare
@Ryanf55 rebased as requested. |
Let's merge it and solve DDS later. The UDP tests work; it might work fine for mavlink as-is. |
I'm good with that. Mavlink support will be another can of worms that should be in a new PR |
Enable LwIP support to the existing SocketAPM so all libraries that use SocketAPM should auto-magically be able to work on SMT32 targets. More work to come to expand on this...
It also adds a new a pram DDS_IP which needs some param-name discussion because DDS_PORT is wrong.
This is on top of the Networking cleanup PR #25522
Thanks to @tridge and @Ryanf55