emNet Samples
Jump to navigation
Jump to search
Various example applications for emNet are described here. These can be used for testing the correct installation and proper function of the device running emNet, or as a base for more user-specfic and advanced applications.
List of examples
General
| Example | Description |
|---|---|
| IP_Start_Sample.c | Demonstrates use of the IP stack without any server or client program. |
| IP_Start_ChibiOS_Sample.c | Demonstrates use of the IP stack without any server or client program for ChibiOS. |
| IP_Start_FreeRTOS_9_Sample.c | Demonstrates use of the IP stack without any server or client program for FreeRTOS. |
| IP_SimpleServer_Sample.c | Demonstrates setup of a simple server which simply sends back the target system tick for every character received. |
| IP_Ping_Sample.c | Demonstrates how to send ICMP echo requests and how to process ICMP replies in application. |
| IP_PhyLoopbackTest_Sample.c | Demonstrates use of the IP stack to automatically detect and solve IP address collisions in a network. |
ACD
| Example | Description |
|---|---|
| IP_ACD_Start_Sample.c | Demonstrates use of the IP stack to automatically detect and solve IP address collisions in a network. |
AutoIP
| Example | Description |
|---|---|
| IP_AUTOIP_Start_Sample.c | Demonstrates use of the IP stack to automatically assign an IP address using AutoIP negotiation. |
CoAP
| Example | Description |
|---|---|
| IP_COAP_Client_Sample.c | Demonstrates how to start a CoAP client and send commands to a CoAP server. |
| IP_COAP_Server_Sample.c | Demonstrates how to start a CoAP server. |
DHCP
| Example | Description |
|---|---|
| IP_DHCP_Server_Sample.c | Demonstrates the setup of a DHCP server. |
(m)DNS
| Example | Description |
|---|---|
| IP_DNS_Client_Sample.c | Demonstrates the use of the integrated DNS client. |
| IP_MDNS_Server_Sample.c | Demonstrates the use of the IP_DISCOVER Add-on. |
(T)FTP
| Example | Description |
|---|---|
| IP_FTP_Client_Sample.c | Demonstrates use of the emFTP client in different configurations. |
| IP_FTP_Server_Sample.c | Demonstrates how to start the emFTP server in different configurations. |
| IP_TFTP_Client_Sample.c | Demonstrates the use of the emNet TFTP client which can be used to access files on a TFTP server. |
| IP_TFTP_Server_Sample.c | Demonstrates use of the emNet TFTP server that can be used to access files on the file system of the target. |
MQTT
| Example | Description |
|---|---|
| IP_MQTT_CLIENT_PublisherSubscriber_2Tasks_Sample.c | Demonstrates how to subscribe to topics and also publish messages. |
NetBIOS
| Example | Description |
|---|---|
| IP_NETBIOS_Start_Sample.c | Sets up a responder to simple NetBIOS requests and will respond upon receiving a request with a configured NetBIOS name. |
(S)NTP
| Example | Description |
|---|---|
| IP_NTP_Client_Sample.c | Demonstrates time synchronization from NTP servers. |
| IP_SNTP_Client_Sample.c | Demonstrates requesting a timestamp from an NTP server. |
PTP
| Example | Description |
|---|---|
| IP_PTP_Sample.c | Demonstrates time synchronization from a PTP master clock, or periodically sending a time to the network for other slaves, depending on configuration. |
SMTP
| Example | Description |
|---|---|
| IP_SMTP_SendMail_Sample.c | Demonstrates sending a mail via a SMTP server and resolving the servers host name via DNS. |
SNMP
| Example | Description |
|---|---|
| IP_SNMP_AGENT_Start_Sample.c | Demonstrates use of emNet together with the SNMP Agent Add-On. |
| IP_SNMP_AGENT_Start_ZeroCopy_Sample.c | SNMP Agent Add-On, uses the ZeroCopy interface. |
TCP
| Example | Description |
|---|---|
| IP_TCP_Echo_Client_Sample.c | Connects to the IP_TCP_Echo_Server_Sample.c and sends a TCP packet. |
| IP_TCP_Echo_Server_Sample.c | Starts a TCP echo server and waits for IP_TCP_Echo_Client_Sample.c to connect and send a packet. |
| IP_TCP_NonBlockingConnect_Sample.c | Demonstrates how to connect to a server using non-blocking sockets. |
| IP_TCP_SpeedClient_Sample.c | Demonstrates the TCP send and receive performance of the device running emNet. |
| IP_TCP_SpeedClient_ChibiOS_Sample.c | SpeedClient Sample for ChibiOS. |
| IP_TCP_SpeedClient_FreeRTOS_9_Sample.c | SpeedClient Sample for FreeRTOS. |
| IP_TCP_SpeedClient_uCOS-III_Sample.c | SpeedClient Sample for uCOS-III. |
| IP_TCP_SpeedClient_ZeroCopy_Sample.c | Demonstrates the TCP send and receive performance of the device running emNet, uses the ZeroCopy interface. |
| IP_TCP_TasklessServer_Sample.c | Demonstrates accepting a TCP client as server without using a parent task by using Taskless Accept. |
UDP
| Example | Description |
|---|---|
| IP_UDP_Discover_Sample.c | Demonstrates setup of a simple UDP application, which waits for messages on a UDP port and answers if a discover packet has been received. |
| IP_UDP_Discover_ZeroCopy_Sample.c | Demonstrates setup of a simple UDP application using the zero-copy API, which waits for messages on a UDP port and answers if a discover packet has been received. |
VLAN
| Example | Description |
|---|---|
| IP_VLAN_Start_Sample.c | Demonstrates how to add and configure a VLAN interface that uses an already setup hardware interface to send/receive. |
Webserver
| Example | Description |
|---|---|
| IP_Webserver_Sample.c | Demonstrates how to start the emWeb server in different configurations. |
| IP_Webserver_uCOS-III_Sample.c | Demonstrates how to start the emWeb server for uCOS-III. |
| IP_Webserver_SingleTask_IPv4_IPv6_Sample.c | Demonstrates how the Web server can be used with one task. |
| IP_Webserver_UPnP_Sample.c | Demonstrates how to start the emWeb server with UPnP enabled. |
Websockets
| Example | Description |
|---|---|
| IP_WEBSOCKET_printf_Client_Sample.c | Simple WebSocket terminal that periodically sends a timestamp text message to a server. |
| IP_WEBSOCKET_printf_Server_Sample.c | Simple WebSocket terminal that can receive text messages to printf them to the standard output. |
| IP_Webserver_WEBSOCKET_printf_Server_Sample.c | Demonstrates how to implement a WebSocket server behind an emWeb server processing all other page requests. |
WiFi
| Example | Description |
|---|---|
| IP_WIFI_Scan_Sample.c | Demonstrates use of the IP stack without any server or client program using a WiFi interface. |