August 14, 2025

Scripting in IoT: Flexibility, sustainability, and protection

One of the common challenges in deploying IoT devices in real-world projects is the need to modify firmware every time the customer requires a specific behaviour. Whether it’s a different reading interval, support for a proprietary protocol, or a change in how the data is filtered, such modifications typically require a new firmware version, new testing, and often even physical re-flashing of the device. This approach is unsustainable in the long run, especially if you’re deploying hundreds or thousands of devices and want to keep using a stable, tested version.

One proven method to avoid this scenario is to adopt a scriptable device architecture. In other words, keep the core logic within the firmware, but allow the customer to define specific behaviours through a script – a separate layer that doesn’t interfere with the system’s core, but can influence it.

You can think of it as an API connector layered on top of a software solution: you can work with it in ways other than the standard GUI (e.g., via scripting), but without the risk of introducing a critical bug into the system software.

Three-layer architecture: how we design devices at ACRIOS

At ACRIOS, our devices follow a structured architecture with three software layers:

  • Boot loader: Responsible for safely starting the device and updating the next layer (firmware) when needed.
  • Firmware: The core software that manages all device functions and executes actions requested by the user layer.
  • Script: The top layer that executes user-defined actions. It acts as a “program inside a program” – the firmware exposes an API, and the script calls specific functions through it.

The script is written in a lightweight yet powerful language, in our case, Lua. It gives customers control without needing access to the system layers. For instance, you can flash a different script into each device already during production, tailored to the specific customer or use case. The physical device remains identical, but the behaviour varies with zero additional work required at deployment.

Faster change, shorter cycle, easier maintenance

This scripting architecture gives users the ability to react quickly to changes in requirements, environments, or even legislation. Reading intervals need to change? Data formatting requirements evolve? A new export method is needed? All of this can be done by updating the script. Remotely or directly in the field. The firmware remains untouched, testing becomes easier, and the development cycle is much shorter.

Protecting customer know-how

Scriptability also brings an important benefit in terms of protecting your intellectual property. Imagine a situation where a customer commissions specific device behaviour that requires significant development. If that logic is baked directly into the firmware, the manufacturer may later reuse it elsewhere, repurpose it for another customer, or start offering it as a standard product feature. In the end, the know-how the original customer paid for is no longer exclusive, and their competitive advantage is gone.

With a scriptable device, however, the customer can commission a custom script and protect it with a password or access control. The functionality remains theirs – inaccessible to others unless they choose to share it. That’s one reason why many of our partners now request scripting as a standard capability.

You don’t need to code

Scripting doesn’t mean you’ll have to become a programmer. On the contrary. The ideal setup is when the manufacturer provides a custom script, and the customer can make adjustments via a user-friendly interface. That’s exactly what we’re working on at ACRIOS. To let our customers configure scripts without needing to understand every line of code.

But if you do have a technical team that prefers to write and maintain scripts themselves, we offer full support and open access. We believe that if you own the device, you should also have full control over what it does. Our scripting API is publicly available here.

FAQs

Scripting refers to an additional software layer that allows custom logic to be executed on the device, without touching the core firmware. In ACRIOS devices, this layer is written in Lua and can control behaviour like data filtering, frequency of readings, or protocol-specific handling, while keeping the firmware stable and secure.

A single stable firmware can run across many projects while user logic changes only where needed, reducing risk and update frequency.

Unlike embedded firmware logic, which is often reused across projects, scripts can be delivered per customer, password-protected, and remain isolated. This ensures the intellectual property embedded in the custom functionality stays in the customer’s hands.

Not necessarily. Scripting doesn’t mean customers must become developers. ACRIOS offers custom scripts tailored to each use case. In the future, a simplified configuration interface will allow editing basic parameters without touching the code.

While the full scripting interface is ideal for integrators or power users, the design of ACRIOS devices makes scripting usable even for those without programming experience, especially when delivered with preconfigured templates.

Yes. Devices support remote script updates over NB-IoT. This allows integrators to react quickly to changing requirements without physical access to the device.

The full scripting API documentation is available here.

Ready to script your own logic? Whether you're an integrator looking to customise behaviour across hundreds of devices, or a customer who needs a tailored solution without waiting for firmware updates – scripting gives you the flexibility, speed, and control to do just that.

Blog

Opinions and analysis

External or internal? How custom development works

