Node-RED node for m-pression EH-Terminal G2 Wireless Sensor Device by Macnica, which supports Analog Devices' SmartMesh IP wireless technology.
This device has the following sensors and emits all the sensor data every 30 seconds.
- Illuminance (lux)
- Temperature (degree Celsius) and Humidity (%)
- 3-axis Accelerometer (g)
- Battery voltage (V)
This node parses and translates the raw packets into easy-to-use JSON objects. The node supports Node-RED Dashboard Chart node data format, which means you can quickly plot the device sensor data with the Chart node without any data transformation.
Let's ask Macnica!
The bundled example flow provides the following demonstrations:
- Transform a raw protocol message from EH-Terminal G2 into live chart values to draw a chart with UI Chart node
- Print SmartMesh notification events
- Print OAP message if any
The following node is required to receive SmartMesh data packets. The example node relies on it as well.
- DC2274A-A SmartMesh IP™ USB Manager dongle, or its equivalent device (SmartMesh Master mote) having a serialport CLI
In order to use EH-Terminal G2 with your SmartMesh IP™ USB Manager dongle, you might need some work.
- Change Network ID on your Manager
- Restart the network
Connect SmartMesh IP™ USB Manager dongle to your computer and start a terminal session to the USB serial port. Here is a linux/macOS example command using screen
.
$ screen /dev/ttyUSBX 9600
Then login to the Manager. We assume your USB Manager configuration is identical to the factory default.
> login user
> set config netid 1723
The Network ID 1723
is the factory default Network ID on EH-Terminal G2.
The configuration change persists even after reboot so you don't have to repeat the process once you modify it.
In order to take effect the change, the network should be restarted.
> reset system
Exit the screen
terminal by hitting Ctrl A
then Ctrl Z
.
Use Manage Palette
dialog in the browser editor or run the following commands:
cd ~/.node-red
npm install @candy-line/node-red-contrib-eh-terminal-g2
Then restart Node-RED process.
cd ~/.node-red
sudo npm uninstall --unsafe-perm @candy-line/node-red-contrib-eh-terminal-g2
Use Manage Palette
dialog in the browser editor or run the following commands:
cd /opt/candy-red/.node-red
sudo npm install --unsafe-perm @candy-line/node-red-contrib-eh-terminal-g2
Then restart candy-red
service.
sudo systemctl restart candy-red
Manage Palette
dialog should work for uninstallation as well as the following commands:
cd /opt/candy-red/.node-red
sudo npm uninstall --unsafe-perm @candy-line/node-red-contrib-eh-terminal-g2
# build
$ NODE_ENV=development npm run build
# package
$ NODE_ENV=development npm pack
- Source Code ... ASL 2.0 ©CANDY LINE INC.
- Node Icon ... CC BY-ND 3.0
-
1.0.2
- Strip unit property as it's redundant from the standard message
-
1.0.1
- Add
node-red
keyword
- Add
-
1.0.0
- Initial Release