picoos-net  1.xxxx
Macros
uIP configuration settings.

Macros

#define UIP_CONF_MAX_CONNECTIONS   4
 
#define UIP_CONF_MAX_LISTENPORTS   2
 
#define UIP_CONF_BUFFER_SIZE   590
 
#define UIP_CONF_UDP   1
 
#define UIP_CONF_UDP_CHECKSUMS   1
 
#define UIP_CONF_UDP_CONNS   1
 
#define UIP_CONF_STATISTICS   1
 
#define UIP_CONF_LOGGING   1
 
#define UIP_CONF_IPV6   1
 

Detailed Description

uIP configuration settings that are related to picoos-net. For complete documentation, see related Contiki OS documentation.

Macro Definition Documentation

§ UIP_CONF_MAX_CONNECTIONS

#define UIP_CONF_MAX_CONNECTIONS   4

Max number of connections. If using socket layer (NETCFG_SOCKETS == 1) Each socket consumes one Pico]OS mutex and two flags. In addition to that, network main loop uses one semaphore and one mutex. If uIP listen is enabled to accept incoming connections, a task is required for each connection. So if number of connections is for example 4, 5 * 3 + 2 Pico]OS events are needed. If using NOSCFG_FEATURE_CONOUT add 2 to that, which gives us 19 event objects.

Number of tasks needed for tcp sockets is 4, but network system itself uses one tasks and we must also have main and idle tasks. This results in 7 tasks. Values values can be used in poscfg.h for POSCFG_MAX_TASKS and POSCFG_MAX_EVENTS.

§ UIP_CONF_MAX_LISTENPORTS

#define UIP_CONF_MAX_LISTENPORTS   2

Maximum number of ports being listened for incoming connections.

§ UIP_CONF_BUFFER_SIZE

#define UIP_CONF_BUFFER_SIZE   590

Size of UIP packet buffer. Using 590 gives TCP MTU of 536 bytes, which is the minimum allowed.

§ UIP_CONF_UDP

#define UIP_CONF_UDP   1

Set to 1 if UDP connections should be included.

§ UIP_CONF_UDP_CHECKSUMS

#define UIP_CONF_UDP_CHECKSUMS   1

Set to 1 to enable UDP checksumming.

§ UIP_CONF_UDP_CONNS

#define UIP_CONF_UDP_CONNS   1

Number of UDP connections.

§ UIP_CONF_STATISTICS

#define UIP_CONF_STATISTICS   1

Set to 1 to include uIP runtime statistics support.

§ UIP_CONF_LOGGING

#define UIP_CONF_LOGGING   1

Set to 1 to include uIP error logging.

§ UIP_CONF_IPV6

#define UIP_CONF_IPV6   1

IPv4/IPv6 configuration:

  • 0: Use IPv4
  • 1: Use IPv6

There is no support for dual-stack configuration (ie. both IPv4 & IPv6 enabled).