The deamon or server is available for linux and windows and can be run as service or normal application.
All it's configuration is done in a xml-file named vscpd.conf. The default path for this file is
%ALLUSERSAPPDATA%\vscp\vscpd.conf
on windows and
\etc\vscpd\vscpd.conf
on linux systems.
Typical xml file with only a few sections. Below the default file is shown.
First there must be a general section for setting ports and features. Also mandatory is the remoteuser section, which must hold at least one user.
Most users will need the canaldriver section to enable the server to grab events from USB/CAN/Serial or whatever.
Optional there can be a persistent variable section which is not shown here.
<?xml version = "1.0" encoding = "UTF-8" ?> <!-- Version 0.0.1 2007-09-27 --> <vscpconfig> <general> <udpport>9598</udpport> <tcpport>9598</tcpport> <loglevel>debug</loglevel> <tcpif disabled="false" /> <!-- It is possibel to disable the TCP/IP interface --> <udpif disabled="false" onlyincoming="false"/> <!-- It is possible to disable the UDP interface --> <canaldriver disabled="false"/> <dm disabled="false"/> <vscp disabled="false"/> </general> <remoteuser> <!-- Holds information about one (at least) or more users --> <user> <name>admin</name> <password>5ebe2294ecd0e0f08eab7690d2a6ee69</password> <!-- md5 of password --> <privilege>admin</privilege> <allowfrom>127.0.0.1,192.168.1.*</allowfrom> </user> </remoteuser> <canaldriver> <!-- Information about none or more CANAL drivers --> <driver> <name>canusb</name> <parameter>LWNQ06ES;125</parameter> <path>c:\windows\system32\canusbdrv.dll</path> <flags>1</flags> </driver> </canaldriver> </vscpconfig>
Example: to connect Ged's USB2CAN to the server simply use something like this. The parameter is the serial number printed on the case followed by the bitrate in khz.
<driver> <name>usb2can 0104</name> <parameter>ED000104; 125</parameter> <path>C:\Software\Technik\VSCP\canal\drivers\usb2can.dll</path> <flags>0</flags> </driver>
Discussion