Community discussions

MikroTik App
 
pakintoch
just joined
Topic Author
Posts: 2
Joined: Fri Jul 07, 2023 12:01 pm

LTE SIM LOCKED after reboot

Fri Jul 07, 2023 12:17 pm

Hi,
We have a CHATEAU LTE6 ax.
When we start the router and at each restart, the sim is LOCKED.
We have just to deactivate the LTE interface and reactivate it and suddenly it works correctly without changing any settings.
Do you have a solution for LTE to start on its own?

Thank’s
You do not have the required permissions to view the files attached to this post.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6604
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: LTE SIM LOCKED after reboot

Fri Jul 07, 2023 4:45 pm

An option I already used in the past is, using a smartphone, remove the requirement to have to enter the SIM PIN after boot.
But you may not want to do that with Chateau since in my case it was for an SXT LTE device hanging 7m above ground so not easy to reach.
However this process should simply work.

Is something found in the log right after startup ?

Can you try the latest beta 7.11b4 ? Maybe not 100% relevant but I do see a log entry related to LTE startup.
*) lte - improved initial interface startup time for SXT LTE 3-7;

Otherwise it might be best to send ticket to support so they can confirm (or not) if it is a bug.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12522
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: LTE SIM LOCKED after reboot

Fri Jul 07, 2023 5:07 pm

Just ask Rex how to disable PIN without a phone...
but I think is not binded to the fact that SIM have the PIN enabled, but on the fact that when SIM reset happen, RouterOS do not send again the PIN...


viewtopic.php?p=936239#p936239
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4240
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: LTE SIM LOCKED after reboot

Fri Jul 07, 2023 5:16 pm

Yeah removing the PIN code likely avoid the issue.

But this does seem like a bug. The PIN is set, and if disable/re-enabled it works with PIN code specified – only at startup something goes wrong it seems. I suppose it worth a try with the 7.11beta. I'd recommend adding a log for the "lte" topic in System>Logging. If you file a support case at help.mikrotik.com, generate a "Supout.rif" in winbox after the reboot and re-enabling LTE – by adding the lte logging that be in the supout.rif which likely have the needed clues as what's going wrong.
 
pakintoch
just joined
Topic Author
Posts: 2
Joined: Fri Jul 07, 2023 12:01 pm

Re: LTE SIM LOCKED after reboot

Fri Jul 07, 2023 6:41 pm

Thanks for your help.
I just disabled the PIN and it works.
It must be a bug.
I will open a support ticket.
Thanks again.
 
Vlastimil
just joined
Posts: 3
Joined: Thu Dec 08, 2022 5:40 pm

Re: LTE SIM LOCKED after reboot

Thu Sep 07, 2023 3:40 pm

Hello,

I have the same problem - I have open MikroTik support ticket since 08/Jun/2023 - SUP-118664: "We will notify when new modem firmware will be available with fix."

