Skip to main content
Skip table of contents

Control Barionet M44 Relays from InformaCast Fusion.

This document is a “How To” describing how to control Barionet M44 Relays using the InformaCast Fusion broadcast notifications platform.

Preparation

To perform the steps described in this “How To” document, you need:

  • Barix Barionet M44 running at least Flexa firmware V2.3.0 or newer (check here)

  • InformaCast Fusion server

  • POE network switch

For the purpose of this document, InformaCast Fusion version v15.0.1 was used.

The Barionet M44 is a POE device, thus can be power supplied by the POE network switch.

Please read the Barionet M44 Quick Install Guide for more information about installing and accessing the web interface.

The communication protocol used between the M44 device and the InformaCast Fusion is SNMP. Barionet M44 can receive “SNMP SET” commands from InformaCast Fusion to trigger Relays. This allows InformaCast Fusion to interact with contact closures, triggering contact closure output ports connected to the M44 when a notification is sent. InformaCast Fusion “sees” Barionet’s M44 Relays as “M2M Output Ports”.

Barionet M44 Configuration

  1. Connect the Barionet M44 to the POE Switch using a regular ethernet cable. By default, the device is configured to run as a DHCP client. It will acquire an IP address at boot. Check the DHCP Lease table of your DHCP server to retrieve the assigned IP address according to the given MAC Address. Note the IP address. You can also use the “Barix Discovery Tool” available here https://help.barix.com/tools/discovery-tool to find the Barionet M44 IP address.

  2. Access the web configuration of your Barionet M44 typing the IP address in the URL field of your browser. Enter the username and password (you should find the password printed on the button of the device, user = admin). Please refer to the Barionet M44 Quick Install Guide if necessary.

  3. Locate the SNMP tab and enable SNMP clicking the “Enabled” switch.

    SNMP enable 1.png

    Fig.1 - M44 SNMP configuration.

  4. You must fill at least the “Read-Only” and “Read-Write” Community fields for the SNMP daemon to run. To control relays the “read/write” community string is the important one to consider. Other fields are also present but not mandatory.

    1. SNMP port: Sets the UDP port on which the device is responding to SNMP requests. Default: “161”.

    2. Contact: The contact of the person responsible for managing this device via SNMP. Default: “root@this.ip.com”.

    3. Name: Defines the SNMP system name of this device. Default: “Barix FLEXA device”.

    4. Location: Defines the SNMP system location of this device. Default: “Please update me!”.

    5. Read-Only Community: Default: “public”.

    6. Read-Write Community: Default: “private”. You need to set the same password on both Barionet AND InformaCast to be able to set the relays from InformaCast.

  5. Click on “Submit” to apply the new settings.

InformaCast Fusion Configuration

Create a Contact Closure

InformaCast Fusion “sees” Barionet’s M44 Relays as “M2M Output Ports”. This allows InformaCast to trigger M44 contact closure output ports when an InformaCast notification is sent. To configure “M2M Output Ports” in InformaCast Fusion, follow these steps:

  1. Login to InformaCast Fusion server using your credentials.

  2. Move to Recipients ➡️ M2M ➡️ Contact Closures
    This window lists the available contact closures in InformaCast. These are the physical devices that will interact with the M2M Output Ports.

    create closure 1edit.png

    Fig.2 - List of Contact Closures

  3. Click on “+Create Contact Closure”.
    Here, you provide some information about the Barionet M44 which will act as a new “Contact Closure” to be triggered by InformaCast broadcasts notifications.

    create closure 2edit.png

    Fig.3 - Create Contact Closure

  4. Provide some information about your new contact closure.

    1. Name: give a name to your new contact closure.

    2. Description: give a description for the contact closure.

    3. IP Address: this is the IP Address of your Barionet M44 (see the “Barionet M44 Configuration” chapter).

    4. SNMP Community Name: the name of the SNMP “Read/Write” Community set on the Barionet M44.

The SNMP “Community Name” MUST match the name provided in the “Read-Write Community” field of the Barionet M44 Configuration.

  1. Click on “🗸Save”.
    The Input and Output ports configuration becomes available.

    Closure Input Output 1.png

    Fig.4 - Input and Output

Input Ports are used as “Activators” or “Triggers”, thus devices that can initiate notifications. I.e. close a digital input on the BM44 and configure it to send a notification to a group of devices / users.
Output Ports are used as “Recipients” or “Endpoints”, thus devices that can be part of a larger group and can receive a notification. I.e. when a notification is initiated by a digital input, Informacast controls BM44 relays to lock doors or light up sirens.

Create an Output Port

  1. Click on “+Create Output Port
    When creating an “Output Port”, you can specify which port you want to trigger when sending a Message Template. You must provide the right OID (the “Object Identifier” which serves as an address to locate and identify specific objects within a network management system) and state change value.
    You can find the OIDs for the 4 Outputs (the 4 Relays) of the Barionet M44 at this link

create Output port.png

Fig.5 - Create Output Port

  1. Give details about your new Output Port

    1. Name: Give a name for the Output Port

    2. Monitoring Status: default= ACTIVE

    3. Time Schedule: default = Always ON

    4. Port Identifier (OID): enter the port identifier OID you want to use.
      For example, OID: 1.3.6.1.4.1.17491.1.1.2.1.2.1 will trigger Barionet M44 Relay 1.

    5. Field Type: select “INTEGER” for the OID field type of the M44.

    6. Port Switch On/Off (OID Value):

      1. OID value for ON = 1

      2. OID value for OFF = 0

