Ubidots receives data from Acrel ADW300 and ADW310 IoT energy meters over MQTT, through acrel.ubidots.com, a broker built for these meters. Point the meter there with Acrel's configuration software, and each upload lands in Ubidots as one row of readings: per-phase voltage and current, power, power factor, frequency and energy counters, stored at the meter's own time.
You do | Ubidots does, on every upload |
In Ubidots: create a device whose API label is the meter's serial number, and copy its device token | Decodes Acrel's MQTT payload; no decoder to write |
In Acrel's configuration software: point the meter at acrel.ubidots.com and enter the token as the MQTT username and password | Creates one variable per data item the meter sends |
Optionally, choose which data items the meter sends | Stores the upload's two packets on one timestamp, taken from the meter's clock |
Supported models
Model | Network | Payload | Status |
ADW300 4G (three-phase) | 4G | Acrel generic MQTT, json-v2: up to 72 data items, sent as two packets per upload | Supported |
ADW300 WiFi (ADW300-WF, three-phase) | WiFi | Same as ADW300 4G | Supported |
ADW310 4G | 4G | Same as ADW300 4G (Acrel documents both together) | Supported |
ADW310-WiFi (single-phase) | WiFi | Its own format: MeterID, MAC and up to 16 data items | Payload supported; the setup steps below aren't confirmed on this model yet |
You don't tell Ubidots which model it is: it recognizes the ADW300 and ADW310-WiFi formats in each message.
Not supported: the Acrel AWT100 gateway (and the wired meters behind it), Modbus-TCP, LoRa/LoRaWAN, NB-IoT, Acrel's own cloud protocols, and commands from Ubidots to the meter. For one of these, write to us through the chat.
Requirements
An Acrel ADW300 or ADW310 meter, installed and powered, with network access: a SIM with a data plan for 4G models, or a WiFi network for WiFi models. Acrel's guide limits the meter's WiFi password to 10 characters.
A Windows computer with Acrel's ADW300 configuration software (ask your Acrel distributor), connected to the meter through a serial port.
An Ubidots account on industrial.ubidots.com, with room for one device per meter. No account yet? Start a free trial.
How the data gets to Ubidots
The meter publishes over 4G or WiFi to acrel.ubidots.com on port 1883. The broker reads the meter's token from its MQTT username and password, decodes each message and writes it to the matching device in your Ubidots account.
Setting | Value |
Server (domain) | acrel.ubidots.com |
Port | 1883 |
Protocol | MQTT 3.1.1 over plain TCP (no TLS) |
QoS | 1 |
Upload topic | platform/acrel/meter/json-v2/analog/0000 (any topic works; Ubidots reads the payload) |
Username | The part of the device token before the dash, for example BBUS |
Password | The rest of the token, after the dash |
Client ID | Leave the meter's default (its serial number) |
The connection isn't encrypted. acrel.ubidots.com accepts MQTT on port 1883 only, without TLS, so the token travels in plain text. That's why each meter should get its own device token: it can only write to its own device, and you can revoke it without affecting anything else. The broker never passes one meter's data to another client: a client that subscribes to any topic receives nothing.
1. Create the meter's device in Ubidots
Find the meter's serial number: 14 digits, on the barcode on the side of the meter. The configuration software also shows it in the serial_number field of the environment 1 tab.
In Ubidots, go to Devices → Devices and click + (Create Device).
Select Blank Device.
Give it a name you'll recognize, such as Generator 1 meter, and set the Device API label to the serial number exactly, for example 12345678901234.
The API label must match the serial. A device token only writes to its own device, and the meter's data is addressed to the device whose label is its serial. With any other label, Ubidots rejects the token and nothing is stored. |
2. Copy the device token
Open the device and click Manage Device tokens. Every device has a token from the moment it's created; see Managing Device Tokens.
Copy the token. If you create a new one instead, give it the Send data permission.
Split it at the first dash. For a token BBUS-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, the MQTT username is BBUS and the MQTT password is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
One device token per meter means a leaked token exposes one meter's device, not your account. Revoke it in Manage Device tokens, create a new one and enter it on the meter.
Device token or account token?
Use device tokens. An account token also works, and sets names and units for you, but anyone who reads it off a meter gets your whole account.
| Device token (recommended) | Account token |
If the token leaks | One device is exposed; revoke and replace it | The whole account is exposed |
Device in Ubidots | Create it first, label = serial (step 1) | Created on the first upload, named Acrel <serial> |
Variable names, units, icons | Not set: variables keep their API labels (voltage_a, active_energy_forward…). Set names and units by hand | Set automatically |
Device properties: ICCID, PT and CT ratios, MAC, firmware version | Not stored | Stored on the device |
With a device token the data itself is complete. Only the labels are raw: the Variables table below gives the unit for each one (the name is the label in words: voltage_a is Voltage A), and Add Units of Measure shows where to set them.
Optional: test the token from a computer
Before you touch the meter, you can check the broker and a device token from a macOS or Linux terminal with mosquitto_pub (package mosquitto or mosquitto-clients; on Windows, use Git Bash or WSL, because PowerShell and Command Prompt won't run these lines). Create a blank device with the API label acrel-test, copy its token into the first line, and run:
TOKEN=BBUS-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mosquitto_pub -h acrel.ubidots.com -p 1883 -q 1 \
-u "${TOKEN%%-*}" -P "${TOKEN#*-}" \
-t platform/acrel/meter/json-v2/analog/0000 \
-m "{\"data\":[{\"tp\":$(date +%s)000,\"point\":[{\"id\":0,\"val\":\"acrel-test\"},{\"id\":1,\"val\":230.1},{\"id\":7,\"val\":5.2},{\"id\":13,\"val\":1.15},{\"id\":26,\"val\":60}]}]}"
mosquitto_pub prints nothing when the broker accepts the message. Within a few seconds, acrel-test shows four variables: voltage_a, current_a, active_power_total and frequency. If they don't appear, Ubidots refused the token: it isn't acrel-test's token, or it lacks Send data. Connection Refused: bad user name or password means the token wasn't split correctly; a timeout means port 1883 is blocked on your network. Delete acrel-test when you're done.
3. Point the meter at acrel.ubidots.com
Meters leave the factory sending to Acrel's cloud. Change that on the environment 1 tab of the configuration software. Acrel's software varies between versions: if a field below isn't on your screen, write to us through the chat with a screenshot.
Connect the computer to the meter and open the software. Click SET at the top left, choose the COM port, leave Baud at 9600 and click confirm. Then click Broadcast read: the meter's address appears in ADDR.
Open the environment 1 tab and change the boxes below.
Each box on this tab has its own READ and SET, and SET saves only its own box. In each box, click READ first, change the values, then click that box's SET. |
Box | Set |
GPRS/NB (top) | port1: 1883. Upload interval: 1 to 15 minutes, 5 by default; see How many dots a meter uses below before you lower it. Leave Head serial number and port to print unticked |
connected num | connected num: 1. The first IP or domain selector (under 协议1): domain. Some versions show these options in Chinese: 域名 is domain, IP地址 is IP address |
domain1 to domain3 (bottom) | domain1: acrel.ubidots.com. Leave domain2 and domain3 empty |
远程服务器开关 (remote server switch), if your version has it | On (开) |
Then click READ in each box again to check the values were saved.
Protocol (协议1): Acrel's MQTT guide leaves it at its default. If yours offers generic MQTT (通用MQTT), choose it. Don't choose HWMQTT or EIOT: those are Acrel's cloud protocols, and Ubidots doesn't read them.
Typing the domain isn't enough. If IP or domain stays on IP, the meter keeps sending to IP1, which is Acrel's cloud from the factory (3.122.67.29), and nothing reaches Ubidots. Also use acrel.ubidots.com exactly: industrial.ubidots.com is the Ubidots web app, not the meter's broker. |
WiFi models: on the WIFI tab (WIFI SET in some versions), click READ, enter WIFI name and WIFI password (Acrel's guide allows 10 characters at most), leave DHCP EN as it is, then click SET.
Clock: check the date and time in the software's main window. Ubidots stores each reading at the meter's time, so a wrong clock puts readings at the wrong date. If readings arrive shifted by a whole number of hours, check the meter's time zone too.
4. Enter the MQTT credentials
Open the MQTT tab and click READ, then set:
Field | Value |
MQTT username | The token prefix, for example BBUS |
MQTT password | The rest of the token, after the dash |
MQTT theme_1 | Leave it. It's the command topic, and Ubidots sends no commands |
MQTT theme_2 | platform/acrel/meter/json-v2/analog/0000 (Acrel says theme_1 and theme_2 must differ) |
ClientID | Leave the default, the meter's serial number |
MQTT QOS | 1 |
TLS mode, if your version shows it | MQTT over TCP |
Any other field (SALEID, GATEID…) | Leave it as it is |
Click SET, then READ to check the values were saved. If nothing reaches Ubidots after two upload intervals, power the meter off and on so it reconnects with the new settings.
Replace whatever these fields hold: Acrel's guide shows the placeholders username and password, which Ubidots rejects.
5. Choose which data items the meter sends (recommended)
Out of the box the meter sends all 72 data items on every upload. Most projects need fewer. Next to the MQTT settings, the software opens a data items window with a checkbox per item: tick the ones you want, keep device ID (the serial) on, and click SET.
A core set of 18 covers most generator and three-phase monitoring:
Data items | Count |
Voltage A, B, C | 3 |
Current A, B, C | 3 |
Active power A, B, C and total | 4 |
Total reactive power, total apparent power, total power factor | 3 |
Frequency | 1 |
Active energy forward and reverse, reactive energy forward | 3 |
Signal strength | 1 |
How many dots a meter uses
Each variable in each upload is one dot. At the default 5-minute interval a meter uploads 12 times an hour, so with all 72 data items:
72 variables × 12 uploads/hour × 24 hours × 30 days = 622,080 dots per meter per month
Data items | Upload interval | Dots per meter per month |
72 (all) | 5 min | 622,080 |
72 (all) | 15 min | 207,360 |
18 (core set) | 5 min | 155,520 |
18 (core set) | 15 min | 51,840 |
Multiply by the number of meters and compare with your plan's dot allowance. Trimming data items (step 5) cuts dots without losing resolution; a longer interval cuts them further.
6. Check the data in Ubidots
Open the device after the next upload interval. A variable appears for each data item the meter sends, and both packets of an upload share one timestamp, so each upload is one row in charts and exports.
With a device token, the variables show their API labels with no units. Rename them and set units from the Variables table below, or leave them: the values are already right.
Nothing after two intervals? See Troubleshooting below.
Variables
ADW300 4G, ADW300 WiFi and ADW310 4G
Labels for phases A, B and C end in _a, _b and _c.
Data item IDs | Ubidots API labels | Unit |
1–3 | voltage_a, voltage_b, voltage_c | V |
4–6 | voltage_ab, voltage_bc, voltage_ca | V |
7–9 | current_a, current_b, current_c | A |
10–13 | active_power_a, _b, _c, active_power_total | kW |
14–17 | reactive_power_a, _b, _c, reactive_power_total | kvar |
18–21 | apparent_power_a, _b, _c, apparent_power_total | kVA |
22–25 | power_factor_a, _b, _c, power_factor_total | none |
26 | frequency | Hz |
27 | signal_strength | none set (see below) |
28–29 | active_energy_forward, active_energy_reverse | kWh |
30–31 | reactive_energy_forward, reactive_energy_reverse | kvarh |
32 | active_demand | kW |
33–35 | ICCID, PT ratio, CT ratio: device properties iccid, pt_ratio, ct_ratio (account token only) |
|
36–39 | temperature_a, _b, _c, temperature_n | °C |
40 | leakage_current | A |
41 | di_1, di_2, di_3, di_4 (digital inputs, 0 or 1) | none |
42–45 | active_energy_forward_a, active_energy_reverse_a, reactive_energy_forward_a, reactive_energy_reverse_a | kWh, kvarh |
46–49 | The same four for phase B (_b) | kWh, kvarh |
50–53 | The same four for phase C (_c) | kWh, kvarh |
54–56 | voltage_thd_a, _b, _c | % |
57–59 | current_thd_a, _b, _c | % |
60 | active_demand_reverse | kW |
61–62 | reactive_demand_forward, reactive_demand_reverse | kvar |
63–64 | voltage_unbalance, current_unbalance | % |
65–68 | active_energy_spike, _peak, _flat, _valley (time-of-use tariff periods) | kWh |
69–72 | reactive_energy_q1, _q2, _q3, _q4 (quadrants) | kvarh |
Any other | point_<id>, for example point_80 | none |
Forward and reverse follow Acrel's "positive" and "reverse". On a generator, which counter rises depends on how the current transformers are installed, so check which one increases while it runs.
Signal strength has no unit: Acrel's specification says dBm, but its sample value (27) looks like a 0–31 cellular scale on 4G models; on WiFi models it may be the WiFi signal.
ADW310-WiFi
Data item IDs | Ubidots API labels | Unit |
1–2 | voltage, current | V, A |
3–5 | active_power, reactive_power, apparent_power | kW, kvar, kVA |
6–7 | power_factor, frequency | none, Hz |
8 | active_energy (total) | kWh |
9–10 | active_energy_forward, active_energy_reverse | kWh |
11–12 | reactive_energy_forward, reactive_energy_reverse | kvarh |
15 | rssi (WiFi signal) | dBm |
13, 14, 16 and MAC | Device properties pt_ratio, ct_ratio, firmware_version, mac (account token only) |
|
Labels shared with the ADW300, such as frequency and the energy counters, mean the same quantity in the same unit, so energy totals compare directly across both.
How Ubidots handles the data
Situation | What happens |
Reading time | The meter's own time. Ubidots uses the arrival time instead when the meter's clock reads before 2020 or more than 24 hours ahead |
Two packets per upload (data items 1–35, then 36–72) | Both carry the same time, so they land on one row |
Several readings in one message | Each is stored at its own time |
A data item Ubidots doesn't know (newer firmware) | Stored as point_<id> |
Digital inputs (data item 41) | Split into di_1 to di_4, each 0 or 1 |
ICCID, PT and CT ratios, MAC, firmware version | Stored as device properties with an account token; not stored with a device token |
Topic | Any topic is accepted; Ubidots reads the payload |
Ubidots can't store a reading | That reading is lost; the meter doesn't send it again |
Commands to the meter | Not supported: the integration is uplink only |
Troubleshooting: why is no data reaching Ubidots?
Symptom | Cause | Fix |
Nothing arrives | The meter still sends to Acrel's cloud: IP or domain is on IP, and IP1 is 3.122.67.29 | Step 3: set it to domain, domain1 acrel.ubidots.com, port1 1883, and click the SET of each box |
Nothing arrives, and domain1 is filled in | Wrong host, for example industrial.ubidots.com | Use acrel.ubidots.com |
The meter never stays connected (an MQTT client shows: bad user name or password) | Empty or malformed credentials | Step 4: username = token prefix, password = the rest |
The meter connects, then drops after each upload; later it may be refused (an MQTT client shows: not authorised) | Ubidots rejected the token: it's wrong or revoked, or it's a device token for a device whose API label isn't this meter's serial number | Fix the token (step 2) or the label (step 1). A new token works at the meter's next connection; if you kept the same token and fixed the label, the broker can keep refusing it for up to 5 minutes |
The device stays empty though the server and token are right | The meter sends a format Ubidots doesn't read, such as Acrel's cloud protocol | Step 3: generic MQTT. Still nothing? Write to us through the chat with the meter's serial number: we can see what it sent |
Data lands in a new device named Acrel <serial> | An account token, and no device with the serial as its API label | Expected with an account token. To keep your own device, set its API label to the serial |
Readings at the wrong date or time | The meter's clock isn't set | Set it. Until then, readings dated before 2020 or more than a day ahead are stored at arrival time |
Readings shifted by a whole number of hours | The meter's clock or time-zone setting | Check both, and write to us through the chat if it persists |
Variables show API labels, no units | A device token can't edit names or units | Set them by hand from the Variables table |
A variable called point_<id> | A data item Ubidots doesn't recognize | Rename it, and tell us its ID through the chat |
The forward energy counter stays flat on a generator | The current transformers' orientation makes its output count as reverse | Use active_energy_reverse |
A WiFi meter never connects | Wrong WiFi name, or a password over 10 characters | Check the WIFI tab; Acrel's guide limits the password to 10 characters |
More dots than expected | All 72 data items at a short interval | Step 5, and the dots table |
FAQ
Can I use an ADW300 for remote generator monitoring?
Yes. Per-phase voltage and current, frequency, power and energy cover a generator's output, and the 4G model needs no site network. In Ubidots, add Events for voltage or frequency out of range and an inactivity event for a meter that stops reporting.
Is the connection encrypted?
No. acrel.ubidots.com takes MQTT over plain TCP on port 1883 only. A device token per meter limits what a leaked token can reach to one device.
Can the meter keep sending to Acrel's platform too?
We haven't confirmed it. Plan on the meter sending to Ubidots only, and write to us through the chat if you need both.
Does Ubidots support the Acrel AWT100 gateway?
No. The AWT100 uses a different protocol from the ADW300 and ADW310. Write to us through the chat if you have AWT100 gateways to connect.
Can Ubidots send commands to the meter?
No. The integration is uplink only: the meter's command topic (MQTT theme_1) is accepted but never receives anything.
Next steps
Alerts: Events on voltage, frequency or power factor, and an inactivity event for a meter that goes quiet.
Units: Add Units of Measure to the variables a device token created.
No account yet? Start a free trial and run the token test above.