Closed mniestroj closed 1 year ago
Visit the preview URL for this PR (updated for commit b7ce117):
https://golioth-zephyr-sdk-doxygen-dev--pr333-nrf52840dk-cert-boo0r3ge.web.app
(expires Tue, 20 Dec 2022 18:21:15 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: a389eefadf4b4b68a539327b3459dd66c142cf49
There are commit message compliance issues due to long line lengths. All those lines are because of log messages attached. Breaking those would decrease readability, so those checks were ignored on purpose in that case.
So far using cert-based authentication was not successful with
nrf52840dk_nrf52840
platform. Some of the visible logs are listed below:The end result is that handshake never succeeds and there is no connection with Golioth server.
Seems that the main reason why handshake never succeeds is lack of network TX buffers. Increasing them from default 16 to 32 solves the problem. There are still allocation failures on the RX path (when receiving data from offloaded WiFi chip and putting them on the networking RX queue), but in the end DTLS handshake still completes.
Increase TX buffer to 32 for
nrf52840dk_nrf52840
platform. Do this for both PSK-based and cert-based authentication, as there is no easy mechanism to apply those settings (apart from using default Kconfig values per platform, which is kind of hacky) only for one platform and one configuration variant.Same issue does not reproduce with
esp32
platform, probably due to mix of following reasons: