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

Change maximum UDP datagram buffer size #598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aqw42
Copy link

@aqw42 aqw42 commented Dec 23, 2022

UDP packet will not send if its size is greater than 508, and the issue is hard to debug. I made this modification on my side and it works fine. Maybe add a warning if it is exceeded, instead of failing silently ?

UDP packet will not send if its size is greater than 508, and the issue is hard to debug.
I made this modification on my side and it works fine.
Maybe add a warning if it is exceeded, instead of failing silently ?
@CLAassistant
Copy link

CLAassistant commented Dec 23, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Memory usage change @ cb81df2

Board flash % RAM for global variables %
arduino:mbed:envie_m4 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:envie_m7 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:nano33ble 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:nanorp2040connect 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:nicla_sense 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:nicla_vision 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board libraries/Scheduler/examples/MultipleBlinks
flash
% libraries/Scheduler/examples/MultipleBlinks
RAM for global variables
% libraries/doom/examples/Doom
flash
% libraries/doom/examples/Doom
RAM for global variables
% libraries/KernelDebug/examples/KernelDebug
flash
% libraries/KernelDebug/examples/KernelDebug
RAM for global variables
% libraries/Portenta_SDCARD/examples/TestSDCARD
flash
% libraries/Portenta_SDCARD/examples/TestSDCARD
RAM for global variables
% libraries/Portenta_SDRAM/examples/SDRAM_operations
flash
% libraries/Portenta_SDRAM/examples/SDRAM_operations
RAM for global variables
% libraries/Portenta_Video/examples/ArduinoLogo
flash
% libraries/Portenta_Video/examples/ArduinoLogo
RAM for global variables
% libraries/RPC/examples/BootM4_from_SDRAM
flash
% libraries/RPC/examples/BootM4_from_SDRAM
RAM for global variables
% libraries/RPC/examples/PortentaX8_EchoServer
flash
% libraries/RPC/examples/PortentaX8_EchoServer
RAM for global variables
% libraries/RPC/examples/RPC_m4
flash
% libraries/RPC/examples/RPC_m4
RAM for global variables
% libraries/RPC/examples/SerialPassthrough_RPC
flash
% libraries/RPC/examples/SerialPassthrough_RPC
RAM for global variables
% libraries/PDM/examples/PDMSerialPlotter
flash
% libraries/PDM/examples/PDMSerialPlotter
RAM for global variables
% libraries/Camera/examples/CameraCaptureRawBytes
flash
% libraries/Camera/examples/CameraCaptureRawBytes
RAM for global variables
% libraries/Camera/examples/CameraMotionDetect
flash
% libraries/Camera/examples/CameraMotionDetect
RAM for global variables
% libraries/Portenta_lvgl/examples/Portenta_lvgl
flash
% libraries/Portenta_lvgl/examples/Portenta_lvgl
RAM for global variables
% libraries/STM32H747_System/examples/QSPIFReadPartitions
flash
% libraries/STM32H747_System/examples/QSPIFReadPartitions
RAM for global variables
% libraries/STM32H747_System/examples/QSPIFormat
flash
% libraries/STM32H747_System/examples/QSPIFormat
RAM for global variables
% libraries/STM32H747_System/examples/STM32H747_getBootloaderInfo
flash
% libraries/STM32H747_System/examples/STM32H747_getBootloaderInfo
RAM for global variables
% libraries/STM32H747_System/examples/STM32H747_getResetReason
flash
% libraries/STM32H747_System/examples/STM32H747_getResetReason
RAM for global variables
% libraries/STM32H747_System/examples/STM32H747_manageBootloader
flash
% libraries/STM32H747_System/examples/STM32H747_manageBootloader
RAM for global variables
% libraries/STM32H747_System/examples/WiFiFirmwareUpdater
flash
% libraries/STM32H747_System/examples/WiFiFirmwareUpdater
RAM for global variables
% libraries/ThreadDebug/examples/ThreadDebug
flash
% libraries/ThreadDebug/examples/ThreadDebug
RAM for global variables
% libraries/USBHID/examples/Keyboard
flash
% libraries/USBHID/examples/Keyboard
RAM for global variables
% libraries/USBHID/examples/Mouse
flash
% libraries/USBHID/examples/Mouse
RAM for global variables
% libraries/USBHOST/examples/KeyboardController
flash
% libraries/USBHOST/examples/KeyboardController
RAM for global variables
% libraries/USBHOST/examples/Shell
flash
% libraries/USBHOST/examples/Shell
RAM for global variables
% libraries/USBMSD/examples/AccessFlashAsUSBDisk
flash
% libraries/USBMSD/examples/AccessFlashAsUSBDisk
RAM for global variables
% libraries/WiFi/examples/WiFiWebClient
flash
% libraries/WiFi/examples/WiFiWebClient
RAM for global variables
% libraries/GSM/examples/GNSSClient
flash
% libraries/GSM/examples/GNSSClient
RAM for global variables
% libraries/GSM/examples/GSMClient
flash
% libraries/GSM/examples/GSMClient
RAM for global variables
% libraries/GSM/examples/MicroNMEA_integration
flash
% libraries/GSM/examples/MicroNMEA_integration
RAM for global variables
% libraries/USBMSD/examples/Nano33BLE_FlashMassStorage
flash
% libraries/USBMSD/examples/Nano33BLE_FlashMassStorage
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/AP_SimpleWebServer
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/AP_SimpleWebServer
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectNoEncryption
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectNoEncryption
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWEP
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWEP
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA2Enterprise
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA2Enterprise
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworks
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworks
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworksAdvanced
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworksAdvanced
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/SimpleWebServerWiFi
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/SimpleWebServerWiFi
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/Tools/CheckFirmwareVersion
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/Tools/CheckFirmwareVersion
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/Tools/FirmwareUpdater
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/Tools/FirmwareUpdater
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/Tools/SerialNINAPassthrough
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/Tools/SerialNINAPassthrough
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiChatServer
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiChatServer
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiPing
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiPing
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiSSLClient
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiSSLClient
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiStorage
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiStorage
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpNtpClient
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpNtpClient
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpSendReceiveString
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpSendReceiveString
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClient
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClient
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClientRepeating
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClientRepeating
RAM for global variables
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebServer
flash
% /home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebServer
RAM for global variables
% libraries/Nicla_System/examples/Blink_Nicla
flash
% libraries/Nicla_System/examples/Blink_Nicla
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/App
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/App
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/BHYFirmwareUpdate
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/BHYFirmwareUpdate
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/DataHarvester
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/DataHarvester
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/Fail_Safe_flasher
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/Fail_Safe_flasher
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/ReadSensorConfiguration
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/ReadSensorConfiguration
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/ShowSensorList
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/ShowSensorList
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/Standalone
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/Standalone
RAM for global variables
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/StandaloneFlashStorage
flash
% /home/runner/Arduino/libraries/Arduino_BHY2/examples/StandaloneFlashStorage
RAM for global variables
%
arduino:mbed:envie_m4 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.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 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,libraries/Scheduler/examples/MultipleBlinks<br>flash,%,libraries/Scheduler/examples/MultipleBlinks<br>RAM for global variables,%,libraries/doom/examples/Doom<br>flash,%,libraries/doom/examples/Doom<br>RAM for global variables,%,libraries/KernelDebug/examples/KernelDebug<br>flash,%,libraries/KernelDebug/examples/KernelDebug<br>RAM for global variables,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>flash,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>RAM for global variables,%,libraries/Portenta_SDRAM/examples/SDRAM_operations<br>flash,%,libraries/Portenta_SDRAM/examples/SDRAM_operations<br>RAM for global variables,%,libraries/Portenta_Video/examples/ArduinoLogo<br>flash,%,libraries/Portenta_Video/examples/ArduinoLogo<br>RAM for global variables,%,libraries/RPC/examples/BootM4_from_SDRAM<br>flash,%,libraries/RPC/examples/BootM4_from_SDRAM<br>RAM for global variables,%,libraries/RPC/examples/PortentaX8_EchoServer<br>flash,%,libraries/RPC/examples/PortentaX8_EchoServer<br>RAM for global variables,%,libraries/RPC/examples/RPC_m4<br>flash,%,libraries/RPC/examples/RPC_m4<br>RAM for global variables,%,libraries/RPC/examples/SerialPassthrough_RPC<br>flash,%,libraries/RPC/examples/SerialPassthrough_RPC<br>RAM for global variables,%,libraries/PDM/examples/PDMSerialPlotter<br>flash,%,libraries/PDM/examples/PDMSerialPlotter<br>RAM for global variables,%,libraries/Camera/examples/CameraCaptureRawBytes<br>flash,%,libraries/Camera/examples/CameraCaptureRawBytes<br>RAM for global variables,%,libraries/Camera/examples/CameraMotionDetect<br>flash,%,libraries/Camera/examples/CameraMotionDetect<br>RAM for global variables,%,libraries/Portenta_lvgl/examples/Portenta_lvgl<br>flash,%,libraries/Portenta_lvgl/examples/Portenta_lvgl<br>RAM for global variables,%,libraries/STM32H747_System/examples/QSPIFReadPartitions<br>flash,%,libraries/STM32H747_System/examples/QSPIFReadPartitions<br>RAM for global variables,%,libraries/STM32H747_System/examples/QSPIFormat<br>flash,%,libraries/STM32H747_System/examples/QSPIFormat<br>RAM for global variables,%,libraries/STM32H747_System/examples/STM32H747_getBootloaderInfo<br>flash,%,libraries/STM32H747_System/examples/STM32H747_getBootloaderInfo<br>RAM for global variables,%,libraries/STM32H747_System/examples/STM32H747_getResetReason<br>flash,%,libraries/STM32H747_System/examples/STM32H747_getResetReason<br>RAM for global variables,%,libraries/STM32H747_System/examples/STM32H747_manageBootloader<br>flash,%,libraries/STM32H747_System/examples/STM32H747_manageBootloader<br>RAM for global variables,%,libraries/STM32H747_System/examples/WiFiFirmwareUpdater<br>flash,%,libraries/STM32H747_System/examples/WiFiFirmwareUpdater<br>RAM for global variables,%,libraries/ThreadDebug/examples/ThreadDebug<br>flash,%,libraries/ThreadDebug/examples/ThreadDebug<br>RAM for global variables,%,libraries/USBHID/examples/Keyboard<br>flash,%,libraries/USBHID/examples/Keyboard<br>RAM for global variables,%,libraries/USBHID/examples/Mouse<br>flash,%,libraries/USBHID/examples/Mouse<br>RAM for global variables,%,libraries/USBHOST/examples/KeyboardController<br>flash,%,libraries/USBHOST/examples/KeyboardController<br>RAM for global variables,%,libraries/USBHOST/examples/Shell<br>flash,%,libraries/USBHOST/examples/Shell<br>RAM for global variables,%,libraries/USBMSD/examples/AccessFlashAsUSBDisk<br>flash,%,libraries/USBMSD/examples/AccessFlashAsUSBDisk<br>RAM for global variables,%,libraries/WiFi/examples/WiFiWebClient<br>flash,%,libraries/WiFi/examples/WiFiWebClient<br>RAM for global variables,%,libraries/GSM/examples/GNSSClient<br>flash,%,libraries/GSM/examples/GNSSClient<br>RAM for global variables,%,libraries/GSM/examples/GSMClient<br>flash,%,libraries/GSM/examples/GSMClient<br>RAM for global variables,%,libraries/GSM/examples/MicroNMEA_integration<br>flash,%,libraries/GSM/examples/MicroNMEA_integration<br>RAM for global variables,%,libraries/USBMSD/examples/Nano33BLE_FlashMassStorage<br>flash,%,libraries/USBMSD/examples/Nano33BLE_FlashMassStorage<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/AP_SimpleWebServer<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/AP_SimpleWebServer<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectNoEncryption<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectNoEncryption<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWEP<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWEP<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA2Enterprise<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ConnectWithWPA2Enterprise<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworks<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworks<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworksAdvanced<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/ScanNetworksAdvanced<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/SimpleWebServerWiFi<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/SimpleWebServerWiFi<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/Tools/CheckFirmwareVersion<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/Tools/CheckFirmwareVersion<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/Tools/FirmwareUpdater<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/Tools/FirmwareUpdater<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/Tools/SerialNINAPassthrough<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/Tools/SerialNINAPassthrough<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiChatServer<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiChatServer<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiPing<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiPing<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiSSLClient<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiSSLClient<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiStorage<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiStorage<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpNtpClient<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpNtpClient<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpSendReceiveString<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiUdpSendReceiveString<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClient<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClient<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClientRepeating<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebClientRepeating<br>RAM for global variables,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebServer<br>flash,%,/home/runner/Arduino/libraries/WiFiNINA/examples/WiFiWebServer<br>RAM for global variables,%,libraries/Nicla_System/examples/Blink_Nicla<br>flash,%,libraries/Nicla_System/examples/Blink_Nicla<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/App<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/App<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/BHYFirmwareUpdate<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/BHYFirmwareUpdate<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/DataHarvester<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/DataHarvester<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/Fail_Safe_flasher<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/Fail_Safe_flasher<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/ReadSensorConfiguration<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/ReadSensorConfiguration<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/ShowSensorList<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/ShowSensorList<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/Standalone<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/Standalone<br>RAM for global variables,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/StandaloneFlashStorage<br>flash,%,/home/runner/Arduino/libraries/Arduino_BHY2/examples/StandaloneFlashStorage<br>RAM for global variables,%
arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed:nicla_vision,0,0.0,0,0.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

