Module Manangement Console This is a nodejs program to manage VLBC & CBUS modules Being based on NodeJS, it is a cross platform application, running on windows, linux & MacOS
There are essentially two components:
Once run, the program will start the client on the same machine in the default browser, but like any other web server, it will accept connections from browsers on other machines on the same network - no need to load software on those machines In principal, another machine could be a tablet or mobile on the same network, but very little testing has been done for this situation
The following is needed to run the application from the github project
This application requires Node.js (& npm) to run
Get Node.js from -> https://nodejs.org/en/download/package-manager/
Once Node.js is installed, clone the application, or take the zip file, & extract to your location of choice
Use the green 'code' button near the top of this page
(cloning is recommended, as it's easier to update)
After the repo is cloned locally, at the root of the repo, run 'npm install' to load all dependancies - this may take a little while
On windows, once installed, if you then get npm failing to run (I get mixed '\' and '/' trying to load files), you may need to "Set the npm run shell" by running the following
npm config set script-shell "C:\Program Files\git\bin\bash.exe"
Original source for this fix -> https://digipie.github.io/digidocs/nodejs/set-npm-run-shell/
By default, the application will attempt to automatically find a CANUSB or CANUSB4 device connected via USB,
and then use that to connect to the CANBUS network
A specific serial port can be selected using the 'serialPort=
Alternatively, a network connection can be used, using an optional command line parameter 'network', so that applications like 'cbusServer' can be used, typically on a remote machine
The cbusServer service here -> See https://www.merg.org.uk/merg_wiki/doku.php?id=cbus_server:cbus_server&s[]=cbusserver
See details on cbusServer on setting up the serial port
The default IP settings should work 'out the box'
But the ip & port settings are in the server.js file, and can easily changed for a remote IP connection or a different port if required
Alternatively, there is a software simulation of a CBUS network available, again using the 'network' option,
which avoids the need for any other physical hardware
This application provides a simulation of multiple modules on a VLCB network, and has been used to test operation of this conformance test
https://github.com/david284/CbusNetworkSimulator.git
To run the app, use 'npm start' at the command line or 'npm start [command line options]' - see below for command line options The program will open a web page using the default web browser
use 'npm start [command line options]'
auto - (or just 'npm start') attempts to automatically find CANUSB4
network - uses tcp connection
serialPort=
There was a pre-built version of MMC for windows only, using NW.js (previously known as node-webkit) Unfortunately, it no longer works It is likely my ignorance of this, but I found it difficult to create, and had reports of others not being able to use it I would welcome any help from anyone who has experience in creating installable nodejs applications