NCE Controller interface

As the NCE Controller interfaces via a serial device the RXTX library was used to create the connection.  This requires the binary runtimes to be installed this is quite a simple process on debian based operating systems like that of raspbian on the raspberry pi.  This is simply installed via the apt command as follows:

sudo apt-get install librxtx-java

The NCE interface is then created by creating an NCE message processor this processes the internal message types into NCE implementation runner versions of them, the NCE implementation when run converts the internal data to a packet of data to be sent across the serial interface to the NCE controller.  Once the NCE controller has processed the data packet sent it returns data back across the serial interface.  The NCE implementation then converts the NCE data back to an internal format and returns this back to the core services.

Further interfaces to controllers can be created in a similar fashion simply by adding a message processor implementation for the controller and then creating the controller specific message types to convert the internal types to send the data to the controller.

Leave a Reply