Giter VIP home page Giter VIP logo

gateway_test's Introduction

RapidSMS HTTP Gateway Tester

When using RapidSMS with an HTTP gateway, messages usually flow like this:

Handset<--->Gateway<-->RapidSMS

HTTP Gateway Tester is a tool for measuring the time SMS take to travel in each direction, and for counting messages dropped along the way. It uses Scripting Layer for Android (SL4A), and requires an Android phone, a RapidSMS instance, and 2-way HTTP gateway service. Logs are written to a CSV file on the phone's SD card.

Installation

Usage

  • If you're using a prepaid SIM, make sure you've loaded enough airtime for the amount of testing you want to do
  • Plug in your phone and set it to not sleep while charging (see 'Note' below)
  • Start SL4A and run gwtest.py
  • Go have a nap
Note that this script currently doesn't use a wake lock (WTF!), and will stop if the phone goes to sleep. It's designed to be used on a phone that is plugged in and set to not sleep while charging. More info at:
http://code.google.com/p/android-scripting/wiki/FAQ#My_script_stops_working_when_the_screen_turns_off!_WTF?

Kill the script when you've had enough and find the log file in your phone's SL4A directory.

Log File Column Headers

  • Message status -- SENT/FAILED/RECIEVED, where FAILED means the phone could not send
  • Direction -- MO or MT
  • Message number -- counts up from 1
  • Date sent from phone
  • Time sent from phone
  • Date arrived at Rapid
  • Time arrived at Rapid
  • M/G -- delay in seconds between the mobile and gateway as measured by Rapid
  • Date gateway reply arrived on phone
  • Time gateway reply arrived on phone
  • G/M -- delay in seconds between the gateway and mobile

Questions, suggestions and improvements (especially improvements!) are very welcome. If you take some data please share it.

HTTP Gateway Tester was written by Michael Benedict.

gateway_test's People

Contributors

thebenedict avatar

Watchers

 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.