Real-Time Considerations

The TCP/IP Stack for wRTOS is configured such that IP fragmentation is enabled by default, and payload sizes are limited to what can fit in a single Ethernet packet.

Optimized Buffer Sizes

The following table specifies the optimized buffer sizes that may be used with send, sendto, recv, and recvfrom for an IP MTU of 1500 bytes:

Socket Type Optimized Buffer Size (bytes)

SOCK_STREAM

1460

SOCK_DGRAM

1472

TCP/IP Default Parameters

To change the Hal Timer Period using wRTOS Settings:

Note: Use caution when setting the HAL Timer Period below 20 microseconds. If the HAL timer period is set too low, it can inversely impact performance or cause your system to hang. Fully test the timer period you set with your real-time application on all systems on which you will deploy to verify that the hardware can accomplish the compilations required in the period set.

  1. Open wRTOS Settings.
  2. Click System Behavior.
  3. Select a period from the HAL Timer Period (microseconds) drop-down menu. The available values are:

If you have configured a custom HAL timer period not listed in the drop-down menu, you can type it in.

  1. Restart wRTOS for your changes to take effect. If you plan to make additional changes that require a restart of the Subsystem, make all the changes first and then restart wRTOS when you are finished.

Related topics: