Overview #
The NORVI EC-M12-BC-C6-C-B is a rugged, IP67-rated IoT telemetry unit designed for reliable outdoor and remote monitoring applications. Powered by high-capacity non-rechargeable lithium batteries and built on the ultra-low-power STM32L072CZT6TR MCU, it delivers years of autonomous operation even in harsh environments, making it well suited for agriculture, environmental monitoring, utilities, and industrial asset management.
The device supports multi-network cellular connectivity through the SIM7070G modem, covering 2G, Cat-M, and NB-IoT for wide-area, low-power data transmission. It integrates directly with two industrial RS485 communication interfaces., and features a fully sealed enclosure with contactless magnetic controls – including a Magnetic Reset and Magnetic Transport Switch – that preserve IP67 protection while enabling safe field handling and storage.
This guide walks through everything needed to confidently install, configure, and deploy the EC-M12-BC-C6-C-B – covering safety requirements, hardware specifications, GPIO and wiring references, Arduino IDE setup, diagnostic test code, supported communication protocols, and troubleshooting.
Key Features #
Rugged Design IP67 weatherproof enclosure with industrial-grade connectors
Cellular Connectivity Multi-band modem (2G / Cat-M / NB-IoT) via SIM7070G
The device is powered by two ER34615H lithium batteries (38,000 mAh total), and the USB-C connector is used only for uploading code and debugging, though it can also power the device if wanted.
Magnetic Reset: Contactless device reset using a magnet, with no need to open the enclosure.
The magnetic transport switch is a contactless switch that saves battery power while the device is being transported, and it is not an on/off switch, as the device keeps running continuously after its first power-up via the switch.
MicroSD card slot for storage expansion
RS485 Interfaces: Supports two industrial RS485 communication interfaces for reliable industrial communication.
Industrial M8 8-pin connector for sealed field wiring
Safety Information #
Warning: Before inserting the battery, verify that the polarity is correctly aligned to avoid damage to the device.
Ensure the slide switch is set to the correct position (5V / 12V) to match the voltage required by the connected sensor.
Confirm the jumper is correctly placed before powering the device via USB or Battery.
Verify that the sensor wiring is properly connected before applying power to the unit.
Technical Specifications #
Peripherals #
Microcontroller #
MicroSD Card (SPI) #
| Interface | SPI |
|---|---|
| CS | PB0 |
| MISO | PA6 |
| MOSI | PA7 |
| SCLK | PA5 |
| SD Detect | Not Implemented |
Cellular Modem (SIMCOM 7070G) #
| Model of GSM Modem | SIMCOM SIM7070G |
|---|---|
| Technology | 4G LPWA (LTE Cat-M1 and Cat-NB1/NB2) with 2G GPRS/EDGE fallback |
| Cat-M1 bands | B1, B2, B3, B4, B5, B8, B12, B13, B14, B18, B19, B20, B25, B26, B27, B28, B66, B85 |
| Cat-NB (NB1/NB2) bands | B1, B2, B3, B4, B5, B8, B12, B13, B18, B19, B20, B25, B26, B28, B66, B71, B85 |
| RXD | PA3 |
| TXD | PA2 |
| POWER | PA1 |
RS-485 Communication #
M8 8-Pin Connector #
The device uses an M8, 8-pin connector for field wiring. The pin functions are listed below.
Hardware Layout & GPIO Map #
The table below lists the STM32L072 GPIO assignments as used on the EC-M12-BC-C6-C-C board. Use this reference when writing or adapting firmware.
Power Source Selection #

The device has a built-in battery, which is designed for low power operation. During programming and testing of the device, the power source can be changed to USB to save the battery power for its actual operation.
The power source can be changed to USB by setting the onboard jumper to the USB side.

Wiring Guide #
Wiring Connections #
Mounting and Connecting the Module #
Mount the enclosure using the provided wall-mounting points.
Connect the M8 8-pin connector to the device’s mating field cable. Tighten the connector fully to maintain the IP67 protection rating. Verify the wiring against the terminal arrangement shown in the above diagram.

Check the sensor supply selection: Set the selectable sensor-voltage switch according to the sensor being used. Select the appropriate 5 V or 12 V supply before connecting the sensor.
Verify the SIM card and SD card: Confirm that the SIM card and SD card are properly installed in the device before operation.
Programming the Device #

NORVI EC-M12-BC-C6-C-B is powered by a STM32L Series microcontroller, STM32L072CZT6TR. This microcontroller is designed for low power applications and can be programmed with Arduino IDE or any other IDE which supports STM32 micro-controllers.
The board includes SWD programming Pins for connection with an ST-Link and USB Port for Serial Debugging.
Configuring Arduino IDE for STM32L
The boards package : STM32 MCU Based boards should be installed from the Arduino Boards Manager.

