Page 1 of 1
how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Fri Jul 12, 2019 11:26 pm
by kevinM
I am trying to get the EC25 LTE modem to run in LTE mode. By default is appears to run as PPP, I read the forum below stating i need to send it an AT command to switch into lte but it doesn't specify how to do that and i'm new to LTE. Can someone please assit me, i'm running 6.44.3 version with EC25-V modem.
https://wiki.mikrotik.com/wiki/Cellular ... _modems_01
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Mon Jul 15, 2019 6:54 pm
by kevinM
any help here???
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Mon Jul 15, 2019 7:25 pm
by Exiver
In RouterOS v6.39 and newer the EC25-MiniPCIe module can be configured as a LTE Interface which can support local IP address from modem. Use this AT command to enable it and after that reset the module: at+qcfg="usbnet",1
Source:
https://wiki.mikrotik.com/wiki/Cellular ... 01#Summary
It is possible to send user defined "at-chat" command to LTE interface with /interface lte at-chat command.
Source:
https://wiki.mikrotik.com/wiki/Manual:I ... at_command
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Mon Jul 15, 2019 7:29 pm
by Amm0
I have gotten it working in PPP and LTE mode, so it's possible. I'll write up what I know in case that helps.
If it doesn't show up as an LTE modem, the "at-chat" option isn't the only way to issue AT commands, which I think is your problem since it's a catch-22 if the module isn't in ECM mode, it won't show up as LTE, and if there isn't an LTE interface "at-chat" don't work.
But you can always use "/system serial-terminal port=XXX channel=X" to enter the commands from the Quectel wiki page; if you use "/ports print" you'd get the need port#, and I think it its channel=0 but you can try multiple ones. From the serial-terminal to the card you should be able to enter the AT commands mentioned to set the CDC mode (e.g. PPP or LTE in Mikrotik terms, or PPP or ECM in USB driver world
But you may not want LTE mode as the card will act as it own router and do it's own NAT'ing on the miniPCIe, outside of the Mikrotik firewall (e.g. after the Mikrotik routing plane). This wasn't helpful in my case, since I had a static IP address I wanted available to the Mikrotik, so I ended up using PPP mode. Now would have rather used LTE mode (to avoid the ~30Mb/s limit of PPP), but Quectel support told a few months ago: "With ECM mode (AT + QCFG = "usbnet", 1) [e.g. LTE mode on Mikrotik], the connection will work via NAT, so the module will provide it's own local ip address to mikrotik (not the network one)".
For completeness, the USB integration modes available on the EC25 are:
AT+QCFG="usbnet",0 - is PPP & QMI (default)
AT+QCFG="usbnet",1 - is ECM.
AT+QCFG="usbnet",2 - is MBIM
While Quectel EC25 supports QMI and MBIM mode, neither are currently supported by Mikrotik. MBIM mode is what ROS v7 is promised to bring, and would make this a lot easier than AT commands. PPP mode is what I'd recommend, but you can get working in LTE mode if you use /system serial-terminal to set the needed AT+QCFG="usbnet",1 command if you want to try, and you can use AT+QCFG="usbnet",0 to get it back to working in PPP mode.
Finally, if you need to get RSRP, SINR, or RSRQ from the module, then use AT+QENG="servingcell".
Hope this helps.
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Mon Jul 15, 2019 8:37 pm
by kevinM
I have gotten it working in PPP and LTE mode, so it's possible. I'll write up what I know in case that helps.
If it doesn't show up as an LTE modem, the "at-chat" option isn't the only way to issue AT commands, which I think is your problem since it's a catch-22 if the module isn't in ECM mode, it won't show up as LTE, and if there isn't an LTE interface "at-chat" don't work.
But you can always use "/system serial-terminal port=XXX channel=X" to enter the commands from the Quectel wiki page; if you use "/ports print" you'd get the need port#, and I think it its channel=0 but you can try multiple ones. From the serial-terminal to the card you should be able to enter the AT commands mentioned to set the CDC mode (e.g. PPP or LTE in Mikrotik terms, or PPP or ECM in USB driver world
But you may not want LTE mode as the card will act as it own router and do it's own NAT'ing on the miniPCIe, outside of the Mikrotik firewall (e.g. after the Mikrotik routing plane). This wasn't helpful in my case, since I had a static IP address I wanted available to the Mikrotik, so I ended up using PPP mode. Now would have rather used LTE mode (to avoid the ~30Mb/s limit of PPP), but Quectel support told a few months ago: "With ECM mode (AT + QCFG = "usbnet", 1) [e.g. LTE mode on Mikrotik], the connection will work via NAT, so the module will provide it's own local ip address to mikrotik (not the network one)".
For completeness, the USB integration modes available on the EC25 are:
AT+QCFG="usbnet",0 - is PPP & QMI (default)
AT+QCFG="usbnet",1 - is ECM.
AT+QCFG="usbnet",2 - is MBIM
While Quectel EC25 supports QMI and MBIM mode, neither are currently supported by Mikrotik. MBIM mode is what ROS v7 is promised to bring, and would make this a lot easier than AT commands. PPP mode is what I'd recommend, but you can get working in LTE mode if you use /system serial-terminal to set the needed AT+QCFG="usbnet",1 command if you want to try, and you can use AT+QCFG="usbnet",0 to get it back to working in PPP mode.
Finally, if you need to get RSRP, SINR, or RSRQ from the module, then use AT+QENG="servingcell".
Hope this helps.
Thanks Amm0.
I did try using the serial terminal as I read that in another forum post, but when I get in I cant seem to type any commands. Only channel 0 responds. At first all i see is [Ctrl-A is the prefix key]. If I try and type anything is doesn't respond or print it out on the screen. If I hit Ctrl-A then I get these options:
[Q - quit connection]
[A - send Ctrl-A prefix] [R - autoconfigure rate]
At this point I still cant type anything and only Ctrl-A resopnds and just reprints the same options. THis is where i'm stuck...
[admin@MikroTik] > system serial-terminal port=usb2 channel=0
[Ctrl-A is the prefix key]
[Q - quit connection]
[A - send Ctrl-A prefix] [R - autoconfigure rate]
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Mon Jul 15, 2019 11:22 pm
by Amm0
For the Quectel EC25-V, you need to use channel 2 or 3 in "/system serial-terminal usbX channel=2" where X is the /port for the EC25. You shouldn't need to use Ctrl-A until you want to get back to the Mikrotik console (e.g. Ctrl-A, then Q).
So if you used channel 0, it would connect but doesn't understand AT commands. I think if you use channel=2 you'd be set. Also you want to make sure any ppp-client is disabled as that would use the port you need to connect on. (/port print will show if being used by something)
The EC25-V USB channels are:
0 = debug ("DM")
1 = NMEA (GPS)
2 = AT commands
3 = PPP (or normal AT)
For PPP mode, you need to set the info channel to "2" and data channel to "3", as per the Quectel wiki link. While LTE mode will take care of the channels for you... it will be NAT'ed similar to plugging in a USB hotspot, while PPP mode will get IP directly from the carrier's network.
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Tue Jul 16, 2019 1:14 am
by kevinM
Amm0 your a life saver. I got the device into lte mode for testing, thank you.
The device natting in LTE mode is not a concern as we only need it for basic internet access. It wasn't allowing me to terminal into any channels other then 0 until I set "port firmware set ignore-directip-modem=yes" and rebooted. After I did that I was able to terminal into the other channels and issue the command. Then I set "port firmware set ignore-directip-modem=no" and rebooted and the LTE interface showed up and connected to verizon.
thank you again my friend!
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Thu Jan 16, 2020 6:08 am
by uberdome
I am working with an EC25 (EC25-AF specifically).
I have been trying to get this modem into ECM mode with no success. As @kevinM suggested, the modem only connects on channel=0 when attempting a serial-terminal connection. Attempting channel=2 results in: "failure: no such channel".
I attempted setting "port firmware set ignore-directip-modem=yes", but following a reboot there is no modem registering at all in "/system resource usb print"... so this doesn't allow me to connect on channel=2.
Any further details or suggestions for how to issue the necessary AT command to switch to LTE mode?
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Thu Jan 23, 2020 1:02 am
by uberdome
This is where I ended up:
I purchased a USB miniPCIe adapter, and ran the AT code from there. It is persistent, so then I installed the EC25 in my MikroTik (LHGR in this case), factory defaulted it, and the LTE interface came up.
I got the USB miniPCIe adapter on Amazon for ~$9:
https://www.amazon.com/dp/B00ZUE12TY/re ... kEbXPPRNDB
*Note, I don't have the adapter working with the R11e-LTE-US boards yet, so there may be a better one to purchase.
I needed the drivers from Quectel, and they provide them through distributors. I got the files here:
https://sixfab.com/product/quectel-ec25 ... te-module/
I've been very happy with the performance, but it would be much nicer if MikroTik displayed the PCI and band info in the GUI. Also, band locking and PCI locking have to be done by AT command, which is cumbersome. I'm also having challenges clearly identifying available connections, but I'm still working on that.
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Mon Jan 27, 2020 6:21 pm
by WeWiNet
I would also like to use EC25 in LTAP-Mini.
In the past it was not recognised at all and I stopped.
Now I came across this forum entry and it gives me new hope...
How did you physically connect the module? Did you have to tape some pins?
If one of you could share the setup, would be highly appreciated (included setup commands).
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Sat Aug 29, 2020 6:33 pm
by tenedos
Reviving an old thread. A lot of useful information, thank you.
I am trying something similar, trying to add EC25-AF as a secondary modem to LTaP LTE6. Cannot get the PPP interface working, nor can I change it to an LTE interface.
More details below:
[admin@MikroTik] > port print
Flags: I - inactive
# DEVICE NAME CHANNELS USED-BY BAUD-RATE
0 serial0 1 Serial Console auto
1 gps 1 115200
2 1-2 usb3 1 PPP <ppp-out1> auto
[admin@MikroTik] >
And, I can see the modem:
[admin@MikroTik] > system resource usb print
# DEVICE VENDOR NAME SPEED
0 1-0 Linux 3.3.5 xhci-hcd xHCI Host Controller 480
1 2-0 Linux 3.3.5 xhci-hcd xHCI Host Controller 5000
2 1-2 Quectel EC25-AF 480
3 1-1 MikroTik R11e-LTE6 480
[admin@MikroTik] >
The problem (I think is with the channels), I can't get any channel to work except for 0 and it doesn't accept any AT commands:
[admin@MikroTik] > interface ppp-client print
Flags: X - disabled, R - running
0 R name="ppp-out1" max-mtu=1500 max-mru=1500 mrru=disabled port=usb3 data-channel=0
info-channel=0 apn="fast.t-mobile.com" pin="" user="" password="" profile=default phone=""
dial-command="ATDT" modem-init="" null-modem=no dial-on-demand=yes add-default-route=yes
default-route-distance=1 use-peer-dns=yes keepalive-timeout=30
allow=pap,chap,mschap1,mschap2
[admin@MikroTik] >
And when I go to serial terminal for channel 0, nothing happens, and I cannot type any AT command:
[admin@MikroTik] > system serial-terminal port=usb3 channel=2
failure: no such channel
[admin@MikroTik] > system serial-terminal port=usb3 channel=3
failure: no such channel
[admin@MikroTik] > system serial-terminal port=usb3 channel=1
failure: no such channel
[admin@MikroTik] > system serial-terminal port=usb3 channel=4
failure: no such channel
[admin@MikroTik] > system serial-terminal port=usb3 channel=0
failure: port's channel is already in use
[admin@MikroTik] > interface disable ppp-out1
[admin@MikroTik] > system serial-terminal port=usb3 channel=0
[Ctrl-A is the prefix key]
[Q - quit connection]
[A - send Ctrl-A prefix] [R - autoconfigure rate]
Welcome back!
[admin@MikroTik] >
Any thoughts or suggestions?
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Tue Sep 01, 2020 4:02 am
by uberdome
If you have a USB adapter for the miniPCIe LTE card, try connecting it directly to your computer to change modes.
Otherwise, I would try removing the LTE6 modem, and go to factory defaults. See if anything comes up with just the EC25 connected.
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Wed Sep 02, 2020 10:05 pm
by tenedos
Solved the problem by upgrading to 7.1beta2, not sure why doesn’t matter ;-)
Re: how to send AT commands to EC25 LTE modem in LTAP Mini
Posted: Tue Sep 15, 2020 2:09 am
by SiB
EC25-AFX works with MBIM in ROS7.1beta2 just from R0
7A0
3 :
model: QUECTEL Mobile Broadband Modul
revision: EC25AFXGAR07A03M1G