GL-X3000 can't connect to SIM - wrong pin error?

Hey there,

i bought a sweet Spitz AX 1 month ago, tried it with a 5G SIM card, worked fine, then it had to wait in the closet until now.
Forgot the password i set, resetted router, tried same settings and i can’t connect to internet anymore. I get the message "SIM card has been locked, please input the PIN code to unlock it. " BUT the PIN i enter is correct, i doublechecked it with a smartphone.

My provider (o2 Germany) wants me to use the APN “internet” and Authentication “PAP”. I tried this and several other combinations of blank fields and other input, trying and researching now for many hours without success.

Also updated to the latest beta build (openwrt-x3000-4.0-release50402-0908-1694145767), no success…

I am hoping to get any hint or advice on how to get it running, help much appreciated <3

First,you disable ‘Cellular’ connection.

Then we check if it can be unlocked manually:

1,Check the current sim card status:
AT+CPIN?


2,unlock sim with Pin code:
AT+CPIN=“xxxx” //Here ‘xxxx’ stands for pin code

3,Check the current sim card status again:
AT+CPIN?

Have you read through this thread?

Yes,Firmware version 3.0 has a bug:
Once pincode is entered incorrectly,it will keep dialing with the wrong pincode by default resulting in more than the number of validations.This makes the sim card unusable.

Firmware version 4.0 temporarily fixed this mechanism: Each manual dial-up triggers pincode authentication only once.

this works, but how can i enter PIN automatically after each Reboot?

same here, how to unlock automatic?

I’m also having problems with reboot after changing the APN. I removed the former (exposed IP) APN and the carrier auto-updated it to another on reconnection. But now, the SIM card PIN, which is correctly entered in the GUI seems to be forgotten on reboot, resulting in an error and no connection.
This is a problem given that the router is in a remote location where power sometimes drops out, severing the connection until I can access it locally.

What is your firmware version?

It says version 4.0 and “0412release3” as type of firmware. Also says it’s up-to-date.

The problem is known and temporary solutions are being tested to see if they work
Do you know how to use ssh?
Maybe I can show you how to fix it

Thanks.

Yes - I’ll probably be able to manage an SSH login next time I’m at the location if I have detailed instructions on commands to run.


vi files/usr/bin/switch_sim_slot

Two questions:

  1. Is this the entire content of the file in question or just a part of it?
  2. Could you please paste this code as text? It’s a little hard to paste an image into a file…

switch_sim_slot.zip (3.9 KB)
After decompressing the file, copy the switch_sim_slot file to the /usr/bin directory

1 Like

Thanks! Managed to upload the new file using the SSH webbrowser with the rtty -R command, replacing the old file and setting the same permissions.
I'll check that the reboot works the next time I'm at the router location.
Will this fix survive (or be included in) future updates?

It is currently in the acceptance stage, if there is no problem, it will be integrated into the next version of firmware