VSCP Works is a powerful graphical tools that can handle many task for you such as investigate events, configure devices and update firmware. Listed below are some scenarios t accomplish some easy tasks with VSCP Works.
The VSCP daemon should be started on a server somewhere for this to work.
Start VSCP Works
Before you can start a session you must add an interface. This is something you need to do once. Next time you need to open a session just double click the one you create.
fill in the data. If you server is on another machine use the IP for that machine instead of “localhost”. If you use another port instead of 9598 replace with what you use. “admin”/“secret” is default credentials used in the distributed set up file, change to some other user name if you have changed this.
When everything is filled in press “test connection” to validate. If it says OK everything is fine if not something is wrong. Common faults are wrong IP, wrong username/password and a setup for the username/password in the daemon configuration that does not allow your machine to connect. In the default configuration file the settings looks like this
<user> <name>admin</name> <password>5ebe2294ecd0e0f08eab7690d2a6ee69</password> <privilege>admin</privilege> <allowfrom>127.0.0.1,*.*.*.*</allowfrom> </user>
The allowfrom here allows connections from any IP address (not good security on a production platform).
If you don't have anything connected you will see an empty session list here.
But if you for example press a button in the websocket test page interface you will see the events sent here. The websocket test is described here Websockets guide.
click on one of the lines to get more information.
If you have a lot of events coming in you may want to set a filter to limit the amount of events (see below) or you may want to clear the list. Use the menu item Edit/Clear Receive List for that.
If you want to save events you have received for later use eight click on the list and select “save VSCP Events to file…”
In the session window you also have the possibility to send events. You do this in the lower portion of the session window.
Before you can send events you must add one or more to be able to send. Click on the “add transmission line” icon to the left
You can set a name for the event which will identify it in the transmission list, class, type, priority (use any) GUID (default is OK for most cases), and data. In the data field you enter a comma separated list with databytes. You can mix hex (precede value with 0x) and decimal values.
CLASS1.INFORMATION, ON with index=0, zone=0, subzone=0 is entered
looking like this as a transmission row
send this event by double clicking the row or select the row and press the
You can save and load rows with the File/Save transmission set to file or File Load transmission set from file and you have some other options if you right click on a row.