Configuration of the SLIP interface in µVision.
Configuration of the SLIP interface in µVision.
The SLIP interface is configured using the Net_Config_SLIP.h file.The options are set in the file directly or using the Configuration Wizard.
SLIP Interface Configuration File
The SLIP configuration file contains the following settings:
- Connect to hardware via Driver_UART# defines the number of the UART peripheral on the microcontroller device to be used.
- Modem Settings specifies connection parameters for the serial modem like baud rate, flow control, and an initialization string.
- Speed specifies the baud rate that is to be used for the UART.
- The Flow Control switch enables the usage of RTS/CTS flow control in the UART.
- Initialization String specifies a string that is to be used for modem initialization.
- IP Address specifies a static local 4 bytes IP address. The value 255.255.255.255 is not allowed.
- Primary DNS Server specifies the IP address of the primary DNS server. The DNS Client sends IP address resolution requests to this address. The setting is irrelevant if the DNS Client is disabled.
- Secondary DNS Server specifies the IP address of the secondary DNS server. It is used if the primary DNS server is down or not accessible. In this case, the DNS Client automatically switches to the secondary DNS server if a non-zero address is provided. The setting is irrelevant if the DNS Client is disabled.
- IP Fragmentation enables fragmentation of outgoing IP datagrams, and reassembling the fragments of incoming IP datagrams.
- The Use Default Gateway on remote Network option applies when both Ethernet and SLIP dial-up networks are used simultaneously. If enabled, data that cannot be sent to a local LAN is forwarded to the Dial-up SLIP network instead.
- OS Resources Settings are used to optimize usage of OS resources.
- The default Interface Thread Stack Size is 512 bytes.
- The default Interface Thread priority is osPriorityAboveNormal. You can change this priority by changing the SLIP_THREAD_PRIORITY defined in this configuration file. This priority must be high enough for the SLIP interface to respond to events in a timely manner. Due to this requirement, it is recommended that this setting remain the default. For more information on default settings, see the section CMSIS-RTOS Requirements.
Additional SLIP configuration settings:
- The SLIP_ICMP_NO_ECHO defines the Echo response mode that is enabled by default. A value of 1 disables the echo response, and a value of 0 enables it. Alternatively, you can change it from a running application with the netICMP_SetNoEcho function.