GL-X300B-GPS - Firmware 4.5.16 GPS UI gone

Hi,

after flashing the new 4.5.16 firmware to my X300B-GPS, the GPS option is gone in the web UI.
Flashed without keeping settings.
flashing the older 3.217 will bring GPS back to the UI.

Can someone confirm that?

2 Likes

Hi,

I’ve opened the bin files “openwrt-x300b-4.5.16-0329-1711704011.bin” and

The old firmware openwrt-x300b-3.217-0508-1683513926.bin in 7-zip.

In the old firmware I could find files “gps_test”, “gps_upload” in \usr\bin\

“glgps” in \etc\config\

“gl_gps” in \etc\init.d\

“glgps” in\etc\config\

In the new firmware “openwrt-x300b-4.5.16-0329-1711704011.bin” I couldn’t find anything relating to GPS anymore.

Hi, Upgrading to Firmware 4.5.16 removes the More Settings / GPS tab in GL-X300B-GPS?
Any plan to fix this?

2 Likes

Same BIG problem here!

Some more Information from my side: i had Auto Update on and this Update crashed All setting, wirless was no more available, 4G was disconnected. I had to to a reset to get back to the interface. After that i did a Firmware downgrade.

1 Like

Same, GPS gone after firmware update.

Would be nice if somebody from gl.inet could say us something about the GPS funktion.
The GL-X300B-GPS sould have some GPS funktions :wink:

1 Like

GPS was the reason for purchasing the GL-X300B-GPS and now the functionality is completely missing. Can we get an update to fix this issue?

1 Like

We apologize, but version 4.5 does not have the GPS feature.

If you still need to use the GPS feature, please stay at version 3.x. It was our mistake not to turn off the automatic upgrade.
It was our mistake not to turn off the automatic upgrade, and it has now been deactivated. 3.x versions of the X300B will no longer be automatically upgraded to 4.x. For those who downloaded and installed it manually, we'll fill in the prompts.

There are no plans to migrated the GPS feature to the 4.x version at this time.
The old GPS feature was too difficult to get started with to be released as a general-purpose feature. If you want to upgrade to version 4.x for security or new features, we can provide a script that will still read GPS data and report it to a specified server.

Hi,

the X300B-GPS is applied for "Vehicle Location Tracking".
So removing the GPS capabilities is not what I expected.
For security reasons we have to use the 4.x Version.

maybe you can help us, making the X300B-GPS compatible with Traccar?
https://www.traccar.org/osmand/
And maybe other tracking solutions out there.(OpenGTS,...)

1 Like

There is no need for security reasons. The 4.x firmware is "newer" but not "more secure".
As long as the 3.x firmware is still supported - and that's the case, afaik - it's OK to stay on this branch.

Unter uns Ordensschwestern :smile: : The router is only as secure as the services it provides. As long as you only use it for providing internet and no other incoming services, it's pretty safe - even after the firmware support is over.

1 Like

You have your own Traccar server right?
But our original 3.x only reported standard GPS data to a server address, and I'm not sure if Traccar can accept it directly.

Later on we will provide a script that will take the position information from the X300B-GPS at regular intervals and report it to a server. You can modify the reporting part according to Traccar's interface format.

1 Like

It was my first try with traccar (on an qnap NAS).
I got my X300B-GPS a few weeks ago and updated to the latest firmware, so i have never been able to use the GPS funktion :slight_smile:
I will wait for your script and try to use it with traccar

Please check your private message.
Let me know if it's available.

Can you send me a copy of the script once it's done.

This is a reference to the script sent to the traccar server. We tested that it works. You can use Crontab to run it on a timer after GPS is enabled, or you can add a loop to it.

#!/bin/sh

# Set your server and device ID
url="http://demo.traccar.org:5055" # your traccar server url
device_id="12345" # your device ID

# Get GPS data
result=$(gl_modem -B 1-1 AT   'AT+QGPSLOC=2')

# Extract parameters
lat=$(echo $result | awk -F, '{print $2}')
lon=$(echo $result | awk -F, '{print $3}')
timestamp=$(date +%s)

# Constructing HTTP request
request="$url/?id=$device_id&lat=$lat&lon=$lon&timestamp=$timestamp"

# Send Data
curl -X GET "$request"

activate GPS :

# Enable GPS
gl_modem -B 1-1 AT   'AT+QGPS=1'

# Get GPS data
# 516 error: no GPS signal, please place the GPS antenna outdoors and wait for 2-3 minutes; 
# 505 error: GPS is disabled, please execute the enable GPS command.
# data format is 
#    +QGPSLOC: <UTC>,<latitude>,<longitude>,<HDOP>,<altitude>,<fix>,<COG>,<spkm>,<spkn>,<date>,<nsat>
#    <UTC> UTC time, format is hhmmss.sss
#    <date> UTC time, format is ddmmyy
gl_modem -B 1-1 AT   'AT+QGPSLOC=2'

# Disable gps
gl_modem -B 1-1 AT  'AT+QGPSEND'

gl_modem -B 1-1 AT 'AT+QGPS=1'
gl_modem -B 1-1 AT 'AT+QGPSLOC=2'

make a file in folder /usr/bin:

root@GL-X300B:/usr/bin# vi gps-send.sh

#!/bin/sh

# Set your server and device ID
url="http://192.168.77.50:5055" # your traccar server url (here thrugh an wireguard connection)
device_id="987654545" # your device ID

# Get GPS data
result=$(gl_modem -B 1-1 AT   'AT+QGPSLOC=2')

# Extract parameters

lat=$(echo $result | awk -F, '{print $2}')
lon=$(echo $result | awk -F, '{print $3}')
date=$(echo $result | awk -F, '{print $10}')
timestamp=$(date +%s)

# Constructing HTTP request
request="$url/?id=$device_id&lat=$lat&lon=$lon&timestamp=$timestamp"

# Send Data
curl -X GET "$request"
chmod x gps-send.sh

in luci GUI: System-> Scheduled Tasks
grafik

* * * * *  /usr/bin/gps-send.sh

This will send the position every minute

1 Like

chmod +x gps-send.sh

sorry i forgot the +

Can one simply revert back to the 3* firmware? I updated my GL-X300B manually - originally in the hopes to gain access to tailscale!

You can flash an older firmware without issues but make sure not to keep settings while downgrading.