Git Product home page Git Product logo

android-snmp's Introduction

Android-SNMP

This is a sample implementation of the Simple Network Management Protocol (SNMP) on Android devices. We designed a Management Information Base (MIB) and implemented a desktop manager that queries devices on the network and an Android client that responds to queries.

The MIB

MIB tree

How to use

  • Run the client application (Agent.apk, or from code) on an Android device connected to the same Wi-Fi as the computer that will run the manager application. The application will start listening to requests on the port 32150.
  • With the Agent running on the Android device, run the Manager (Android_SNMP_Manager.jar, or from code). It will try to detect the IP address of the local network and populate the range of IPs to be discovered (1). If it cannot detect the local network address range, it will use the range 192.168.0.1 to 192.168.0.254.
  • Click the button "Discover". The application will send a query message to every IP in the range entered. For every response received, a device will be added to the list (2). You can add a new device by entering its IP address, edit the IP address of a device or remove a device from the list by using the buttons below it (3).
  • When a device is selected on the list, the manager will query every MIB element and populate the device panel (4).
  • The device panel shows the status of the device:
    • GPS status: ON, OFF
    • Wi-Fi status: ON, OFF
    • Bluetooth status: ON, OFF
    • Battery status: Charging, Discharging
    • Battery level: Percentage full
    • Device's manufacturer and model
    • Android version running
    • Up time
    • List of processes running: Process id, process name, running time, memory usage
  • Clicking on any item on the panel will send a new request to the device and refresh its value.
  • It is also possible to send a message to the device (5), that will appear on the the client application.

Manager Application

  • The client shows the messages received by managers on the top half of the screen, and logs the MIB queries on the bottom half.

Client Application

android-snmp's People

Contributors

brnunes avatar pvsilvestrin avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.