vscp_logo.jpg
Back to VSCP Daemon Documentation.

VSCP configuration file walk through

The full configuration file format is described here 40_vscpd_config_file.

General settings

In the <general> tab area settings that affect the behavior of the server in general is located.

udpport

Use to set the port for the daemon UDP broadcasts. Default is 9598.

tcpport

Use to set the port for the daemon TCP/IP interface. Default is 9598.

loglevel

Loglevel 0-10 where 0 is no logging and 10 is debug mode. Default is 1.

tcpif

Enable/disable daemon TCP/IP interface. Default is enabled.

udpif

Enable/disable daemon UDP interface. Default is enabled.

canaldriver

Enable/disable daemon driver interface. If diabled no drivers will be loaded. Default is enabled.

vscp

Enable/disable daemon internal VSCP functionality. If disbled the server will no longer react on events like the High end server probe etc. Default is enabled.

dm

Enable/disable the internal decision matrix of the daemon. Default is enabled.

guid

Set the server GUID for the daemon. If not set here a GUID will be formed from the (first) MAC address of the machine the daemon runs on (on Linux needs to be run as root to get this) or if this fails the local IP address is used to form the GUID.

clientbuffersize

This is the default buffer size (number of events) for all clients in the system. Everything from a driver to a TCP/IP user is regarded as a client. Default is 1024.

Remote user settings

In the <remoteuser» tab area settings that affect users on that can access the daemon through the TCP/IP interface is located. Each user is defined between a <user>…</user> pair.

name

Username for this user.

password

Password ad an md5 checksum for this user. The mkvscppw can be user to generate passwords.

privilege

Users can have privileges from 0-15 that allow them to do command that are equal to or less then the set privilege level. Enter a privilege level as 0-15 here or in symbolic form as admin (==15) or user (==4). Default is 4.

allowfrom

This is a comma separated list with host addresses this user is allowed to log in to the server from. Whildcards can be used to indicate “all”. This mean that

  • .*.*.*”

means a user can log in from all remote machines.

194.*.*.*

that he/she can log on from all ip addresses that starts with 194 and son on. Default is all.

allowevent

This is a comma seperated list of evenets this user is allowed to send. The form is

class:type,class:type

wildcards (*)can be used for both. This means that 20:*,30:* means that the user is allowed to send all evenst in class=20 and class=30. Default allows user to send all evenst.

mask

Set the mask for incoming events to a client. The form is

priority="xxx" class="xxx" type="xxx" GUID="xxx">

The mask has a bit set for a binary digit that is of interest. Default is all is null == disabled.

filter priority="xxx" class="xxx" type="xxx" GUID="xxx">This is the event filter</filter>

Set the filter for incoming events to a client. The form is

class="xxx" type="xxx" GUID="xxx"

If a mask bit is set to one for a position then the filter bit must be equal to the bit of the incoming event for the client to get it.

automation

In the <automation> tab area settings that affect the internal VSCP functionality behavior of the server is located.

daemon

This is the zone for the server 0-154.

subzone

This is the sub-zone for the server 0-154.

longitude

Longitude for place where daemon is located.

latitude

Latitude for place where daemon is located.

time

Enable/disable the periodic CLASS1.PROTOCOL, Type=1 (Segment Status Heartbeat) event to be sent from the daemon. The interval between events is set in seconds.

<time enable="true|false" interval="seconds" /> 

sunrise

Enable/disable the CLASS1.INFORMATION, Type=44 (Sunrise) to be sent. Longitude and latitude must be set for this to work correctly.

<sunrise enable="true|false" />

sunset

Enable/disable the CLASS1.INFORMATION, Type=45 (Sunset) to be sent. Longitude and latitude must be set for this to work correctly.

<sunset enable="true|false" />

heartbeat

Enable/disable the CLASS1.INFORMATION, Type=9 (Node Heartbeat) to be sent. The interval between events is set in seconds.

<heartbeat enable="true|false" interval="seconds" />

canaldriver

In the <canaldriver> tab area settings for loadable drivers is located. Each driver is located between <driver>…</driver> pairs.

name

This is the name of the driver.

parameter

This is the driver option string.

path

This is the path to the driver dll/dl.

flags

This is the driver flags. A 32-bit numerical value.

guid

This is the GUID for the driver. If not set, the client GUID which is generated from the daemon GUID, is used.

interface

This section holds information about each TCP/IP interface the daemon service. Normally no need to enter this information.

port

The TCP/IP port to use for the interface. Default is 9598.

ipaddress

IP address to use for interface.

macaddress

MAC address for thernet card where interface is. Entered as a six digit hex number on the form

aa:bb:cc:dd:ee:ff

guid

GUID for the interface.

Go back

vscp/config_walkthrough.txt · Last modified: 2010/08/19 02:55 (external edit)
Public Domain www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0