Skip to main content

Lab 3: Sending data to node from standard input

villas-pipe Example
villas-pipe Example.

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:

Loading...
Wireshark capture of UDP traffic
Wireshark capture of UDP traffic.