RF24Ethernet - TCP/IP over RF24Network 1.6b
TMRh20 - Pushing the practical limits of RF24 modules
uIP has a number of configuration options that can be overridden for each project. These are kept in a project-specific uip-conf.h file and all configuration names have the prefix UIP_CONF. Some of these options are specific to RF24Ethernet.
|#define||OUTPUT_BUFFER_SIZE UIP_CONF_BUFFER_SIZE - 1 - UIP_CONF_LLH_LEN - UIP_TCPIP_HLEN|
User Configuration Options /*
|#define UIP_CONF_MAX_CONNECTIONS 1|
|#define UIP_CONF_MAX_LISTENPORTS 1|
|#define UIP_CONF_BUFFER_SIZE MAX_PAYLOAD_SIZE|
uIP buffer size.
|#define UIP_CONNECTION_TIMEOUT 30000|
|#define UIP_CONF_LLH_LEN 0|
|#define UIP_CONF_UDP 0|
UDP support on or off (required for DNS)
|#define UIP_TIMER_DIVISOR 16|
Adjust the rate at which the IP stack performs periodic processing. The periodic timer will be called at a rate of 1 second divided by this value
Increase this value to reduce response times and increase throughput during user interactions.
|#define UIP_CONF_ACTIVE_OPEN 1|
uIP User Output buffer size
The output buffer size determines the max length of strings that can be sent by the user, and depends on the uip buffer size
Must be <= UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN
|#define UIP_WINDOW_REOPEN_DELAY 5150|
Optional: Used with UIP_CONNECTION_TIMEOUT
If an open connection is not receiving data, the connection will be restarted.
Adjust the initial delay period before restarting a connection that has already been restarted
For small payloads (96-120 bytes) with a fast connection, this value can be as low as ~750ms or so. When increasing the uip buffer size, this value should be increased, or the window may be reopened while the requested data is still being received, hindering traffic flow.