2015-08-09 23:58:03 +02:00
|
|
|
# Usage {#usage}
|
2014-07-14 11:01:34 +00:00
|
|
|
|
2017-03-13 00:03:36 -03:00
|
|
|
The core of VILLASnode is the `villas-node` server.
|
|
|
|
The folling usage information is provided when called like `villas-node --help`;
|
|
|
|
|
|
|
|
Usage: villas-node [CONFIG]
|
|
|
|
CONFIG is the path to an optional configuration file
|
|
|
|
if omitted, VILLASnode will start without a configuration
|
|
|
|
and wait for provisioning over the web interface.
|
|
|
|
|
|
|
|
Supported node types:
|
|
|
|
- file : support for file log / replay node type
|
|
|
|
- cbuilder : RTDS CBuilder model
|
|
|
|
- socket : BSD network sockets
|
|
|
|
- fpga : VILLASfpga PCIe card (libxil)
|
|
|
|
- ngsi : OMA Next Generation Services Interface 10 (libcurl, libjansson)
|
|
|
|
- websocket : Send and receive samples of a WebSocket connection (libwebsockets)
|
|
|
|
|
|
|
|
Supported hooks:
|
|
|
|
- restart : Call restart hooks for current path
|
|
|
|
- print : Print the message to stdout
|
|
|
|
- decimate : Downsamping by integer factor
|
|
|
|
- fix_ts : Update timestamps of sample if not set
|
|
|
|
- skip_first : Skip the first samples
|
|
|
|
- drop : Drop messages with reordered sequence numbers
|
|
|
|
- convert : Convert message from / to floating-point / integer
|
|
|
|
- shift : Shift the origin timestamp of samples
|
|
|
|
- ts : Update timestamp of message with current time
|
|
|
|
- stats : Collect statistics for the current path
|
|
|
|
- stats_send : Send path statistics to another node
|
|
|
|
|
|
|
|
Supported API commands:
|
|
|
|
- nodes : retrieve list of all known nodes
|
|
|
|
- config : retrieve current VILLASnode configuration
|
|
|
|
- reload : restart VILLASnode with new configuration
|
|
|
|
|
|
|
|
VILLASnode v0.7-0.2-646-g59756e7-dirty-debug (built on Mar 12 2017 21:37:40)
|
|
|
|
copyright 2014-2016, Institute for Automation of Complex Power Systems, EONERC
|
|
|
|
Steffen Vogel <StVogel@eonerc.rwth-aachen.de>
|
2014-07-14 11:01:34 +00:00
|
|
|
|
|
|
|
The server requires root privileges for:
|
|
|
|
|
2015-12-11 19:20:50 +01:00
|
|
|
- Enable the realtime FIFO scheduler
|
2014-07-14 11:01:34 +00:00
|
|
|
- Increase the task priority
|
|
|
|
- Configure the network emulator (netem)
|
|
|
|
- Change the SMP affinity of threads and network interrupts
|
|
|
|
|
|
|
|
## Step-by-step
|
|
|
|
|
|
|
|
1. Start putty.exe (SSH client for Windows)
|
|
|
|
|
|
|
|
- Should be already installed on most systems
|
|
|
|
- Or load .exe from this website (no installation required)
|
|
|
|
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
|
|
|
|
|
2016-06-08 23:21:42 +02:00
|
|
|
2. Connect to VILLASnode
|
2014-07-14 11:01:34 +00:00
|
|
|
|
2015-12-11 19:20:50 +01:00
|
|
|
| Setting | Value |
|
|
|
|
| :------- | :-------------- |
|
|
|
|
| IP | 130.134.169.31 |
|
|
|
|
| Port | 22 |
|
|
|
|
| Protocol | SSH |
|
|
|
|
| User | root |
|
|
|
|
| Password | *please ask msv |
|
2014-07-14 11:01:34 +00:00
|
|
|
|
2016-06-08 23:21:42 +02:00
|
|
|
3. Go to VILLASnode directory
|
2014-07-14 11:01:34 +00:00
|
|
|
|
2016-06-08 23:21:42 +02:00
|
|
|
$ cd /villas/
|
2014-07-14 11:01:34 +00:00
|
|
|
|
|
|
|
4. Edit configuration file
|
|
|
|
|
2017-03-13 00:03:36 -03:00
|
|
|
$ nano etc/loopback.conf
|
2014-07-14 11:01:34 +00:00
|
|
|
|
|
|
|
- Take a look at the examples and documentation for a detailed description
|
|
|
|
- Move with: cursor keys
|
|
|
|
- Save with: Ctrl+X => y => Enter
|
|
|
|
|
|
|
|
5. Start server
|
|
|
|
|
2017-03-13 00:03:36 -03:00
|
|
|
$ villas node etc/loopback.conf
|
2014-07-14 11:01:34 +00:00
|
|
|
|
|
|
|
6. Terminate server by pressing Ctrl+C
|
|
|
|
|
|
|
|
7. Logout
|
|
|
|
|
2015-08-09 23:58:03 +02:00
|
|
|
$ exit
|