External development helps organisations accelerate project delivery and reduce fixed costs. This article explores when outsourcing truly makes sense, what to consider when selecting a partner, and how to structure collaboration that delivers lasting internal peace.
Read more
How to?

Proven deployment of 10,000 wM-Bus converters for EED

Digitalisation of metering is becoming a strategic priority for utilities. Experience from a project with 10,000 wM-Bus concentrators and 850,000 meters shows that success depends less on technology itself and more on change management, coordination, and structured planning.
Read more
Technology

Choosing a remote reading system for water utilities

Digitalisation brings many ways to read water meters remotely, from bus networks to direct LoRaWAN and NB-IoT communication. Learn how to choose the right approach for your utility based on existing meters, coverage conditions, and investment strategy.
Read more
Opinions and analysis

Open data interfaces pay off for reporting and integration

An open data interface means freedom and independence when working with data. Beyond storing and visualising, it enables export, reporting, automation and smooth integration with other systems. The result is greater flexibility, lower vendor lock-in and sustainable data management.
Read more
Opinions and analysis

15-minute vs daily meter readings frequency explained

How often should you measure energy and water consumption? Fifteen-minute meter reading frequency supports detailed analysis and real-time optimisation, while daily data extend battery life and simplify reporting. Learn about the benefits, trade-offs, and use cases from practice.
Read more
Technology

Scripting in IoT: Flexibility, sustainability, and protection

Many IoT deployments fail when each new customer request requires a firmware change. Scripting solves that by separating customer logic from core functions, it enables faster updates, long-term maintenance, and secure control over unique features.
Read more
Technology

Gas meter data to dashboard: ACR-EX meets Datacake

Get your gas meter data online in minutes with the ACR-EX datalogger and its direct Datacake integration. This reliable NB-IoT solution provides live readings, alerts, and a ready-to-use dashboard. All without the need to develop or maintain your own backend infrastructure.
Read more
Compliance

EPBD is coming: what BACS means for your building

Let’s break down what the BACS mandate, part of EU’s broader initiative EPDB directive, means in practice. Who must comply, which systems and protocols to use, and how to modernise your building with minimal effort using your existing infrastructure.
Read more
Opinions and analysis

When DTLS makes sense. Know before you deploy

Let’s explore when DTLS (Datagram Transport Layer Security) brings real security value to NB-IoT deployments and when it’s smarter to choose a simpler or more energy-efficient alternative. Get clarity before committing to your next smart metering rollout.
Read more
Opinions and analysis

Not your keys, not your hardware

AES encryption protects your data. But without the keys, you don’t really own the device. This article explains why requesting encryption keys matters when purchasing IoT meters, and how it gives you full control over data, integration, and long-term independence.
Read more
Technology

868 MHz or 433 MHz? The right choice for your wM-Bus

Looking for a wireless M-Bus converter but unsure which frequency band to choose? This article compares 868 MHz and 433 MHz, explains key technical differences, and offers practical guidance based on meter compatibility, signal conditions, and installation environments.
Read more
How to?

Everything you need to know, documented. ACRIOS wiki.

One place to find answers to all your technical questions. The ACRIOS wiki simplifies technical communication by bringing together everything needed for configuration, installation, and integration. Online, accessible, and continuously updated.
Read more
Technology

End-to-end custom hardware and software development

Ready-made products can work. Until they don’t. When specific requirements emerge, a custom development approach offers the flexibility to design both hardware and software precisely for the task. Whether it’s a new solution or an upgrade to existing systems.
Read more
How to?

How to collect energy data to support ISO 50001

Energy efficiency is no longer just a buzzword. With rising energy costs and increasing regulatory pressure, frameworks like ISO 50001 are becoming essential. But to optimise energy use, organisations first need one thing: structured, reliable consumption data.
Read more
How to?

Lowering IoT TCO through smart manufacturing

The price tag is just the beginning. Real savings come from what happens after deployment – device setup, integration, maintenance and optimisation. Manufacturers can make all of this easier and cheaper, without compromising on performance.
Read more
How to?

Reading Sensus meters with zero hardware changes

Unifying meter readings across different protocols doesn’t have to mean replacing hardware or relying on a single vendor. Our solution connects even legacy Sensus meters (now part of the Xylem group) into a unified system – without the need to replace your existing devices.
Read more
Opinions and analysis

Why 15-minute data matters in district heating

