Controlling NetPing Devices Using a Mobile Phone

  • Published In: Tutorial
  • Created Date: 2017-05-02
  • Hits: 170

SNMP (Simple Network Management Protocol) – is a standard Internet protocol for controlling devices in IP networks on the basis of TCP/UDP. architectures. Devices of remote control and monitoring NetPing sensors support the operation via SNMP protocol as well. One of convenient ways of monitoring is monitoring using a mobile phone.

In this article, an example of using "Monitor Master Free" software (free version) for remote controlling a NetPing device, namely controlling external devices (for example, a signal alarm or a light beacon) that are connected to IO lines in the "output" mode is described using UniPing server solution v4/SMS device, as well as controlling sockets of a NetPing 8/PWR-220 v4/SMS device as an example. 

Requirements

To implement a remote control of a device using a mobile phone in a real-time mode, there is a need to have:

  • NetPing devices (UniPing server solution v4/SMS and NetPing 8/PWR-220 v4/SMS are used in the example) that are published in the Internet;
  • the application "Monitor Master Free"/"Monitor Master" to monitor devices and systems that support an SNMP protocol;
  • a mobile phone with an operation system Android 4.0+/IOS 8.0+ and the Internet access.

Configuring UniPing server solution v4/SMS

For example, we have buzzer, which is connected to an IO line of a device. A connection scheme is represented on the picture below.

Connection scheme of the buzzer

Connection terminals of IO lines of a UniPing server solution v4/SMS device.

IO lines of UniPing server solution v3

To connect a buzzer to an IO line 1, there is a need to plug a white wire to the terminal "+12V", and a colored wire to the terminal "IO1".

For a NetPing device to operate in a local network, there is a need to go to the menu "Parameters" in "Network Settings" and configure necessary parameters. More detailed guideline can be found in technical documentation, the section "Basic configuration". After configuring the operation in a local network, there is a need to make a device available in the Internet network.

Installing Monitor Master Free

The application "Monitor Master Free" can work in two operational systems: Android 4.0+ and IOS 8.0+.

To install the application on the Android OS, there is a need to go to the next links:

To install the application on the IOS, there is a need to go to the next links:

Free version of the application "Monitor Master Free" is different from the paid version "Monitor Master" with a feature of supporting only one widget on the desktop of a mobile phone.

Configuring Monitor Master Free to Control External Devices on the Example of a Buzzer Connected to UniPing server solution v4/SMS

 Let us configure our application so that we can turn on and off a buzzer device from a mobile phone.

Before opening the application, there is a need to go to the parameters of your phone, select menu "Widgets" and move the widget "Monitor Master" to the desktop. Then, we open the application and see an empty not configured widget on the screen:

Not configured widget of the application

To configure a widget, there is a need to click a rectangular area of the widget. Then, choose a suitable background with left/right arrows and set cells when necessary using the up/down arrows.

Choosing a background of a widget

First, there is a need to indicate an IP address or a DNS name of a UniPing server solution v4/SMS device that is published in the Internet network, an SNMP port for a device, and a necessary version of an SNMP protocol and an SNMP community.

 IP address or a DNS name of a device

where:

tst.alentis.ru - is a published DNS name of a UniPing server solution v4/SMS device in the Internet that is indicated in the main settings of the widget;
Port - is an SNMP port of a device
ping
45 - is an SNMP community of a UniPing server solution v4/SMS device.

Make the bottom left cell turn on and off a buzzer. Click it for a configuration. To control a device, there is a need to choose “SNMP SET”. Scrolling left/right, it is possible to choose a convenient picture. 

Choosing SNMP SET, OID and a description

where:

OID – is an SNMP identifier "npIoLevelOut.1" (1.3.6.1.4.1.25728.8900.1.1.3.1) that is used to control an IO line in the "output" mode. Descriptions of all SNMP OID identifiers are located in a MIB file for a corresponding NetPing device, which can be downloaded from the page of a device description, the section "Documentation and Files";
Description – is a textual description of a cell;
Value "0" - switches a logic level of an IO line to the value "logic 0", a buzzer is turned off;
Value "1" - switches a logic level of an IO line to the value "logic 1", a buzzer is turned on.

Then, there is a need to launch the application. To do this, there is a need to click the menu symbol in the upper right corner of the application.

Launching the application

As a result, we have a configured application with the widget on the main desktop. Clicking the left bottom square, we can turn on and off a buzzer that is connected to the IO line of UniPing server solution v4/SMS

Widget of a configured application

Configuring Monitor Master Free to Control Sockets of a NetPing 8/PWR-220 v4/SMS Device

The application is configured for controlling the sockets of a NetPing 8/PWR-220 v4/SMS device the same as described in the guidelines for UniPing server solution v4/SMS

Let us configure our application for turning on/off the socket №1. In the field OID, there is a need to indicate 1.3.6.1.4.1.25728.5500.5.1.2.n, where "n" - is a socket number.

Choosing OID, Description, SNMP GET

where:
0 – a relay is switched off;
1 – a relay is switched on

Descriptions of all SNMP OID identifiers are located in a MIB file for a corresponding NetPing device, which can be downloaded from the page of a device description, the section "Documentation and Files";

As a result, we have a configured application with a widget on the main desktop. Clicking the left upper square of the widget, we can turn on and off the socket №1 of a NetPing 8/PWR-220 v4/SMS device.

Below on the screenshots, there is an example of using the command and the reaction of a NetPing 8/PWR-220 v4/SMS device in a web interface. 

A widget can have two values:

Turning on the socket using a widget

The result of turning on the socket 1

Turning off the socket using the widget

The result of turning off the socket 1


comments powered by Disqus