Page 1 of 3

Quectel EM160 AT commands

Posted: Mon Dec 14, 2020 6:17 pm
by Didneywhorl
As some of you may know, or have recently found out, the newest Quectel modems (EM160, EM120, RM500, RM510, RM502) do NOT use all of the same AT commands as the predecessor modems.

Here are a list of a few new commands and what they should do, and a list of commands that I've found not working anymore.


New:

Code: Select all

AT+QRSRP?
: Check the signal info on each antenna port. This one was supposed to work on the EM20, and EM12 I think, but never made it.

Code: Select all

AT+QNWPREFCFG: "roam_pref",255
This one replaces AT+QCFG="roamservice",1 . I have not been able to get roamservice to work on the EM160.
255 is for Auto ( basically the same as full roaming imo )
1 is for Roam on Home Networks only (I'm guessing this is 'dont roam lite' )
3 is for Roam on Affiliate Networks (full on roaming)

Code: Select all

AT+QNWPREFCFG="mode_pref",LTE
This replaces AT+QCFG="NWSCANMODE",3,1 which is also a command that the EM160 wont accept.
LTE, CDMA, AUTO are the options I believe. I'll have to dbl check those.


BAND LOCKING!!!

So this one is all new and MUCH simpler:

The see the current band setting:

Code: Select all

AT+QNWPREFCFG="lte_band"?
example to set to bands 2,4,12,66,71 only:

Code: Select all

AT+QNWPREFCFG="lte_band",2:4:12:66:71
that's it.

After setting it, remember to hard reset the modem with

Code: Select all

AT+CFUN=1,1
this will make the modem disappear and come back rebooted. Entering

Code: Select all

AT+CFUN=0; +CFUN=1
does nothing really. You have to run the '=1,1' version or power cycle your router to get the modem to actually reboot.


Voice Centric Use or Data centric use: (this one Im still toying with to really get the purpose of

Code: Select all

AT+QNWPREFCFG="ue_usage_setting",<settingNumber>
In place of <settingNumber>:
0 for Voice centric
1 for Data centric


There are a few others, but these are the popular ones that come to mind.

And as an extra bonus:
Post replies for any commands you've found for the new Quectel modems, and what they do.

Re: Quectel EM160 AT commands

Posted: Thu Dec 24, 2020 3:49 pm
by toddw
Many thanks for this. Will come in handy this weekend.

Re: Quectel EM160 AT commands

Posted: Sat Dec 26, 2020 8:00 pm
by BillA
The following commands have been tested and work on the EM16 (EM160R), and possibly on other newer models.

Disable auto-MBN mode, and set it to generic profile:

Code: Select all

AT+QMBNCFG="AutoSel",0  < 0=deactivate / 1=activate
AT+QMBNCFG="Deactivate"  < Activate / Deactivate
AT+QMBNCFG="Select","ROW_Commercial"
MBN profile list:
+QMBNCFG: "List",0,1,1,"ROW_Commercial",0x08010809,201907031
+QMBNCFG: "List",1,0,0,"Commercial-TMO",0x0801050F,202005251
+QMBNCFG: "List",2,0,0,"Telstra_Australia_Commercial",0x08010F00,202005111
+QMBNCFG: "List",3,0,0,"ROW_Generic_3GPP_PTCRB_GCF",0x0801FE02,201910231
+QMBNCFG: "List",4,0,0,"Germany-VoLTE-Vodafone",0x08010449,202004261
+QMBNCFG: "List",5,0,0,"Swiss-Comm",0x08010411,202004261
+QMBNCFG: "List",6,0,0,"Commercial-EE",0x0801220B,202004261
+QMBNCFG: "List",7,0,0,"hVoLTE-Verizon",0x0801010E,202006091
+QMBNCFG: "List",8,0,0,"Commercial-Sprint",0x08010204,201907031
+QMBNCFG: "List",9,0,0,"FirstNet",0x08015300,202004301
+QMBNCFG: "List",10,0,0,"VoLTE-ATT",0x08010335,202001101
+QMBNCFG: "List",11,0,0,"VoLTE-CU",0x08011561,202003131
+QMBNCFG: "List",12,0,0,"VoLTE_OPNMKT_CT",0x080113E0,202004261
+QMBNCFG: "List",13,0,0,"Volte_OpenMkt-Commercial-CMCC",0x08012010,201907031
+QMBNCFG: "List",14,0,0,"Commercial-KDDI",0x08010709,202006181
+QMBNCFG: "List",15,0,0,"Commercial-DCM",0x08010D0D,202004261
+QMBNCFG: "List",16,0,0,"Commercial-SBM",0x08011C0B,201907031


Other commands:

Code: Select all

AT+QCFG="usbnet",0  < 0=QMI/PPP/Default / 1=ECM / 2=MBIM
AT+QPRTPARA=3  < Factory reset NVM items (careful, you may lose modem control!)
AT+QPRTPARA=1  < Save NVM items

It's funny how a year ago Sierra was the most popular modem on here, till I started posting about Quectel and even Simcom brands. It must be the "magic"! ;D

Re: Quectel EM160 AT commands

Posted: Sat Dec 26, 2020 9:51 pm
by Didneywhorl
BillA wrote:
Sat Dec 26, 2020 8:00 pm
The following commands have been tested and work on the EM16 (EM160R), and possibly on other newer models.

Disable auto-MBN mode, and set it to generic profile:

Code: Select all

AT+QMBNCFG="AutoSel",0  < 0=deactivate / 1=activate
AT+QMBNCFG="Deactivate"  < Activate / Deactivate
AT+QMBNCFG="Select","ROW_Commercial"
MBN profile list:
+QMBNCFG: "List",0,1,1,"ROW_Commercial",0x08010809,201907031
+QMBNCFG: "List",1,0,0,"Commercial-TMO",0x0801050F,202005251
+QMBNCFG: "List",2,0,0,"Telstra_Australia_Commercial",0x08010F00,202005111
+QMBNCFG: "List",3,0,0,"ROW_Generic_3GPP_PTCRB_GCF",0x0801FE02,201910231
+QMBNCFG: "List",4,0,0,"Germany-VoLTE-Vodafone",0x08010449,202004261
+QMBNCFG: "List",5,0,0,"Swiss-Comm",0x08010411,202004261
+QMBNCFG: "List",6,0,0,"Commercial-EE",0x0801220B,202004261
+QMBNCFG: "List",7,0,0,"hVoLTE-Verizon",0x0801010E,202006091
+QMBNCFG: "List",8,0,0,"Commercial-Sprint",0x08010204,201907031
+QMBNCFG: "List",9,0,0,"FirstNet",0x08015300,202004301
+QMBNCFG: "List",10,0,0,"VoLTE-ATT",0x08010335,202001101
+QMBNCFG: "List",11,0,0,"VoLTE-CU",0x08011561,202003131
+QMBNCFG: "List",12,0,0,"VoLTE_OPNMKT_CT",0x080113E0,202004261
+QMBNCFG: "List",13,0,0,"Volte_OpenMkt-Commercial-CMCC",0x08012010,201907031
+QMBNCFG: "List",14,0,0,"Commercial-KDDI",0x08010709,202006181
+QMBNCFG: "List",15,0,0,"Commercial-DCM",0x08010D0D,202004261
+QMBNCFG: "List",16,0,0,"Commercial-SBM",0x08011C0B,201907031


Other commands:

Code: Select all

AT+QCFG="usbnet",0  < 0=QMI/PPP/Default / 1=ECM / 2=MBIM
AT+QPRTPARA=3  < Factory reset NVM items (careful, you may lose modem control!)
AT+QPRTPARA=1  < Save NVM items

It's funny how a year ago the most popular modems were Sierra's, and now Quectel and even Simcom have taken over. Hmmm... I wonder why?! No need to answer it. ;D
Good stuff Bill!

I don't think the: AT+QMBNCFG="Activate" thing you listed as an option is a working command though. I think The: AT+QMBNCFG="Select"..... does that. The Deactivate command simply 'deactivates' the selected MBN profile. I could be wrong, but AT+QMBNCFG="Deactivate" is a listed command, with no options, when AT+QMBNCFG=? is queried.

Re: Quectel EM160 AT commands

Posted: Tue Dec 29, 2020 10:40 am
by leopardus2
I wonder if the EM160 performs any better than the EM20.
I just received my EM160 yesterday so I'll replace the EM20 I have been using since couple months and run some tests.

Re: Quectel EM160 AT commands

Posted: Tue Dec 29, 2020 11:26 am
by leopardus2
First tests show that the EM160 is unable to perform more than 2CA.
Very likely there is a problem with the firmware. The EM20 goes back in service!

Re: Quectel EM160 AT commands

Posted: Tue Dec 29, 2020 11:36 am
by leopardus2
I found a way to make it behave properly . Need to lock the explicit bands with AT+QNWPREFCFG="lte_band",1:3:7 then it will do 3CA or 4CA. If you leave it "free" it will stick to 2CA... buggy firmware, as usual from Quectel

Re: Quectel EM160 AT commands

Posted: Tue Dec 29, 2020 1:48 pm
by leopardus2
I am happy to tell you that, although not documented, the EM160 supports EM20 way of locking PCC to a cell id (and therefore a tower) using at+qnwlock=\"common/4g\",1,EARFCN,CELLID

Re: Quectel EM160 AT commands

Posted: Tue Dec 29, 2020 5:57 pm
by Didneywhorl
Good find!

Re: Quectel EM160 AT commands

Posted: Tue Dec 29, 2020 7:28 pm
by toddw
The EM160 I just got from LTEFix is doing 3xCA out of the box with no changes out in the country, which isn't bad at all. I plan to take it into the city and see what it does like I did with the Telit 960.

EDIT: Just now, as load comes off the towers they tend to open up...
3xca.png
3xca.png (6.17 KiB) Viewed 2894 times