Then setup the board setting from tools as the below Figure. In there; to get the serial monitor output needed to enable generic serial and CDC (generic ‘serial’ superseded U(S)ART.
Board : Generic STM32L0 Series
Board Part number : Generic L072CZTx
U(S)ART support : Enabled generic Serial
Compiling and Uploading Code for STM32L with Arduino IDE
The compiled binary can be exported from Arduino IDE from Sketch –> Export Compiled Binary Option.
Once the process is complete the binary file can be fetched from the program’s saved location.

The exported binary file can be uploaded through a ST-Link Programmer.
The connections GROUND, SWCLK, SWDIO, RESET should be connected with the ST-Link Programmer .
Open STM32 ST-LINK Utility, go to Target > Connect, then open the BIN file and update the board using Target > Program & Verify
Test Code Examples #
This test code lets you test all the peripherals and the device’s shutdown mode. It is intended only for initial testing and evaluation and does not represent the final firmware.
RS485 Programming #
Initialize RS485 communication
#define RS485_RX PB7
#define RS485_TX PB6
#define FC PB4 // For version 01 FC pin should be PB5
HardwareSerial Serial1(RS485_RX, RS485_TX);
pinMode(FC, OUTPUT);
digitalWrite(FC, HIGH);
Serial1.begin(9600);
Transmit and receive data
// RS485 TRANSMIT
digitalWrite(FC, HIGH); // TX mode
delay(100);
Serial1.println("RS485 01 SUCCESS");
delay(100);
// RS485 RECEIVE
digitalWrite(FC, LOW); // RX mode
while (Serial1.available()) {
char c = Serial1.read();
Serial.write(c);
}
Sensor Supply Voltage Output #

The device has a selector switch for choosing a 12 V or 5 V sensor supply, and a 3.3 V supply is also available. Set the switch to 12 V or 5 V if the sensor requires it, or use the 3.3 V supply for 3.3 V sensors. The selected 12 V / 5 V supply and the 3.3 V supply can be used together, so sensors with different voltage requirements can be powered at the same time through the M8 8-pin connector.
Enabling Power Output from firmware #
The output enable pin is connected to the GPIO PA4 on STM32.
pinMode(BOOST_EN, OUTPUT);
digitalWrite(BOOST_EN, HIGH);
delay(100);
MicroSD Card Support #
The microSD card is connected to the SPI bus of the STM32, with a GPIO to control its power. This cuts power to the microSD card when the device is in sleep mode. Booster enable, SD card enable, and 3.3V output enable are all controlled by a single GPIO, PA4. The example code below shows how to enable power to the microSD card and read the data.
void SD_CHECK();
delay(1000);
timer1 = millis();
Serial2.println("AT");
while (millis() < timer1 + 2000) {
while (Serial2.available()) {
Serial.write(Serial2.read());
}
}
timer1 = millis();
Serial2.println("AT+CPIN?");
while (millis() < timer1 + 1500) {
while (Serial2.available()) {
Serial.write(Serial2.read());
}
}
Low Power Mode #
The device uses low-power mode to conserve battery energy. In the test code, the device can be put into low-power mode by sending the LP command through the serial monitor. In this mode, power consumption drops to just a few microamps, which makes the device suitable for long-term battery-powered operation.
Power Control Pins
Active Cycle (after wake-up)
Entering Low Power Mode
Type LP in the serial monitor. Any other command typed in the serial monitor is forwarded to the GSM modem as an AT command.
Before sleep, the peripherals are powered down in this order:
Entering Shutdown Mode
LowPower.shutdown(16000);
The STM32 enters deep shutdown for 16000 ms (16 s). In this mode:
Most peripherals and clocks are off.
Power consumption drops to a few microamps.
The RTC keeps running and wakes the MCU when the timer expires.
Wake-Up and Resume
After the period ends, the MCU performs a cold start and runs setup() again. All peripherals are re-initialized, the modem is powered on again, and the cycle repeats. The “LOW POWER MODE OFF” message in the code is never printed, because the MCU restarts instead of resuming after the shutdown call.
Notes #
To change the sleep duration, edit the value in LowPower.shutdown(<milliseconds>);.
RAM contents are lost in shutdown mode. Store any data that must survive on the microSD card.
Avoid serial communication immediately before shutdown, to prevent incomplete transmissions.
Make sure the modem is powered off (GSM_POWER HIGH) before entering shutdown, otherwise sleep current will be higher.
Make sure BOOST_EN is LOW before shutdown so the microSD card and RS485 circuit are not left powered.
Powering On the Modem
The modem is controlled through the power key on PA1:
digitalWrite(GSM_POWER, HIGH); // Power key pulse
delay(200);
digitalWrite(GSM_POWER, LOW); // Release power key
delay(2000); // Wait for the modem to start
To power the modem off before sleep, set GSM_POWER HIGH.
Basic AT Command Communication
The modem is connected to the microcontroller through Serial2 (PA2 TX, PA3 RX). After powering on the modem, open the serial interface at 9600 bps and send an AT command:
Serial2.begin(9600);
Serial2.println("AT");
The modem replies with OK when communication is successful.
Indicator LED
The indicator LED is connected to the NET light output of the modem and shows the network status:
Blinking every 1 second: Modem is searching for a network.
Blinking every 3 seconds: Modem is registered on the network successfully.
Blinking rapidly: Modem is establishing a data connection.
Off: Modem is powered off or in low-power mode.
The Indicator provides a quick visual reference to confirm modem activity and network connection status.
Support & Resources #
Product documentation & datasheets: https://norvi.io/docs/norvi-ec-m12-bc-c6-c-b-datasheet/
Product page: https://norvi.io/
Technical support: support@norvi.io
| Rev. | Date | Change Description | Board Revision |
|---|---|---|---|
| 2.0 | 10/11/2026 | Updated modem power distribution, added a user-configurable LED, magnetic reset and transport switches, introduced UART communication, and revised the RS485 FC pin mapping from PB5 to PB4. | V3 |