Community
OpenEnergyMonitor

OpenEnergyMonitor Community

Connecting to 3g/4g hotspot

Hi all,

We have a number of emonbase/ emontx setups that are used at remote locations (farm outbuildings). Typically, getting reliable internet connections i.e., from farmhouses etc is difficult without running wires or actually installing additional equipment etc.

We purchased a 4g mobile internet hotspot device (running on EE), which runs great on my laptop/mobile phone etc. We can see the wifi on the emonbase and can successfully add the SSID password etc. The problem is - the emonbase keeps saying “disconnected” and therefore can not access the internet.

I will say that the emonbase will connect to the personal hotspot on my mobile phone perfectly well.

Any ideas on what may be wrong.

Any help appreciated.

Sounds like a networking problem.

Please post the “Server Information” from the Admin section of EmonCMS on the emonbase.

@whatsupskip - thanks for reply. as requested below:

Server Information

Services
emonhub : Active Running
emoncms_mqtt : Active Running
feedwriter : Active Running - sleep 300s 57 feed points pending write
service-runner : Active Running
emonPiLCD : Failed Failed
redis-server : Active Running
mosquitto : Active Running
demandshaper : Active Running

Emoncms
Version : low-write 10.2.6
Modules : Administration | App v2.1.8 | Backup v2.2.4 | EmonHub Config v2.0.5 | Dashboard v2.0.9 | DemandShaper v2.0.1 | Device v2.0.7 | EventProcesses | Feed | Graph v2.0.9 | Input | Postprocess v2.1.4 | CoreProcess | Schedule | Network Setup v1.0.0 | sync | Time | User | Visualisation | WiFi v2.0.3
Git :
URL : https://github.com/emoncms/emoncms.git
Branch : * stable
Describe : 10.2.5-3-gf781bed0

Server
OS : Linux 5.4.51-v7+
Host : emonpi | emonpi | (169.254.203.251)
Date : 2020-10-19 11:25:15 BST
Uptime : 11:25:15 up 9 min, 0 users, load average: 0.38, 0.24, 0.12

Memory
RAM : Used: 16.99%
Total : 925.86 MB
Used : 157.26 MB
Free : 768.6 MB
Swap : Used: 0.00%
Total : 100 MB
Used : 0 B
Free : 100 MB
Write Load Period
Disk
/ : Used: 49.23%
Total : 4.06 GB
Used : 2 GB
Free : 1.87 GB
Write Load : n/a
/boot : Used: 21.15%
Total : 252.05 MB
Used : 53.32 MB
Free : 198.73 MB
Write Load : n/a
/var/opt/emoncms : Used: 0.06%
Total : 9.84 GB
Used : 5.89 MB
Free : 9.33 GB
Write Load : n/a
/var/log : Used: 12.27%
Total : 50 MB
Used : 6.14 MB
Free : 43.86 MB
Write Load : n/a

HTTP
Server : Apache/2.4.38 (Raspbian) HTTP/1.1 CGI/1.1 80

MySQL
Version : 5.5.5-10.3.23-MariaDB-0+deb10u1
Host : localhost:6379 (127.0.0.1)
Date : 2020-10-19 11:25:15 (UTC 01:00‌​)
Stats : Uptime: 414449 Threads: 11 Questions: 334 Slow queries: 0 Opens: 46 Flush tables: 1 Open tables: 40 Queries per second avg: 0.000

Redis
Version :
Redis Server : 5.0.3
PHP Redis : 5.3.1
Host : localhost:6379
Size : 144 keys (799.41K)
Uptime : 4 days
MQTT Server
Version : Mosquitto 1.5.7
Host : localhost:1883 (127.0.0.1)

PHP
Version : 7.3.19-1~deb10u1 (Zend Version 3.3.19)
Modules : apache2handlercalendar Core ctype curl date dom v20031129exif fileinfo filter ftp gd gettext hash iconv json v1.7.0libxml mbstring mosquitto v0.4.0mysqli mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $openssl pcre PDO pdo_mysql Phar posix readline redis v5.3.1Reflection session shmop SimpleXML sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zlib
Pi
Model : Raspberry Pi 3 Model B Rev 1.2 - 1GB (Embest)
Serial num. : B8E18F60
CPU Temperature : 45.08°C
GPU Temperature : 44.0°C
emonpiRelease : emonSD-24Jul20
File-system : read-write

Client Information

HTTP
Browser : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36 Edg/86.0.622.38
Language : en-GB,en;q=0.9,en-US;q=0.8

Window
Size : 1903 x 969

Screen
Resolution : 1920 x 1080

I wonder if the WiFi settings are saving correctly? You could always try entering them manually in /etc/wpa_supplicant/wpa_supplicant.conf to see if that works…

Thanks @TrystanLea - bit of a strange one here but it seems that the unit is after all connected to the internet, although the problem lies in the fact that in the wifi UI states “Disconnected” in red text as if its not - and that’s what threw me off a bit.

Let me know if I can give you any more details as maybe its a issue?

Ok great, how are you connected to the unit? Are you looking at the UI via the WiFi connection?
It may just be a bug on the WiFi page if everything else is working…

Its a small 4g wifi unit from the EE network:

Simply connected as I would wifi hotspotting my phone or similar.

Yes, using the UI. This is a snapshot of the screen/window: