GLx 3000 spitz 5g keeps disconnecting and changing apn for no reason

Thanks for catching that.
( most of the following is for the tech that's been helping me)
I still don't know what I'm being told to input.
So I added " " to the only input I've been given. (vi /usr/bin/switch_sim_slot)
I do not know if this is what I was told to do.
I do not understand if that's what I was being told to do why it wasn't just typed out:
input the following, vi /usr/bin/"switch_sim_slot"
Therefore I have no idea if I did what was asked.
I also don't know what you mean when you say "try test"
Maybe if I was more familiar with code I wouldn't be so frustrated with this seemingly cryptic instruction.
I was expecting the tech to log in through goodcloud yesterday where they could maybe input this code?
I'd like to know if this is individual device dependent or if all of the x3000s revert to the wrong APN settings on power cycle/disruption.
I've been pretty patient for over two weeks talking to tech and having them goocloud into my device. To be fair, my concerns have switched from one thing to another as the other has manifested but I don't see that my participation is of much use.
Surely you can test and fix your own devices in house?
I think I need a break from this.
Email me if you fix it.

login as: root
root@192.168.8.1's password:

BusyBox v1.33.2 (2024-08-24 01:57:23 UTC) built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt 21.02-SNAPSHOT, r15812+880-46b6ee7ffc

root@GL-X3000:~# vi /usr/bin/"switch_sim_slot"
#!/bin/sh
. /lib/functions.sh
. /lib/functions/modem.sh
. /lib/netifd/netifd-proto.sh

while true
do
pid=ps -w | grep verizon_apn.sh | grep -v grep

[ "$pid" != "" ] && {
    sleep 1
    delay=1
    continue
}
break

done

[ "$delay" = "1" ] && sleep 5

trap 'dual_unlock;exit' INT TERM
redial_sim=''
echo_ssh() {
terminals=$(ls /dev/pts/* 2>/dev/null)
for terminal in $terminals; do
echo $1 >$terminal
done
echo $1 >/dev/console
}

dual_lock()
{
# echo_ssh "==== switch start ..."
echo "lock" > /var/run/dual_sim/$iface/status
touch /var/run/switch-sim.lock
}

dual_unlock()
{
# echo_ssh "==== switch end ..."
echo "unlock" > /var/run/dual_sim/$iface/status
[ -n "$AT_CMD" ] && {
for i in $(seq 1 3)
do
local slot=""
slot=$($AT_CMD AT+QUIMSLOT? | grep "+QUIMSLOT:" | tr -cd "0-9")
[ -n "$(echo $slot | grep [0-9])" ] && {
echo "$slot" > /var/run/dual_sim/$iface/current_sim
break
}
done
}
rm /var/run/switch-sim.lock 2>/dev/null
}

handle_profile()
{
if [ "$1" = "$2" ]; then
iface=$3
local protocol device auth apn description apns apn_use
config_get protocol "$1" protocol "qcm"
config_get device "$1" device
config_get auth "$1" auth
config_get apn "$1" apn
config_get apns "$1" apns
config_get apn_use "$1" apn_use
config_get description "$1" description

    config_get service "$1" service  #3g  CDCWDMA
    config_get dialnumber "$1" dialnumber #3g #9999

    config_get auth "$1" auth "NONE" #NONE CHAP,PAP/CHAP
    config_get username "$1" username #auth NONE
    config_get password "$1" password #auth NONE
    config_get pincode "$1" pincode
    config_get metric "$1" metric 40
    config_get ttl "$1" ttl
    config_get ttl_ipv6 "$1" ttl_ipv6
    config_get mtu "$1" mtu

    config_get roaming "$1" roaming "0"
    config_get band_enable "$1" band_enable "0"
    config_get band_list "$1" band_list
    config_get band_filter_mode "$1" band_filter_mode
  • /usr/bin/switch_sim_slot 1/544 0%

I believe what you need to do is identify the line given previously and put quotes ( " ) on either side of the variable $final_sim

So it should say:
&& redial "$final_sim" update &
Instead of
&& redial $final_sim update &

This change on my end is line 542 of the file.

Ok thanks, getting closer. To what I don't know:)
Where would I change that? Is it a txt file and/or do I do it somehow with ssh?

I already changed it for you
Do not reset the firmware as this will cause the change to fail
We also tested it many times, but never had the same problem
Since your device is relatively easy to reproduce, I would like to ask you to test it
I am very sorry for the trouble I have caused you

Ok. You saw that I input some queries. I doubt that it changed whatever you did but thought I'd mention it.
By testing, you mean just use the device and see if it loses APN settings? Or is there something specific I should do?
I can replicate a momentary loss of power which is what triggered it last time afaik.
I'll let you know if it happens again

edit to add: I really don't know what you've been doing and I don't know if you are confident that you've solved the problem. But you've spent a lot of time being very patient with me and you don't have to apologize. Unless you know there's an issue that can't be fixed and you're not telling me. I have a headache and I got a little frustrated. I do appreciate the efforts.

This problem can be solved
But this question comes up only once in a while
So it's going to take some time
I‘m so sorry

@ywp Has this issue been resolved in the beta firmware? Alternatively, could you summarize which files and configurations need to be modified via the SSH terminal?

I experienced a similar problem with T-Mobile. The connection randomly becomes unstable, and the profile settings (e.g., TTL, HL, MTU) are reset after a reboot. Despite multiple reboots, the disconnection issue was only temporarily resolved, but it kept recurring.

The issue seems to be (partially?) resolved after I press “disconnect” button and connect again through "manual setup" button. Since then, the random disconnections and profile resets haven’t occurred for at least a week. I hope this datapoint is helpful.

sorry
The beta version is not integrated yet, you can modify it yourself, and then test it

Thanks, I will try and give you an update.

@ywp with your workaround, it seems all ok up to now

Thank you

So what's the resolution here? I'm lost in this thread.

Having a similar problem with my unit, even when setting a manual APN by tiping it, it reverts back to what I presume is a default one.
Example:
I set myinternet.something, after some time it reverts to internet.something.
I suspect this happens when the DHCP lease is renewed.

Is this problem being worked on?

Logged in my unit earliear and got an update available notification for version 4.7.4
Among the bug fixes is:
Resolved a problem where manually configured APN settings reverted to default after a router restart.
Will apply and report back in some days to see if my issue is resolved

1 Like

Any update on your APN findings after your update?

APN now seems to be maintained after reboots.
I have one set at 4am every night and it hasn't changed yet.
Seems promising