You have to create an “Output Port” for switching the relay state to ON (OID value=1) and another for switching the relay state to OFF (OID value=0).

  1. Click 🗸Save.
    Repeat steps 1-3 to add another Output Port to specify a different Relay state or to configure another Relay.

Create a Device Group

The new Output Port(s) created will be the new Barionet M44 endpoint(s). In order to send notifications we need to assign it to a “Device Group” and include the Group in a “Message Template” in InformaCast Fusion. To create a new “Device Group” follow this steps:

  1. Locate Recipients ➡️ Device Groups ➡️ +Create Device Group

    create device group.png

    Fig.6 - Create Device Group

    1. Give a name do the new Device Group (“Name” field is required).

    2. Select existing “Device Groups” to include in the new group, or select “Individual Devices” (the Output Ports you create in step 6.) from the dropdown list.

    3. Save the Device Group clicking 🗸Save

Refer to InformaCast Fusion Help about “Device Groups” here: https://documentation.singlewire.com/fusion/en/about-device-groups.html for more information.

Create a Message Template

Create a “Message Template” to be sent as notification to the “Device Group” created above or edit an existing template to include the new M2M Output Port(s) of the BM44. The new message template contains the content, recipients, and layout of your notifications. In this example, we’ll activate/deactivate the M44 Relays (according to the Output Port created above).

  1. Go to Notifications ➡️ Message Templates ➡️ +Create Message Template

create message.png

Fig.7 - Create Message Template

  1. Give a name to your “Message Template”.

  2. In the “Recipients” field, select “Device Groups”.

  3. Select the “Device Groups” you created as endpoints from the dropdown list.

  4. Click on “🗸Save Template” to save your Message Template.

Send a Message Template notification

Once done, send the “Message Template” to the Barionet M44.

  1. Go to Notifications ➡️ Message Templates.

  2. Click the ➡️ (send notification) icon of the “Message Template” you created previously.

  3. Click the “🗸SEND” button.
    The relays will activate or deactivate accordingly.

Refer to InformaCast Fusion Help about “Message Templates” here: https://documentation.singlewire.com/fusion/en/about-message-templates.html for more information.

Troubleshooting Tips

If the Barionet is not sending or receiving SNMP packets, check the following:

Verify M2M Field Type

In case the Output Ports are not activating Relays, check that the “Field Type” of the Output Port is set to “INTEGER” on the InformaCast Fusion M2M configuration as described in the previous chapter.

Verify Barionet’s Network Configuration

Go to StatusNetwork
Check that the network configuration on Barionet M44 is applied correctly, especially when using a static IP configuration. If ”IP Address”, “Netmask” and “Default Gateway” properties are not configured correctly, the Barionet M44 will not be able to reach the InformaCast Fusion server.
If you are not sure how to configure these fields, check with your network administrator.

Verify Network Communication with a Network Packet Capture tool

Use a “packet capture” software to check whether there is SNMP traffic between the InformaCast Fusion server and the Barionet.
See below an example using Wireshark. Note that the filter used, “IP.src, is the InformaCast Fusion server IP address.

NOTE: you may need to enable port mirroring on your switch to be able to see packets exchanged between the 2 hosts.

wireshark.png

Fig.8 - Wireshark view

Verify Relay operations with SNMP SET commands

Simulate on the Barionet M44 localhost the same commands sent by InformaCast using an SNMP tool.
Below, you can see an example using the MIB Browser tool.

MIB Browser.png

Fig.9 - MIB Browser view

Using MIB Browser, if you want to close Barionet M44 Relay #1 do as follows:

  1. Start MIB Browser.

  2. Address: enter the IP Address of your Barionet M44.

  3. Click on “Advanced” and setup the port, community string according to the configuration applied to your Barionet M44

  4. OID: enter the OID you want to use (you can also do this in the step 5).

  5. Operations: select “Set” from the dropdown list and click on “Go”.

  6. In the “SNMP SET” window, apply these settings:

    1. OID:1.3.6.1.4.1.17491.1.1.2.1.2.1

    2. Data Type: Integer

    3. Value: 1

  7. Click “OK”.

  8. The command should return a “Set Succeeded” message. You should hear a ‘click’ from the Barionet M44 and see its REL1 LED light on.

You can then try to open Relay1 using the same “OID” and state “Value” = 0.
Use the same procedure for the following Relays using the corresponding OIDs.

Verify Barionet M44 System Logs

Check the system logs to see if any error is reported. Logs can be found in the LOGS tab on the Barionet M44 web configuration. Click on “Download All Messages” to fetch the archive to analyse the logs.

Update the Barionet M44 to the latest firmware

Update the firmware of your M44 device to the latest version available.
Read the Barionet M44 “Quick Install Guide” for a detailed description of the update procedure.
Be patient when updating the firmware. When the firmware is installed, the device will reboot on its own.

Reset the Barionet M44 to factory defaults

In some cases, it may be necessary to perform a reset to defaults of the Barionet M44 to restore working conditions.
Read the Barionet M44 “Quick Install Guide” for a detailed description of the update procedure.

For technical assistance, send your queries at: support@barix.com or get in contact with your local distributor here: https://www.barix.com/buy/

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.