Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Last active March 18, 2024 12:55
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save Anime4000/e9213bd4eaef502e4675d736c564fb5c to your computer and use it in GitHub Desktop.
Save Anime4000/e9213bd4eaef502e4675d736c564fb5c to your computer and use it in GitHub Desktop.
Mikrotik LTE Change IMEI

Change Mikrotik LTE IMEI

Query which mode

/interface lte at-chat lte1 input="AT*PROD\?"

Enter Non-production mode

/interface lte at-chat lte1 input="AT*PROD=1"

Delete old IMEI

/interface lte at-chat lte1 input="AT*MRD_IMEI=D"

Chnage new IMEI

/interface lte at-chat lte1 input="AT*MRD_IMEI=W,0101,11JAN1970,android_phone_imei"

Enter production mode

/interface lte at-chat lte1 input="AT*PROD=0"

Reboot!

@zheephy
Copy link

zheephy commented Apr 15, 2023

I have a question, all LTE Mikrotik products Can I change with This one?

@Anime4000
Copy link
Author

I have a question, all LTE Mikrotik products Can I change with This one?

I not sure, the at command is pretty standard unless some proprietary

@jddebug
Copy link

jddebug commented Aug 23, 2023

Were you doing this on a R11e modem module?

I ask because this is what I get:

[admin@MikroTik] > /interface lte at-chat lte1 input="AT*PROD?"

output: ERROR

@Anime4000
Copy link
Author

I guess that on different LTE Card

@pexxie
Copy link

pexxie commented Dec 3, 2023

Thank you for this.
This worked "as is" for me originally, but perhaps after recent firmware updates; no longer does. In short; my LTE modem now needs power-cycling for the production mode change to take effect.

Updated version of the steps which I now use is below. Without disabling the interface; it behaves strangely when in non-production mode.
LHG-LTE6 (RBLHGR&R11e-LTE6).
RouterOS v7.12.1.
Modem firmware R11e-LTE6_V036.

Query which mode

/interface lte at-chat lte1 input="AT*PROD\?"
"output: *PROD: 0" = production mode
"output: *PROD: 1" = non-production mode

Disable LTE interface

/interface lte disable lte1

Enter non-production mode

/interface lte at-chat lte1 input="AT*PROD=1"

Power cycle LTE modem

/interface lte at-chat lte1 input="AT+reset"

Confirm in non-production mode

/interface lte at-chat lte1 input="AT*PROD\?"
"output: *PROD: 1"

Delete old IMEI

/interface lte at-chat lte1 input="AT*MRD_IMEI=D"

Set new IMEI

/interface lte at-chat lte1 input="AT*MRD_IMEI=W,0101,11JAN1970,android_phone_imei"

Enter production mode

/interface lte at-chat lte1 input="AT*PROD=0"

Power cycle LTE modem

/interface lte at-chat lte1 input="AT+reset"

Confirm in production mode

/interface lte at-chat lte1 input="AT*PROD\?"
"output: *PROD: 0"

Enable LTE interface

/interface lte enable lte1

@khapa77
Copy link

khapa77 commented Jan 19, 2024

Excuse me, can I recovery original IMEI?

@Anime4000
Copy link
Author

Excuse me, can I recovery original IMEI?

No, it's permanent

@mocadova
Copy link

Please help me... I have a Quectel LTE 18 / EG18-EA modem in my Mikrotik, and need to change the IMEI.

@MrDeepFreeze
Copy link

I am trying these commands on an LHG LTE but all I get in return is...
output: ERROR
Why?

@Anime4000
Copy link
Author

maybe newer revision already different command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment