Quality RTOS & Embedded Software

  Real time embedded FreeRTOS RSS feed  
FreeRTOS+UDP was removed from the FreeRTOS kernel download from FreeRTOS V10.1.0. See the FreeRTOS+TCP stack, which can be configured for UDP only use, as an alternative.

Network Related Command Console Commands
Using FreeRTOS+UDP from the FreeRTOS+CLI command line interface


Introduction

The pre-configured FreeRTOS+UDP demo projects that can be downloaded from this website include a command console implemented with FreeRTOS+CLI. The interface through which the CLI is access is documented on the platform specific documentation pages.

The file CLI-commands.c (located in FreeRTOS-Plus/Demo_Files/FreeRTOS_Plus_UDP_Demos/CLICommands) contains (among other RTOS related commands) the following Ethernet related commands:

  1. ping

    Ping sends an ICMP echo (ping) request and waits for the reply. It demonstrates the use of the FreeRTOS_SendPingRequest() and FreeRTOS_gethostbyname() API functions.

    Examples of valid command inputs include: ping 192.168.0.100
    ping 192.168.0.100 50
    [sends 50 bytes in the ping message]
    ping www.freertos.org
    ping www.freertos.org 100

  2. ip-config

    ip-config uses the FreeRTOS_GetAddressConfiguration() API function to display the IP address, gateway address, DNS server address and netmask obtained from a DHCP server.

  3. ip-debug-stats

    ip-debug-stats formats the statistics gathered by the example IP stack trace macros for display on the command console output


Video Demonstration

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.