No now firmware for LTE card FG621-EA (16121.1034.00.01.01.03) :( There is only workaround to have a scheduler script to diasbale and enable lte interface after reboot :(

Cheers.
 
tapmacell
just joined
Posts: 1
Joined: Sat Oct 07, 2023 11:58 pm

Re: LTE SIM LOCKED after reboot

Sun Oct 08, 2023 12:24 am

this could help
use scheduler and set interval to 1 minute

:if ([/interface lte get lte1 running]=false) do={
:log error "LTE DOWN";
/interface disable lte1
/delay 1s
/interface enable lte1
} else={
:log info "LTE UP";
}
 
tafisa
just joined
Posts: 3
Joined: Wed Nov 26, 2014 3:20 pm

Re: LTE SIM LOCKED after reboot

Fri Dec 01, 2023 5:41 pm

Thanks for the Script bro, it works great

It´s really incredible how this bug still running on new firmwares (December 2023 v7.12.1).... Sometimes I feel idiot buying MK items. I want to use the new router hap ax lite LTE6 for a backup, if the router gets rebooted because a power problem, my sistem is not running any more because "THE SIM IS BLOCKED". Why? don´t know, need to disable LTE interface and turn on and is running again, Why? don´t know. By the way, the router is a 30 km from here :-(

Thanks again for the script, it check the LTE interface, disable and re-enable it. But why is my new router not working normally, I don´t know?

Mk, are you here to help us????
 
holvoetn
Forum Guru
Forum Guru
Posts: 6604
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: LTE SIM LOCKED after reboot

Fri Dec 01, 2023 5:45 pm

Make a support ticket with clear description of problem and supout.rif file.

MT staff is not reading all posts here (some pass by but not all).
This is a user forum.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4240
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: LTE SIM LOCKED after reboot

Fri Dec 01, 2023 6:25 pm

Make a support ticket with clear description of problem and supout.rif file.
Another approach is use /system/watchdog with watch-address of 8.8.8.8 or something. This will generate supout.rif & reboot entire router if ping fails after the associated timeouts. While script above covers if the LTE interface isn't running... watchdog prevents a wide array of potential issues. And if watchdog activates, you'd already have the supout.rif ready to report to Mikrotik to get to the bottom of why disable/enable is even needed.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6604
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: LTE SIM LOCKED after reboot

Fri Dec 01, 2023 6:59 pm

But it could be the problem is originating from a too soon startup which causes the SIM PIN not to be set at which point watchdog might get stuck in a bootloop.
So a reset of LTE interface some seconds after boot, might still be in order then.
Or one will never get out of the loop.

Again: I complete circumvented the issue unlocking the SIM card I use (in the mean time it moved from SXT LTE to AX Lite LTE).
 
nmt1900
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Wed Feb 01, 2017 12:36 am

Re: LTE SIM LOCKED after reboot

Thu Dec 21, 2023 11:32 am

This is far from being a "beginner basics" problem. I have L41G-2axD&FG621-EA on my hands and it seems that other devices with FG621-EA are affected as well.
 
nmt1900
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Wed Feb 01, 2017 12:36 am

Re: LTE SIM LOCKED after reboot

Thu Dec 21, 2023 3:43 pm

Hello,

I have the same problem - I have open MikroTik support ticket since 08/Jun/2023 - SUP-118664: "We will notify when new modem firmware will be available with fix."

No now firmware for LTE card FG621-EA (16121.1034.00.01.01.03) :( There is only workaround to have a scheduler script to diasbale and enable lte interface after reboot :(

Cheers.
Now we have .04 firmware but this does not solve the problem. It might be out of hands of Mikrotik as they do not make the firmware for a modem.

P. S. Mikrotik offered a scheduler script as workaround for now...
 
noah
just joined
Posts: 1
Joined: Wed Dec 27, 2023 9:08 pm

Re: LTE SIM LOCKED after reboot

Wed Dec 27, 2023 9:12 pm

Mikrotik support gave me following scheduler script, that can be used as a workarround.
/system scheduler remove [find name=refresh_locked_SIM]
/system scheduler add name=refresh_locked_SIM start-time=startup interval=10s on-event="\
    :local lteInterfaces [/interface print as-value where type=lte and disabled=no]\r\
    \n:foreach lte in=\$lteInterfaces do={\r\
    \n  :if ([/interface/lte/monitor (\$lte->\"name\") as-value once]->\"status\"=\"sim locked\") do={\r\
    \n     /interface lte set (\$lte->\"name\") disabled=yes\r\
    \n     :delay 3s\r\
    \n     /interface lte set (\$lte->\"name\") disabled=no\r\
    \n    }\r\
    \n  }\r\
    \n"
    
 
nmt1900
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Wed Feb 01, 2017 12:36 am

Re: LTE SIM LOCKED after reboot

Fri Dec 29, 2023 4:00 pm

There's more to it...

It looks like SIM gets locked even when LTE interfase is manually disabled before reboot and then manually enabled first time after reboot.
This implies that it might not be related to reboot process only.
 
User avatar
semperco
just joined
Posts: 1
Joined: Mon Jan 01, 2024 11:44 pm
Location: Paris
Contact:

Re: LTE SIM LOCKED after reboot

Tue Jan 02, 2024 12:09 am

Mikrotik support gave me following scheduler script, that can be used as a workarround.
/system scheduler remove [find name=refresh_locked_SIM]
/system scheduler add name=refresh_locked_SIM start-time=startup interval=10s on-event="\
    :local lteInterfaces [/interface print as-value where type=lte and disabled=no]\r\
    \n:foreach lte in=\$lteInterfaces do={\r\
    \n  :if ([/interface/lte/monitor (\$lte->\"name\") as-value once]->\"status\"=\"sim locked\") do={\r\
    \n     /interface lte set (\$lte->\"name\") disabled=yes\r\
    \n     :delay 3s\r\
    \n     /interface lte set (\$lte->\"name\") disabled=no\r\
    \n    }\r\
    \n  }\r\
    \n"
    
Thanks for sending the script to Mikrotik support, it works... but it doesn't seem very clean to me... I'm looking for another solution
 
nmt1900
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Wed Feb 01, 2017 12:36 am

Re: LTE SIM LOCKED after reboot

Tue Jan 09, 2024 11:56 am

It looks like script is checking if lte interface has status "sim locked".

If this status is present then script disables lte interface, waits for 3 seconds and enables lte interface again. If "sim locked" status is not present, then script does not do anything. Script will run again after scheduled time (which seems to be 10 seconds in this case).
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4240
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: LTE SIM LOCKED after reboot

Fri Jan 26, 2024 2:00 am

I don't have an FG621-EA modem (e.g. most recent LTE6 devices) nor SIM locking enabled to know. But...I saw this in the release notes for 7.13.3 that seem to indicated this may problem may be fixed:
*) sms - fixed SMS inbox for FG621-EA modem (introduced in v7.13);
*) lte - improved SIM PIN unlock event handling for MBIM FG621-EA;
(edit: cut-and-paste error, see below)
Last edited by Amm0 on Fri Jan 26, 2024 1:50 pm, edited 1 time in total.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6604
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: LTE SIM LOCKED after reboot

Fri Jan 26, 2024 7:58 am

This line might be more relevant :lol:
*) lte - improved SIM PIN unlock event handling for MBIM FG621-EA;
 
Vlastimil
just joined
Posts: 3
Joined: Thu Dec 08, 2022 5:40 pm

Re: LTE SIM LOCKED after reboot

Wed Jan 31, 2024 11:41 am

Yes, ROS 7.13.3 really works. Comtrya :mrgreen:
 
nmt1900
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Wed Feb 01, 2017 12:36 am

Re: LTE SIM LOCKED after reboot

Tue Feb 06, 2024 1:09 pm

Is update to 7.13.3 enough or does LTE modem firmware has to be updated as well (if there's any updates available for it)?

My only device already went out to customer (abroad) and it would be good to know if this problem is really nailed down before attempting to initiate an upgrade remotely.

Who is online

Users browsing this forum: tangent and 10 guests