Commit Graph

71 Commits

Author SHA1 Message Date
Andrew Tridgell 2ba3ac0a9e AP_Networking: fixed a lockup bug in network ports
we need to not hold the write semaphore when calling network socket
calls. This fixes a critical error where network sockets block due to
low level PPP issues while main thread is going mavlink sends
2024-01-10 18:07:29 +11:00
Andrew Tridgell 7292c89766 AP_Networking: auto-restart PPP on error
this makes it easier to handle startup timing with PPP
2024-01-07 13:07:24 -08:00
Henry Wurzburg ce4a450d3a AP_Network:add reboot req'd metadata to params missing it 2024-01-07 01:15:34 -08:00
Andrew Tridgell 535a6a3316 AP_Networking: fixed build of evtimer.c on firmware server
the firmware server uses --out option to waf configure which changes
the include paths
2024-01-06 09:20:47 +11:00
Andrew Tridgell fa2b87b05a AP_Networking: hide unused params for PPP 2024-01-05 06:52:11 -08:00
Andrew Tridgell b0bbed01c6 AP_Networking: speed up sendfile download
use a multiple of sector size and DMA safe memory
2024-01-05 06:52:11 -08:00
Andrew Tridgell b1f1ea7859 AP_Networking: don't build lwip code if not needed
this saves a bit of compile time, but also means devs not doing
networking don't need to update the submodules
2024-01-04 11:02:14 +11:00
Andrew Tridgell 791a0a3230 AP_Networking: use HAL objects more directly
and fix a ms/us bug
2024-01-03 12:14:47 +11:00
Andrew Tridgell f5bee94cba AP_Networking: added evtimer wrapper 2024-01-03 12:14:47 +11:00
Andrew Tridgell f0a1a19f8b AP_Networking: allow discard test to be paused 2024-01-03 12:14:47 +11:00
Andrew Tridgell ab24d8768f AP_Networking: disable on MacOSX 2024-01-03 12:14:47 +11:00
Andrew Tridgell 702fe9c18d AP_Networking: only enable networking on Linux, ChibiOS and SITL 2024-01-03 12:14:47 +11:00
Andrew Tridgell 983a680b2b AP_Networking: small improvement to ethernet throughput 2024-01-03 12:14:47 +11:00
Andrew Tridgell af47beebfc AP_Networking: fixed discard test on PPP
and fixed byte order bug
2024-01-03 12:14:47 +11:00
Andrew Tridgell 8fcc7d5a51 AP_Networking: fixed ChibiOS backend with 16 bit timer 2024-01-03 12:14:47 +11:00
Andrew Tridgell 229a527fed AP_Networking: use BinarySemaphore 2024-01-03 12:14:47 +11:00
Andrew Tridgell 2048631526 AP_Networking: ensure PPP does not dominate the CPU 2024-01-03 12:14:47 +11:00
Andrew Tridgell 7e29452082 AP_Networking: fix for linux build 2024-01-03 12:14:47 +11:00
Andrew Tridgell 985816ebc2 AP_Networking: don't enable PPP by default 2024-01-03 12:14:47 +11:00
Andrew Tridgell ec5ff94f3e AP_Networking: cleanup string to IP handling
use SocketAPM methods
2024-01-03 12:14:47 +11:00
Andrew Tridgell 812ac6bc0a AP_Networking: allow for --enable-ppp to enable networking 2024-01-03 12:14:47 +11:00
Andrew Tridgell 9d5a54259e AP_Networking: new location for lwip 2024-01-03 12:14:47 +11:00
Andrew Tridgell d289ba0181 AP_Networking: removed SLIP
PPP is the better choice
2024-01-03 12:14:47 +11:00
Andrew Tridgell 22938e99ea AP_Networking: added ArduPilot HAL port of lwip 2024-01-03 12:14:47 +11:00
Andrew Tridgell 1d9d599bb0 AP_Networking: allow for PPP on ChibiOS 2024-01-03 12:14:47 +11:00
Andrew Tridgell 94ea22d16f AP_Networking: separate thread for sendfile 2024-01-03 12:14:47 +11:00
Andrew Tridgell 896b95654c AP_Networking: added PPP support 2024-01-03 12:14:47 +11:00
Andrew Tridgell e2dac53fca AP_Networking: added SLIP support 2024-01-03 12:14:47 +11:00
Andrew Tridgell 241323eade AP_Networking: added sendfile()
this allows for scripting to offload a file send to the AP_Networking
library, reducing CPU costs of large file downloads
2023-12-11 18:00:38 +11:00
Andrew Tridgell fec0ec79c5 AP_Networking: make lwip debugging easier 2023-12-11 18:00:38 +11:00
Andrew Tridgell 55b5e1cff1 AP_Networking: fixed off by one error in cache size calculation
this caused some of the memory to be cacheable which led to TCP
checksum errors
2023-12-04 10:12:41 +11:00
Andrew Tridgell 63f9046265 AP_Networking: fixed docs for network port types
and document broadcast and multicast
2023-12-03 11:37:21 +11:00
Tom Pittenger 7f94ae6fe7 AP_Networking: only show NET_IP,DHCP,GW,MASK,MAC if it's actually used 2023-12-02 08:17:52 +11:00
Andrew Tridgell 89506846a3 AP_Networking: improve startup wait
this ensures we wait till DHCP has completed
2023-12-01 18:33:29 +11:00
Tom Pittenger f72dd8cc89 AP_Network: mavlink packetise requires mavlink 2023-11-29 12:29:19 +11:00
Andrew Tridgell 7d1f048ca7 AP_Networking: support UDP server, TCP client and TCP server
and implement mavlink packetisation and flow control return
2023-11-28 12:18:55 +11:00
Tom Pittenger 8ab3ad2777 AP_Networking: add support for AP_Periph 2023-11-26 11:28:57 +11:00
Andrew Tridgell 68e2bb1f15 AP_Networking: enable receive of multicast packets 2023-11-25 12:19:43 -08:00
Andrew Tridgell e06d65bd75 AP_Networking: simplify port registration 2023-11-22 17:19:12 +11:00
Andrew Tridgell 8e50584bd8 AP_Networking: fixed buffer size handling
make begin() able to change buffer sizes
2023-11-18 16:54:54 -08:00
Tom Pittenger 3b35915774 AP_Networking: return bug fix
Co-authored-by: Ryan <ryanfriedman5410+github@gmail.com>
2023-11-17 18:24:39 -08:00
Tom Pittenger fcf602cbe2 AP_Networking: init socket null check 2023-11-17 18:24:39 -08:00
Tom Pittenger 30bccf6266 AP_Networking: adjustable PORT buf size 2023-11-17 18:24:39 -08:00
Andrew Tridgell 84dd7eaaf1 AP_Networking: added support for mapping network ports
only UDP_CLIENT so far
2023-11-17 10:54:24 -08:00
Andrew Tridgell 8151ee36c7 AP_Networking: fixed build with gcc 11.x 2023-11-15 12:43:41 -08:00
Andrew Tridgell 4a773eabb2 AP_Networking: added SITL backend
this allows the net tests to run on SITL, and for DDS testing using
the SocketAPM API
2023-11-15 12:43:41 -08:00
Andrew Tridgell c54e6ce44b AP_Networking: added NET_TEST_IP for test server IP address
and default to same as default for DDS server
2023-11-15 12:43:41 -08:00
Andrew Tridgell fbe2651840 AP_Networking: removed unuused send_udp in ChibiOS backend 2023-11-15 12:43:41 -08:00
Tom Pittenger 74f9b74fe7 AP_Networking: add get_str() accessor to IP address parms 2023-11-15 12:43:41 -08:00
Andrew Tridgell 4afd0f746b AP_Networking: added networking test suite 2023-11-15 12:43:41 -08:00