Giter Site home page Giter Site logo

Comments (3)

latin-panda avatar latin-panda commented on July 27, 2024 1

Nepal MoH Project

TL;DR

Frequent WiFi fluctuations provoke the phone to switch to mobile data. It has been observed that when these fluctuations happen Gateway stops working and connecting to API, then the team needs to restart Gateway.

Extended Version

The project is using phones with the following characteristics:

  • Android 5, 6 and 8.
  • Storage 16 GB, only essentials installed.
  • Huawei Y7 Pro 2018 and 2019, Huawei Che2-L11, Huawei LUA-U22, Mi A2 Lite and Nokia 2.3
  • Always connected to the power source, ensuring battery at 100%.
  • SMS Gateway 1.5 version.
  • When SMS Gateway is installed, it is configured in the phone under protected apps so the system doesn't kill it automatically.
  • SMS traffic on a very busy day is maximum 200 per day per phone (batch is 10 SMS).
  • Connected to WiFi (1 WiFi in the office with load balancer).

The storage is been monitored and the team doesn't think it's a problem.

They often experience fluctuations in the Internet connection, causing the phone to switch from WiFi to mobile data. Due to the localisation of the office, mobile data can be very slow. Apparently when these fluctuations happen, the SMS Gateway stop working and stop connecting with the API and then the team needs to restart the app. It's important to note that this happens with SMS Gateway 1.5.X, but it’s 3 times more frequent on 1.7.X.

There aren't logs available, because when they connect the phone to the computer the Gateway starts working again and they can’t see the past logs.

Additional Information

  • The issue doesn’t happen while the phone is connected to a computer.
  • It's unknown how long the Gateway tries to connect to WiFi before it fails.
  • SMS Gateway introduced a new feature in + 1.6.X, a mechanism to detect when WiFi is unreachable and it will keep trying to switch it on every few minutes.
  • It doesn't matter what device is used, version 1.7.X behaves highly inestable and the team needs to switch to 1.5.X.

MOH Ke (CEBs training) and ITECH Zimbabwe (production)

I raised the question to some Africa projects to know if they were experiencing the same issue as Asian projects.

They are using SMS Gateway version 1.5.X because of SMS from being stuck in Pending status and long feedback from sent SMS affecting large training sessions. Their phones are connected to stable WiFi connection and aren't constantly switching to mobile data. As today, these projects aren't reporting issues related with WiFi as Asia projects.

What we are going to try

  1. We're going to add a configuration option to switch off/on the feature that was added in +1.6.X and that probably made Gateway more inestable as reported by Asia projects.
  2. Some work was done to prevent SMS from being stuck in Pending status This is because newer versions of Android and newer phones have been including performance mechanisms that prevent some background actions to execute for long time.
  3. It will be necessary extra actions to ensure the app isn't switch off by the phone's system, some projects are already doing this:
  • Enabling developer mode and turn on Stay awake feature.
  • Keep phone connected to the power source.
  • Enabling the Gateway as protected apps.
  1. Currently there is an issue raised that could help on keeping the Gateway running better in background. As today, this issue hasn't been started yet.

Nice to have

The team is using a nice monitoring tool, where they can see each phone status (WiFi, signal, sms traffic, etc) maybe it would be useful to have stats from this tool, so we can detect trends overtime on phone/gateway performance.

from cht-gateway.

garethbowen avatar garethbowen commented on July 27, 2024

@latin-panda Items 1 and 2 being released as part of 3.11.0. The other items are being tracked. Is there anything more to do with this issue or can we close it out now?

from cht-gateway.

latin-panda avatar latin-panda commented on July 27, 2024

@garethbowen I think we can close it :)

from cht-gateway.

Related Issues (20)

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.