The wiki describes each part of the Weble IoT Universal Gateway on its own page. This page puts them in order: pick the use case closest to your project and read the pages in the order given. Every use case ends with the pitfalls that support sees most often.
New to the vocabulary? Four words are enough to start: a driver speaks one protocol; a gateway is a configured instance of a driver (one Modbus line, one BACnet network); an address is one data point of a gateway; a route copies the value of one address to another. See the Glossary.
Whatever the project, do these steps first:
- Choose and wire the device: Hardware, and for RS-485 lines and USB adapters Serial ports and USB adapters. On a PC, see Windows installation.
- Log in for the first time (
http://192.168.1.99, user admin, password on the label of the device): First start.
- Give the device its address on the site network: Network. Set the time zone and the time source: System configuration.
- Check the licences of the drivers you need: Product licences and the driver reference table.
- Go through the commissioning checklist of Securing the device: change the
admin password, one account per person.
- Learn the four screens you will use every day: Gateways, Addresses, Routes and, for automation, the Logic module.
Goal: the BMS reads the values of meters and controllers that do not speak BACnet, as objects of one BACnet device.
- Create a gateway for the field bus and its addresses: Modbus or M-Bus (commissioning: M-Bus commissioning and troubleshooting guide). Check that the Value column updates.
- Create a BACnet gateway and its local objects (
%bac:local): see Inserting local objects.
- Link each field value to its BACnet object with a route, by drag and drop between the two address tables: Creating a route with drag & drop. Scale or convert the value in the route if needed (Routing blocks reference).
- Name the objects for the BMS with a view if the default names do not suit: Views.
Examples: Airthings MQTT to BACnet (one route with routing functions), BACnet proxy (several BACnet controllers shown as one device), Connecting a SCADA to a PLC.
¶ 3. Use case 2: energy metering and daily export
Goal: read meters, keep their history and send a file every day.
- Choose the driver for your meters: Choosing a metering driver, then M-Bus, OBIS / IEC 62056 or Impulse.
- Create a logger and set the Log policy of the meter addresses: Logging and history and Log and Store value policies.
- Turn index values into consumption if you need it: Counter to instantaneous.
- Export the values every day with the CSV driver: Reliable daily CSV export to an FTP/SFTP server.
- Show them in charts: Dashboards and charts.
Goal: warn someone by e-mail, SMS, WhatsApp, Telegram or push notification when a value crosses a threshold or a device stops answering.
- Choose the trigger and the channel: Alarms and notifications (decision guide in section 2.1).
- Create the notification gateway: SMTP, SMS, IM (WhatsApp / Telegram) or Notification with the Weble mobile app.
- Watch the communication itself, not only the values: Email gateway status alerts and Routing watchdog.
¶ 5. Use case 4: remote access and maintenance
Goal: reach the device and the site network from the office.
- Connect the device to the Internet; it joins the Weble VPN with outgoing connections only: VPN management, Outgoing ports.
- Sign in to the Weble Cloud, find the device, create users and give them access: First steps in the Weble Cloud.
- Connect with Weble Connect, or with a connection in the browser (RDP, VNC, SSH, HTTP, FTP) or a native VPN client (Native VPN, IKEv2 recommended).
- Keep the device up to date and backed up: Software update, Backup, restore and snapshots.
Goal: send gateway values to a broker, a REST service or a cloud IoT platform, and receive commands.
- MQTT broker or client: Publishing gateway points over MQTT and the MQTT driver.
- Read or write a REST API: Reading a REST API with the HTTP driver and the HTTP driver.
- Cloud platforms: Microsoft Azure IoT Hub, Amazon AWS IoT, ClearBlade IoT Core.
- Let an application call the gateway itself: API overview, or over MQTT: Calling the gateway API over MQTT.
¶ 7. Use case 6: lighting and rooms
Goal: control lights, blinds and room functions.
- KNX: KNX driver; program the installation remotely with ETS through the device: Programming a KNX installation remotely with ETS.
- DALI: DALI driver and Commissioning a DALI line step by step.
- Scenes, timers and sequences: Logic module, Gates reference; time schedules with the Cron driver.
Goal: give the building operator a screen to watch and control the installation, without access to the configuration.
- Charts, plans and forms on logged data: Dashboards and charts.
- End-user application (
/ui) with places, plans, schedules and alarms: Visualization.
- Your own web page served by the device: Hosting a custom web page on the gateway.
- Create an operator account with a role limited to what it needs: Users, roles and API keys.
| Pitfall |
What to do |
| No history although a logger runs |
Log is never by default on every address: set it on the addresses to record. See Log and Store value policies. |
| A new user can change everything |
An account without a role has all rights, and Insert user does not ask for a role. Set the Role right after creating the account. See Users, roles and API keys. |
| Configuration lost after an update or a reset |
Make a backup and download it before every update, reset or large change. See Backup, restore and snapshots. |
| A gateway works but its value does not reach the destination |
Check the route with Listen. See Troubleshooting routes. |
| The licence is refused |
The date and time of the device must be right. See Product licences. |
| A value is lost at each restart |
Set Store value on the address. See Log and Store value policies. |