VILLASframework
Modular co-simulation framework
Lab 3: Sending data to node from standard input
villas_pipe1.svg

The villas pipe tool can be used to send and receive sample to / from a node.

The following command sends a single sample to node udp_node1.

$ # start tcpdump to capture traffic in background
$ tcpdump -i lo udp port 12001
$ # send 10 values to udp_node1
$ villas signal -v 3 -r 10 -l 10 mixed | villas pipe lab3.conf udp_node1
$ # stop tcpdump
$ kill %1

We can verify this by using Wireshark or tcpdump:

wireshark_udp.png
Wireshark capture of UDP traffic

Go to [lab 4] =>(node-lab-4)