Radiocraft Wireless M-Bus extension module  1.00.00
The Extension module C-Project

The extension module handles all the communication with the Wireless M-Bus module and provides a number of VPL functions for controlling it.
The Wireless M-Bus module is attached to serial port 3 on the NX-400 and has two control signals:

  • RF_OFF controls the power to the module. When set to 0, the module is turned on.
  • RF_CFG controls the CONFIG pin. When set to 1, the module is put in config mode.

Functionality

The VPL function calls the Modcall C functions which uses the VPL data structures for transferring data between VPL and C.
For more detailed description of the VPL functions, please see the comments in the src_vpl/mbus.inc include file.

The Implementation C functions and Helper C functions are used for configuring and communicating with the Wireless M-Bus module.
The extension module uses vplFsMapFile() from the libmodule.so library to get the path to the serial port and then uses the normal file system calls for opening and configuring it.
The control signals are controlled using vplSetIOSignal() from the libmodule.so library.