15-minute interval readings help clarify heat pricing, detect anomalies and reduce billing complaints. They also support transparent cost allocation, a must as dynamic tariffs and EU rules raise the bar. With our converters, you can enable them without replacing your meters.
Read more
How to?

Give me a tool that works. Not a manual.

In the field, there’s no time for unnecessary clicks or second guesses. When every minute costs money, configuration needs to be fast, reliable, and dead simple. Let's have a look at what really works – and why complexity doesn’t belong at the installation site.
Read more
Compliance

5 most common myths about remote meter reading

From 2027, remote meter reading will be mandatory under the European Efficiency Directive. Yet despite growing availability of the technology, many myths and half-truths still surround its implementation. Let's break down five of the most common misconceptions.
Read more
Opinions and analysis

Battery-powered vs wired: What really costs more?

An externally powered data bus may look cheaper on paper. But once you factor in cabling, electrician work, inspections, and long-term upkeep, the story changes. Let's compare and reveal why battery-powered solutions often save more than just money – time, effort, and peace of mind.
Read more
Compliance

Cyber Resilience Act and IoT hardware

The European Union's Cyber Resilience Act significantly reshapes hardware requirements for IoT devices – promoting secure design, manufacturer transparency, and interoperability that is essential for resilience against cybersecurity threats. Learn more about CRA.
Read more
How to?

Next-gen meter readings, no replacements needed

Discover how to modernise your metering system without the high cost of replacing existing meters. With a smart converter, you can enable seamless remote readings using your current infrastructure. Quick to deploy, easy to manage, and fully compliant with EED requirements.
Read more
How to?

Modernising metering infrastructure

Connecting different types of meters into one efficient system can be a major challenge, when dealing with various manufacturers, generations and technologies. Discover how converters offer a smart, cost-effective way to unify even the most diverse metering infrastructures.
Read more
How to?

M-Bus to IoT integration explained

Connecting M-Bus meters to IoT networks like LoRaWAN or NB-IoT is now a critical step in modern utility infrastructure. Discover four practical methods that enable reliable, scalable, and future-ready integration – without complex custom development or delays.
Read more
Opinions and analysis

Understanding TCO: More than just hardware

When investing in new technology, looking beyond the initial hardware cost is more important than crucial. Discover how understanding and managing the total cost of ownership (TCO) can lead to smarter, more sustainable, and financially efficient technology investments.
Read more
Technology

NB-IoT technology: All you need to know

NB-IoT is a low-power, cost-effective IoT technology that ensures reliable connectivity with excellent coverage and security. Ideal for smart cities, industry, energy, and agriculture, it enables efficient communication for a wide range of devices. Let's discover its key features and benefits.
Read more
Technology

LoRaWAN: All you need to know

LoRaWAN is transforming the IoT with its long-range, low-power wireless communication. Ideal for smart cities, agriculture, and industrial automation, it enables efficient, cost-effective, and secure data transmission. Discover how LoRaWAN works and its key benefits.
Read more
Technology

M-Bus, wM-Bus, and RS-485: A technology guide

As cities and industries embrace digital transformation, reliable data collection and communication are essential. M-Bus, Wireless M-Bus (wM-Bus), and RS-485 technologies play a crucial role in smart metering, industrial automation, and infrastructure monitoring.
Read more
Technology

LoRaWAN vs. NB-IoT: Which technology is right for you?

As industries embrace digital transformation, many are upgrading legacy equipment to keep pace with evolving technology. The integration of smart metering and remote monitoring is turning traditional devices into key players in the rapidly expanding IoT ecosystem.
Read more
Technology

Smart metering: What it is and why it matters

Smart metering transforms energy monitoring by real-time insights into electricity, gas, and water use. By upgrading traditional meters with converters, it enables accurate billing, early issue detection, and improved grid efficiency for both consumers and providers.
Read more
Technology

IoT: Technology that saves time and money

If you have been hearing about IoT lately, you are not alone. IoT, short for the Internet of Things, is transforming the way we live and work – saving time, effort, and sometimes hundreds of euros each year and that is why we are leveraging it here at ACRIOS Systems.
Read more
Company news

ACRIOS Systems unveils its brand-new website.

We are excited to introduce new website. With a fresh design and enhanced features, we have created a more intuitive and enjoyable experience. Seamless navigation, improved functionality, and a modern look that makes finding what you need easier. Welcome to our new digital home.
Read more