Data Acquisition Application for Open Energy Monitor CMS
DAQEMON is an application running on an OpenWRT router or access point, collecting data from MODBUS-enabled electicity meters, and sending the data to a server, hosting an EmonCMS.
DAQEMON comprises of a service and a web-based user interface, integrated into Luci - the default OpenWRT's user interface
To use DAQEMON you need the following:
- an OpenWRT router or access point with a free USB port (for other OS options please refer to Other OS below)
- a USB-RS485 converter
- a MODBUS-enabled electricity meter
- an account on an EmonCMS instance
- Follow the instructions provided with your electicity meter
for proper installation and MODBUS connection
⚠ Ensure you read and follow all safety precautions written there - Use a twisted pair wires or CAT3/CAT5 cable for MODBUS connection
- Connect the other end of the MODBUS wiring to USB-RS485 converter
- Plug the USB-RS485 converter into the USD port on your router
DAQEMON is available as a ipk package and is installed with the OpenWRT's package manager.
- Download package from this link to your PC
- Login to your router (further referred as http://router/)
- Select menu item
System > Software
or navigate to http://router/cgi-bin/luci/admin/system/opkg - Click button
Update Lists...
and wait till all the package lists are downloaded - Click button
Upload Package...
and select the downloaded DAQEMON package - Click
Install
on the next screen
- Login to your router via SSH or serial console
- Execute the following commands:
# opkg update
# opkg install https://github.com/hutorny/download/raw/master/luci-app-daqemon_git-21.290.63317-e33393e_all.ipk
- Select menu item
Daqemon > Setup
or navigate to http://router/cgi-bin/luci/admin/system/opkg - Check if the MODBUS settings are correct for your electricity meter and adjust if necessary
- Click
Find first
button to search for the connected device. If you have more than one MODBUS device connected, useScan
instead. - Wait till the scan completes
Alternativelly, you may enter all MODBUS slave IDs manually, for example:7 9 66
- Enter the server's URL and API key, click
Save
The API key is available from your account page in EmonCMS. If you do not have an account yet, you may sign on using theRegister
button
If the URL and the API key are valid, the server version will be shown below the API key text box - Select Daqemon (if available) or Default device profile
- Come up with a node ID and a name that will identify this DAQEMON instance and enter them in the
Node ID
andName
text boxes - Click button
Create Node
If everything is correct, theSave
button will change its title toNext
- Click
Next
to continue with the configuration
- Open the configuration page by selecting
Daqemon > Configuration
(if not forwarded from the Setup page) - Select the deivce model (if your model is not listed you may try
GENERIC
) - Come up with a device name and enter it
- Select inputs to collect
- If necessary, change inputs' attributes: polling interval, QoS, tag
- Click
Update
button and confirm the actions execute on the server - Click
Save & Apply
- GENERIC1
- DDM18SD
- DTS6619
- DTS238-4
- DTS238-7
1 GENERIC
model reads a float32
value from address 0x40100
(function code 04)
Consult you meter's manual to decide if your meter is compatible with the GENERIC
model.
DAQEMON service may also run on a Linux computer. This, however, requires manual installation and configuration.