@sebromero
Copy link
Collaborator

@aqw42 Hi! I'm not sure I understand. You say "it works fine". Does that mean if you change the packet size it is sent successfully? It's a hardcoded value, so the user is not really supposed to change it. Can you elaborate?

@aqw42
Copy link
Author

aqw42 commented Apr 7, 2023

@aqw42 Hi! I'm not sure I understand. You say "it works fine". Does that mean if you change the packet size it is sent successfully? It's a hardcoded value, so the user is not really supposed to change it. Can you elaborate?

So, if you try to send anything biggest than this value (which is low for a udp datagram) the datagram will be truncated and there is no kind of warning or any way to let the developer know.
I spent some time to find out it was coming from this hardcoded value. I propose as a temporary solution to avoid such problems to raise it to a reasonable value (or even a high value, it is the responsibility of the user to not send too big datagrams)

I think a better solution would be implementing a mechanism of parametrisation of this at compile time, plus a way of preventing silent truncation of the datagram (warning at compile time ? Don't know if we can determine statically the size passed to the call)
As you may have guessed, I don't know how to do this, and my knowledge of this kernel is very limited.
If you can suggest me a proper way of doing this, I'll be glad to do it

@sebromero
Copy link
Collaborator

@aqw42 Got it. Thank you for clarifying. We'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants