How to lock cell ID?

Hi everyone

For a few months now, I’ve been having a problem with the cell ID my RUT240 connects to.
I’ve noticed that during the day and night, it connects to different cell IDs, but only one makes the router work optimally. I’ve tried blocking the bands, but it doesn’t solve the problem, so I really need to block the router to just that cell ID.
I saw that there’s a CLI procedure, but it only works for RUT360s, that should do what I’m looking for. Is there a standard procedure suitable for all routers?
I’m currently using RUT240s and need to do this remotely, so I’d also need a “cell ID reset” procedure that will safely return the router to its previous state.
To reset the bands, I use the SMS: uci set simcard.@sm[0].band=auto

Thank you and best regards

Hello,

We have a Wiki guide for this, kindly find it here: Locking Devices to a Mobile Cell - Teltonika Networks Wiki

Regards,
Matas.

Hello,

What if I wanted to blacklist the faulty cell ID so it can connect to other cell IDs?
I would avoid losing the router in the event of errors by forcing the connection to a single cell.

Also, I wanted to ask if there is a way or script that does the rollback, so that if the router does not find an LTE connection after about 2-5 minutes, the device returns to the previous configuration, a bit like what happens in airmax devices. Unfortunately, I have to do all these operations remotely.

Thank you and best regards

Hello, @xSoul,

I hope you’re doing well.

My apologies for the delayed response.

You can find the commands required to lock the router to a specific cellular cell in the following wiki article:

https://wiki.teltonika-networks.com/view/Locking_Devices_to_a_Mobile_Cell#Locking_to_a_selected_cell_2

Regarding your question:

Also, I wanted to ask if there is a way or script that does the rollback, so that if the router does not find an LTE connection after about 2–5 minutes, the device returns to the previous configuration, a bit like what happens in airMAX devices. Unfortunately, I have to do all these operations remotely.

This behavior can be implemented using a custom script. However, please note that developing custom scripts falls outside the scope of our technical support.

In principle, the script could periodically verify whether the configured serving cell is available. If the router is unable to connect to that cell within the defined timeout, the script could remove the cell lock, allowing the modem to reconnect to the most suitable available cell based on the current network conditions.

I hope this helps. If you have any additional questions, please let me know.

Best regards,
V.