FM modules ⇒ FM-400 ⇒ Firmware for 4 dry contacts
Firmware for 4 dry contacts
Firmware purpose
Collecting dry-contact states (switches, relays, limit switches, contactor and motor starter signal circuits, etc.) and sending information to the server or a module controlling an actuator.
The firmware is intended for building automation projects in centralized and decentralized bus77 iRidi © networks.
Can be used for
- turning on lighting
- initial activation of control systems
- opening and closing (vehicle gates, pedestrian gates, curtains, blinds, etc.)
- monitoring mechanism actuation
Firmware description
The system is fault-tolerant: if communication with the server/gateway is lost, the controller continues to operate as part of a decentralized network.
The firmware monitors input voltages and sends bus events indicating when dry contacts connected to the inputs close and open.
The firmware generates additional double-press and long-press events.
- A double press is generated if a second press occurs within 700 ms of the first press.
- A long press is generated if the button is pressed for more than 1000 ms.
Connecting power and the control bus

The physical network topology is a bus (devices connected in a line). Connect the two power wires and two data wires as shown in the diagram.
Tree and star topologies and line branches are not recommended to ensure stable operation.
For details, see CAN - bus77 technical specifications
A 4-wire cable is used to connect devices in a line: 2 wires for the CAN bus and 2 for power. Twisted-pair cable must be used to ensure bus noise immunity.
Contact wiring diagram

Use the AIN and GRD contact pairs to connect switches or digital sensors.
Control channel description
| № | Name | Type | Min | Max | Step | Note |
|---|---|---|---|---|---|---|
| System | ||||||
| 1 | Name - Name | string | 0 | 32 | 1 | The name under which the device is displayed in the interface |
| 2 | PIN - PIN code | u32 | 0 | 0xFFFFFFFE | 1 | PIN code to protect control and feedback channels against unauthorized writes and reads |
| 3 | Reboot - Restart | bool | 0 | 1 | 1 | Restart the module |
| 4 | Onboard LED - Onboard LED | bool | 0 | 1 | 1 | Turn the onboard LED on/off |
| 5 | Reset device - Device reset | 0 | 1 | 1 | 1 | Reset to factory settings |
| Dry contact | ||||||
| 6 | Button (N) long press time - Button (N) long-hold duration | u16 | 0 | 65535 | 1 | milliseconds - the time the button must be held for a long-hold event to occur. Default: 1000 ms |
| 7 | Button (N) double press time - Button (N) second press waiting time | u16 | 0 | 65535 | 1 | milliseconds - the waiting time for a second press for a double-press event to occur. Default: 700 ms |
Feedback channel description
| № | Name | Type | Min | Max | Step | Note |
|---|---|---|---|---|---|---|
| System | ||||||
| 1 | Error code - Error code | u8 | 0 | 255 | 1 | Returns the error code |
| 2 | Device volage - Device voltage | f32 | 0 | 30 | 1 | Returns the module's current supply voltage |
| 3 | Device themperature - Device temperature | f32 | 0 | 150 | 1 | Returns the module's current temperature |
| Dry contact | ||||||
| 4 | Button (N) was press - Button (N) was pressed | none | ||||
| 5 | Button (N) was unpress - Button (N) was released | none | ||||
| 6 | Button (N) was double press - Double press (N) occurred | none | Triggers if the interval between two presses is shorter than the time set in the second press waiting time control channel (700 ms by default) | |||
| 7 | Button (N) was long press - Long press (N) occurred | none | Triggers if the button is held longer than the time defined by the button long-hold duration control channel (1000 ms by default) |
Module and firmware navigation
| Parameter | Value | Description |
|---|---|---|
| DM modules | DM-706 | Universal |
| Dedicated to heating device control (under development) | ||
| Dedicated to curtain and blind control (under development) | ||
| DM-006 | Universal | |
| DM-604P-1W | Lighting and climate | |
| DM-606P | ||
| DM-D3P | ||
| DM-060 | ||
| FM modules | FM-400 | "4 dry contacts" firmware |
| FM-400-1W | Firmware 1 "Dry contact + temperature sensor + motion sensor" no link | |
| Firmware 2 "4 dry contacts" no link | ||
| Firmware 3 "Dry contact and temperature sensors" no link | ||
| FM-401P-1W | Thermostat no link (1 temperature sensor, 1 button, 1 valve actuator) | |
| FM-402-1W | Leak protection no link (up to 3 digital sensors and 1 analog sensor, 1 valve) | |
| Thermostat no link (1 temperature sensor, 1 button, 1 valve actuator) | ||
| Bus thermostat no link (temperature from the bus, 1 button, 1 valve actuator) | ||
| FS modules | FS-TM-1W | |
| FS-TH-IL-M-S | ||
| FS-TH-IL-M-S-VOC | ||
| FS-TH-IL-M-S-CO2 | ||
| FS-TH-IL-M-S-VOC-CO2 | ||
| Special modules | IS-CAN | Integration server |
| HUB-2CAN-Vpro no link | Interface module | |
| Bus77-USB | Bus77-USB converter |