Community discussions

MikroTik App
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

KB: LTE by SiB

Tue Sep 07, 2021 7:28 pm

Content this thread/topic is a live documentation. It will be edited with new information becomes available.
@Mikrotik: Please create a M11G with m.2 slot for LTE/5G modules ! We wait for new line of 5G devices like SXTGR 5G, LHGGR 5G, LDFGR 5G - 1Gb and m.2 slot with 4x4 MIMO - we wait.

Table of Contents
  1. How to correctly diagnose & collect LTE logs for support
  2. Additional Scripts for LTE
  3. Antennas
  4. Acessories like m.2 adapters
  5. HowTo configure X LTE module
  6. About LTE, CA and MIMO
  7. Reserved
  8. Reserved

Remember fist do upgrade a RouterOS and separate a lte module upgrade.
List of latest version of firmware per lte module:
  • R11mL-RG502Q-EA (Chateau 5G) RG502QEAAAR11A04M4G <- first m.2 form factor
  • R11e-LTE12 (EG12-EA) EG12EAPAR01A10M4G
  • R11e-LTE6 v028
  • R11e-LTE MikroTik_CP_2.160.000_v020
  • R11e-LTE-4G v9
  • R11e-LTE-US R11eL_v16.02.183961 (R11eL_v05.04.193841 probably show wrong info at ros7)
  • SXT LTE 3-7 |-> chip:2.0 fw:0.1.2.4
Documentation: https://wiki.mikrotik.com/wiki/Manual:I ... re_upgrade
Try this:
# Check your and latest firmware version
/interface lte firmware-upgrade lte1
# Do upgrade by:
/interface lte firmware-upgrade lte1 upgrade=yes

1) How to correctly diagnose & collect LTE logs for support

1A) Enable logging of LTE, regular logs.
/system logging action remove [find where name=support]
/system logging action add name=support target=memory memory-lines=16384 
/system logging remove [find where topics~"lte"] 
/system logging add action=support topics=lte

1B) LteLogger2 - optional
Final script as job in loop will monitor current lte parameters and log them as warning, blue entry. Check picture below.
You will see when BTS/Tower/eBN will change, when ca-band is re-assign etc., very useful in diagnosis.

Download proper script file and drag&drop it to WinBox.
You see new scheduler and script items. Scheduler is a software watchdog who watches over a script job to be still running in loop.
Installation of that file is by /import in terminal, remember that TAB key do complements of syntax :
/import ros6-lteLogger2.rsc

Example:
left - show one lte down
right - filtered ca-band logs show flapping with 2CA.
fHPSP8g6JS.png

That give you better perspective to see if something is change or not with LTE general.
Now we will discuss about your case.

1C) Problem replication

We are waiting for your problem to occur. If you know what do to generate/replicate that problem, then do it now.
btw, You can restart the device to accumulate fresh logs.

1D) Generate supout.rif

To report case to MikroTik support team you need generate supout.rif file.
In terminal just type:
/system sup-output

or in WinBox use from left main menu a "Make Supout.rif" button > Start button.

In WinBox main menu, the "Files" button show you local files and you can use Right Mouse Button (know as RMB), select Download to save file to your computer.

Remember that you can do additional screenshot-s, take a movie etc.. of problem.

1E) Report case

Try contact with your local distributor first, they should help you in first place.
Case reported directly to MikroTik should be via support@mikrotik.com or support portal at http://help.mikrotik.com

P.S. If you want open .rif file you can do that at https://mikrotik.com/client/supout but this is a separed credentials, you must first register here.
You do not have the required permissions to view the files attached to this post.
Last edited by SiB on Wed Apr 20, 2022 1:09 pm, edited 16 times in total.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:29 pm

Last edited by SiB on Sun Sep 12, 2021 9:08 pm, edited 4 times in total.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:29 pm

Last edited by SiB on Tue Sep 07, 2021 8:21 pm, edited 1 time in total.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:30 pm

Works with 5G Quectel units, they are USB2.0 what limit us to 480Mbps.

https://ebay.us/U6yzf8 <- only option without SIM slot
https://aliexpress.com/item/32861939520.html
https://aliexpress.com/item/1005002374313940.html

Remember: M.2 KEY B only are for LTE
Last edited by SiB on Mon Sep 20, 2021 12:28 am, edited 2 times in total.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:30 pm

mPCIe:
Quectel EP06-E <- Full HowTo
Telit LM940/LM960 <- Full HowTo
Huawei ME909s-120 ussd codes

m.2:
Quectel EG12/EM12 CellLock
Quectel RM502Q-AE (Global with US) - RouterOS 7.x with MBIM - WinBox not show a 5G details, CLI and AT must be used
Quectel EM160R-GL (fw EM160RGLAUR02A08M4G_0.001.01.001) - --//--

General:
USB EndPoints Limits, why R11e-LTE-US/R11e-LTE6 not work as secondary card
Last edited by SiB on Mon Sep 13, 2021 10:07 am, edited 6 times in total.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:31 pm

About LTE, CA and MIMO

Content will be edited soon.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:32 pm

Reserved
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Sep 07, 2021 7:36 pm

Reserved
 
brg3466
Member Candidate
Member Candidate
Posts: 181
Joined: Sat Aug 01, 2015 7:29 am

Re: KB: LTE by SiB

Fri Sep 24, 2021 2:15 am

Hello SiB,
Just find my LtAP mini LTE US kit, the modem version is newer than you mentioned above, see below.
But somehow, I can never update it to the newer version. Once you try to upgrade, the LTE lose its connection to internet.
brg3466, [23.09.21 16:08]
[brg3466@LtAP] > /interface/lte/firmware-upgrade lte1 once
  installed: R11eL_v05.03.183961
     latest: R11eL_v05.04.193841
[brg3466@LtAP] > /interface/lte/firmware-upgrade lte1 upgrade=yes
  status: checking
-- [Q quit|D dump|C-z pause]
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Fri Sep 24, 2021 10:22 am

the modem version is newer than you mentioned above, see below.
Thanks, forum search show that version too as latest. Corrected. Thanks for info.

But somehow, I can never update it to the newer version. Once you try to upgrade, the LTE lose its connection to internet.
-LTE and -LTE-US is know as module who cannot do upgrade from own internet. Those modules can only do upgrade by itself mobile connection.
Remember that this should be by your ethernet connection to unit, by wifi you can be disconnected because Win10 in offline disconnect wifi and you not have access to winbox... this can be problematic some times.

When you write to MikroTik directly then they:
  • grab logs and maybe they want connect to your unit to fix it internally in magic way
  • share you a firmware package with instruction and you can install new firmware by usb-mPCIe adapter. USB extension cable with usb adapter give you a way to not disconnect this antenna cables.
Summary, You must write to support. support@mikrotik.com or help.mikrotik.com

EDIT:
R11eL_v05.03.183961
R11eL_v05.04.193841
exist probably sometimes for ros7....
the Original source have still have the R11eL_v16.02.183961version as latest one.
R11e-LTE-US R11eL_v16.02.183961 (R11eL_v05.04.193841 probably show wrong info at ros7)

If you want know answer, write directly to MikroTik.
 
BillyVan
newbie
Posts: 41
Joined: Tue Sep 04, 2018 10:29 pm
Location: Greece

Re: KB: LTE by SiB

Sat Sep 25, 2021 5:11 pm

i try several times to import ros-7-lteLogger2.rsc
from terminal but i receive ...expected end of command (line6 column 13)

procedure
copy on files and from terminal
/import ros7-lteLogger2.rsc


ros version 7.1.rc4
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Mon Sep 27, 2021 1:48 pm

ros7.1rc4 not work with importing a /system scheduler in general. viewtopic.php?f=1&t=178704&p=882451#p882451 SUP-61613
WorkARound for RouterOS 7.1rc4

Create a system scheduler with interval=00:01:00 and code:
#Script WatchDog for script name:
local ScriptName lteLogger2
local ScriptRuningInstances [:len [system script job find script=$ScriptName]]
if ( $ScriptRuningInstances = 0) do={/system script run $ScriptName};
if ( $ScriptRuningInstances = 1) do={};
if ( $ScriptRuningInstances >= 2) do={system script job remove [find script=$ScriptName]};

Next is to run this code in terminal who create you a final script.
/system script
remove [find name=lteLogger2]
add name=lteLogger2 source="#:local watchItems pin-status,functionality,registra\
    tion-status,current-cellid,enb-id,sector-id,phy-cellid,access-technology,primary-band,ca-band,rssi\r\
    \n:local watchItems current-cellid,enb-id,primary-band,ca-band\r\
    \n:local watchFreq 3s\r\
    \n:local lteInfo\r\
    \n:local prevLteInfo ({})\r\
    \n:while (true) do={\r\
    \n\t:do {:set lteInfo [/interface lte monitor lte1 once as-value]} on-error={}\r\
    \n\t:foreach m in=\$watchItems do={\r\
    \n\t\t:if ((\$lteInfo->\$m)!=(\$prevLteInfo->\$m)) do={\r\
    \n\t\t\t:put (\$m.\": \".(\$prevLteInfo->\$m).\" -> \".(\$lteInfo->\$m))\r\
    \n\t\t\t:log warning (\$m.\": \".(\$prevLteInfo->\$m).\" -> \".(\$lteInfo->\$m))\r\
    \n\t\t\tlocal mpprev (\$prevLteInfo->\$m);\r\
    \n\t\t\tlocal mpnext (\$lteInfo->\$m);\r\
    \n\t\t\t:set (\$prevLteInfo->\$m) (\$lteInfo->\$m)\r\
    \n\t\t\t}\r\
    \n\t\t}\r\
    \n\t:delay \$watchFreq\r\
    \n\t}\r\
    \n\r\
    \n"
 
negge
newbie
Posts: 43
Joined: Fri Jul 10, 2009 11:05 am

Re: KB: LTE by SiB

Sun Oct 24, 2021 1:34 pm

Works with 5G Quectel units, they are USB2.0 what limit us to 480Mbps.
Do you mean that _all_ mini-PCIe -> M.2 adapters on the market are limited to USB 2.0 speeds? I'm not quite sure where USB 2.0 comes into the picture since the adapter is passive? I'm concerned that if I'd get an adapter + a Quectel 5G modem I could reach up to gigabit speeds on 5G.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Wed Dec 08, 2021 7:25 pm

I think SiB was trying to show the "well travelled" path to 480Mb/s. Do you really have 1Gb service via LTE today? No 5G modem/adapters alone is going to get you those speeds... the modem modules spec'd speed is a clean RF environment & some 5G band require using more specialized antenna. All totally possible with Mikrotik, but the adapter being just one element.

I haven't tried the M.2 adapter approach. Technically correct USB3 should "passthrough" but subtle in keying/pinout/etc/etc. but you really need to find the right adapter, for right hardware. I almost went the M.2 adapter route years back, but seem like the adapters might be a PITA ;). So I been using Telit 960s since they support 5G in miniPCIe. But the Quectel makes sense since that's what Mikrotik seems to using in newer design, so good shot of a Quectel being well supported.

You'd of course need the a Mikrotik with 1000Mb ether and the miniPCIe has to be USB 3.0 – this approach ain't for the faint of heart.

Personally I'm waiting to see if MT announces new hardware now that V7 is out to avoid this.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Wed Dec 08, 2021 7:47 pm

@SiB, one tip to add is using a "function macro" for the "at-chat" command...

I use this to avoid typing the "/interface lte at-chat lte1 input="... all the time:

 :global AT do={:put "$([/interface lte at-chat [find running] input="$1" wait=yes as-value]->"output")"}

What this does is allow you just use $AT followed by the modem AT command you want to run. So for example, this runs "ATI" against the modem:

[admin@MikroTik] > $AT ati
Manufacturer: MikroTik
Model: R11e-LTE-US
Revision: MPSS: R11eL_v12.09.171931 APSS: R11eL_v02.14.173531 CUSTAPP: 
SVN: 07
IMEI: XXXXXXXXXX
+GCAP: +CGSM
OK

You can use $AT with some of the AT commands from the Mikrotik docs. Note that any command that uses anything but letters or numbers MUST be put in quotes, like $AT "AT*cell=\?":

[admin@MikroTik] > $AT "AT*cell\?"
*CELL: 0,0,0,0,0
OK

I use this all the time, so thought I'd share since it's pretty simple to cut-and-paste that before dealing with a LTE modem.

Additional notes about at-chat in general:
  • [find running] means it will use the first active modem (so if you have two modems, you can do something like AT1 and AT2 for each modem respectively and specify the actual interface in the "function macro").
  • By using "as-value" and ->"output", the text is not parsed, so newlines in command output are preserved. For example, using "as-value" methods get you the top result, just letting "at-chat" print it removes newlines (second output) – since some AT command use formatted output, like Telit's AT#FIRMWARE or Sierra AT!LTEINFO:
    [admin@DeltaAlpha] > $AT "AT#FIRMWARE"
    HOST FIRMWARE  : 32.00.005_1
    MODEM FIRMWARE : 4
    INDEX  STATUS     CARRIER  VERSION         TMCFG  CNV       LOC
    1                 Generic  32.00.115       1025   empty     1
    2      Activated  Verizon  32.00.124       2020   empty     2
    3                 ATT      32.00.144       4021   empty     3
    4                 TMUS     32.00.153       5004   empty     4
    
    [admin@DeltaAlpha] > /interface/lte/at-chat [find running]  input="AT#FIRMWARE"
      output: HOST FIRMWARE : 32.00.005_1 MODEM FIRMWARE : 4 INDEX STATUS CARRIER VERSION TMCFG CNV LOC 1 Generic 32.00.115 1025 empty 1 2 Activated 
              Verizon 32.00.124 2020 empty 2 3 ATT 32.00.144 4021 empty 3 4 TMUS 32.00.153 5004 empty 4 OK
    
  • For serial modems, at-chat is available via /interface/ppp-client for "serial" modems. This is only in newer versions, but allows same approach even if modem doesn't support the MBIM/ECM-style interface using by /interface/lte.
  • wait=yes is optional in this example, and undocumented by Mikrotik AFAIK. I believe it looks for an "OK" or "ERROR" before returning or timing out. Maybe someone else knows more exactly?
Last edited by Amm0 on Wed Dec 08, 2021 10:39 pm, edited 1 time in total.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Wed Dec 08, 2021 7:48 pm

@SiB, some additional notes about V7 be useful. Posted my thoughts here to avoid new topics...

If someone got to this thread, without reading the much revised/improved docs on LTE, they should read those first.
  • The new Peripherals page on help.mikrotik.com has more great information on supported hardware – it not same as old Wiki page, re-read if you haven't see it recently.
  • Once you see an LTE modem under /interface/lte in V7 & need to know how to configure it, see the new LTE page — this were the "APN" and other carrier specific things are done ONCE a modem is detect and in right mode for V7.


Some specific notes about V7:
  • If using a PPP/"ppp-out" cellular/LTE modem under V6, upgrading V7 may help a lot. Check Perpherals docs for specifics... But if your modem supports "ECM" or "MBIM" protocol, which most "4G" modem do...it may possible to see a speed boast by changing to using the "LTE interface" under V7. The long standing issue the PPP client interface (or "serial mode" in V7) is it has ~25Mb/s speed limit each way. If your modem can do MBIM or ECM, and your cellular service >25Mbs — while it's potential tedious to change modems in some cases, it may be worth the trouble. Again V7 is new YMMV.
  • In particular with using Sierra Wireless modems in MBIM mode under V7, signal data can be reported once running as an LTE interface. In our case, the Sierra MC7[4|5]xx modems, with right AT$USBCOMP / AT$UDUSBCOMP setting, you'd see not only higher speeds from a software/config change, BUT also useful RSSI etc data that make it even more possible by tuning the antennas. This may be true for other modems where there is only one AT port (e.g. on a /interface/ppp-client interface data-channel is same as info-channel – so can't be on internet and reading signal under V6). For us, Sierra modems under V7 have been pretty stable since at least "beta3" a while ago. YMMV.
  • LTE interface's MTU may need to be adjusted... In some/most cases the LTE networks MTU may be lower than than standard Ethernet MTU of 1500. Mikrotik uses 1480 typically, but this may still not be low enough in all cases. If the MTU is wrong, packet fragmentation can happen, which slow up the network. This generally prevent by PMTUD but it best to set the MTU to match the cell carrier's network – with each different APN potentially having a different MTU, even from same carrier. For example, typically "static IP" services have much lower MTUs, 1420-1440. For MBIM modems, in V7, there is log entry where the network provides the desired MTU, so looking in logs may tell you what MTU to set...
    /log print where message~"mtu"
    # output: dec/24 14:23:08 lte,info lte2 mbim: network advertises lower mtu: 1428
    
    In this case, 1428. This value can be used to set the LTE interface MTU – it is NOT automatically set, the MTU information is just logged as of 7.2rc1. You can also check with your LTE carrier's support (which may not be easy) to find out what MTU is used the SIM/APN.
  • /interface/lte/settings mode=... is now where the protocol used to communicate with a cellular modem is controlled. This is the replacement for /port firmware ignore-directip-modem=(yes/no). It's this setting that may have to be adjusted to get a some to work. You likely add'l AT commands to also change the modem internally to use a different protocol, in addition to this setting. Check docs and forum for specifics what to do for a particular modem.
  • /interface lte info does NOT work in V7 – this was changed to /interface/lte/monitor in V7. So if any script read LTE signal data from a script (or /system/schedule) needs to get updated to use "monitor" not "info". V7 accept the spaces, so "/interface lte monitor" works, so search-and-replace "info" -> "monitor" works to convert a V6 LTE monitoring script.


    V6 method to control how ROS detects a cellular/LTE modem:
    [admin@MikroTik] > /port firmware print
                  directory: firmware
      ignore-directip-modem: no
    

    vs. V7 location (which makes a whole lot more sense):
    [admin@MikroTik] /interface/lte/settings> print
               mode: auto
      firmware-path: firmware
    [admin@MikroTik] /interface/lte/settings> set mode=
    auto  mbim  serial
    
  • Another V7 vs V6 is the "?" key. In V6, this must be escaped in AT commands like "\?" (otherwise a help screen in V6 appears). In V7, no backslash \? is required in the AT commands.


Some general LTE worth repeating – this apply to both V6 and V7:
  • Check your firmware version. Most Mikrotik support OTA updating. For Mikrotik modems (other than R11e-LTE-US running v12), it's pretty simple to do this – this may be a very quick way to see more out of your existing setup, since carriers settings etc change which sometimes helps with speed or connectivity issues:
     /interface/lte/firmware-upgrade [find running] upgrade=yes
    For third-party modems and some Mikrotik modems, you may need a PC to upgrade modems as they can't be done OTA from the Mikrotik.
  • This isn't V7 per se, but checking /ports to see if a modem shows up & how many ports & USB identifiers is a good thing to do a first troubleshooting step. Importantly sometimes the USB device IDs may effect which mode a modem operates in.
  • Similarly, some Mikrotik hardware (RB9xx, perhaps others) have a "shared USB" bus between an internal modem and extra USB port – in some cases you can only use one USB port at time & it must explicitly configured in ROS. Again see Mikrotik's new Peripherals page for specifics.
Notes (edited 1/5/2022):
- added MTU information
- added note about "info" is not "monitor"
Last edited by Amm0 on Wed Jan 05, 2022 3:50 pm, edited 2 times in total.
 
iScape
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Sun Dec 23, 2012 1:23 am

Re: KB: LTE by SiB

Sun Dec 12, 2021 11:40 pm

@SiB - up to you if you want to delete it for cleanliness sake.

FYI, speaking of R11e-LTE6 v029 and it's "jumping" on/off CA2 behavior (due to inability to lock CA part, just the primary one). So, I've got exactly the same behavior, B7 as primary and as "CA band" I've got constantly changing B3 to/from B20 with loss of CA2 etc.

Locking B3 as primary lead to quite stable connection with stable CA2.

I'm still trying to catch lock-ups/freezes (as I'm not using the device constantly and I don't have proper load/monitoring environment set up), but so far there were none.

With external 8 dB antenna placed outdoors attached to my Audience LTE6 kit I've got stable 90+Mbps performance for download.
Indoors, the difference between external/internal antenna is not that noticeable and I do get stable 50+Mbps if device is positioned properly.
 
ko20
just joined
Posts: 23
Joined: Mon Sep 23, 2019 6:22 pm

Re: KB: LTE by SiB

Thu Jan 13, 2022 12:16 pm

HI,

I have few question regarding MIMO4x4 in LTE.
So far I was only using radio solution in LTE with MIMO 2x2. So BTS is broadcasting with 2 antennas with 2 polarization planes, -45deg and + 45deg. I antennas with same orientations for my router.
But what happens in case of 4x4? Is 4 antennas broadcasting in 4 different planes? Is then +/-45, 0 and 90? If using 2 dual antennas shall I turn one by 45deg for best results?

Currently using Telit LM960. Described as MIMO 4x4, but on bands 1,3,7,20 in my case, non of them works in MIMO 4x4 according to documentation :-(
2 antenna connectors works with 2600Mhz MIMO 2x2, 2 others with 800-2100Mhz MIMO 2x2. If I would buy RM502Q-AE, on which bands it will work with 4 streams, MIMO 4x4 with 4CA?

br
marcin
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12979
Joined: Thu Mar 03, 2016 10:23 pm

Re: KB: LTE by SiB

Thu Jan 13, 2022 9:18 pm

When it comes to 4x4 MIMO, base stations usually use two 2x2 MIMO antennae, placed a few lambda apart (either horizontally or vertically). With low-frequency bands (B20 is 800MHz which translates to wavelength of around 0.37m) a few lambda is a metre or three, which makes 4x4 MIMO a bit unpractical. High band is different (B7 is 2.6GHz or 11 cm), there spacing of a few lambda is somehow manageable.
These two antennae may share same case so it's not apparent that it's actually two 2x2 antennae.

What one does with antennae atrached to user equipment is up to individual's imagination.
 
BitHaulers
Frequent Visitor
Frequent Visitor
Posts: 59
Joined: Thu Jun 21, 2018 11:23 am

Re: KB: LTE by SiB

Sun Jan 16, 2022 6:42 pm

I've got strange errors with multiple Quectel modems while they are aggregating on AT&T and Verizon (TMO is fine), and the existing LTE logging provided by RouterOS is inadequate to find out what's going on (per Quectel's engineers). Quectel says I need to use their QLogger application to connect to an exposed DM port on the modem. RouterOS 7.2rc1 says it has an exposed diagnostic port for all LTE modems now. This sounds like the DM port, but there is no information about this at all.

I see nothing in the GUI on how to use this. I'd like to connect QLogger on a Windows box to an LTE radio running 7.2rc1 to collect these errors, so they can make firmware adjustments. So I need to configure this exposed port, and set it up to export on a remote logging server to give to Quectel so we can resolve this chronic issue.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Mon Jan 17, 2022 1:33 pm

@BitHaulers, next time create a new topic, rather post half the question in the v7.2rc2 thread and half someplace else (e.g. here)...


I guess if Quectel is involved, it's not a simple firmware upgrade. But I'm curious what specific issues/error your seeing with CA using ATT/VZW... "strange errors" isn't quite helpful.

Maybe the QLogger may help, but it's typically not some panacea to fix problems – just log viewer for very detailed LTE protocol stuff, so you may be like looking for a "needle in haystack". YMMV.
 
zucllinux
just joined
Posts: 15
Joined: Thu May 17, 2012 7:55 am

Re: KB: LTE by SiB

Sat Feb 26, 2022 2:30 pm

Hello SiB,
I had just bought a new 5G LTE module:RG200U-CN for my RBM11G routerboard. It’s a new Production with miniPCIE interface.And it supports well in China in 5G NR.
But when I pluged into my Board,it doesn’t work well,I can’t see a New USB peripheral device just as My EC20 do. And I can’t see a LTE interface also.
I hope to use this module,Please,Can You Help Me?
Thank you so much.
微信图片_20220226104117.jpg
You do not have the required permissions to view the files attached to this post.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Sat Feb 26, 2022 3:38 pm

While perhaps this could work in V6, you'd should be using V7 as it has WAY better LTE support.

Before the LTE interface can appear, the modem needs to be found on the USB bus & have a serial port (which is used to send AT commands to control modem). To do that:
  • . In winbox, under System>Ports (or CLI /port/print), see if you see your modem there and pay attention to the channels, you need a "channel count" > 0. With a port and channel, you can try /system/serial-terminal usbX channel=X and see if any of the channels return a response to "AT" (e.g. repeat it with different channel numbers, starting at 0). That be the first step to being able to switch any modem setting using AT commands. If one works, the next step may be issuing some "AT" commands to switch it to use "MBIM" or "ECM" mode. One of those mode is what's going to be needed for the "LTE interface" to appear in RouterOS. Here is where you'd have to look at the AT manual or search the forum for Quectel since most modems from the same generation have similar AT commands.
  • The other thing is your modem may be USB 3.0 (very likely here), but the Mikrotik board may only support USB 2.0. I'm not 100%, but believe the RBM11G support only USB 2.0. If it's not showing in System>Resouce>USB (or CLI "/system resource usb print") that's something to consider. Some modems have AT command to switch the USB bus type, but not all.
  • Again, not sure on the RBM11G, but you may want to confirm you do NOT see "USB-Type-A" if you use "/system routerboard usb print" – if there is a setting for type= it should be "type=mini-PCIe".
If that doesn't help, you may want to start a new topic with more specifics on the output of above commands with a specific title.
 
zucllinux
just joined
Posts: 15
Joined: Thu May 17, 2012 7:55 am

Re: KB: LTE by SiB

Wed Mar 02, 2022 5:32 pm

thank you so much Amm0.
I can see the module in USB list now.But no port listed,And I try to use /system/serial-terminal serial channel=0 ,but AT commands doesn't reply either.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Wed Mar 02, 2022 8:31 pm

I'm not the expert on the Quectel modems, so I can't be much help. But the fact you see in /system/resource gives you hope. Likely some AT+QCFG command that might cause it to be detected, perhaps AT+QCFG="network_interface",1,1 might do it but doubt that's the only thing. Specifically, 5G modem can operate in "mPCIe" mode, and this might be the problem here... While you're using a miniPCIe slot on the Mikrotik, the PPP/LTE interface ONLY use "USB mode" from the miniPCIe.

If you haven't already tried V7, that be recommended – there is a lot more support for LTE in V7. In V7, you could try "/interface/lte/settings/set mode=serial" to see if any ports show up. Again a hard boot is generally a good idea after changing that. To revert that change, "/interface/lte/settings/set mode=auto".

Other than I'd search around the forums for other articles about Quectel – most should apply. I do think you may need to get the modem into "USB mode", not "miniPCIe" mode – even though your using the miniPCIe slot on your Mikoritk... So the "serial" mode above is just to see if you can get to an "AT" command prompt to even control the modem - /ports needs to show >0 channels. Otherwise, you'll need use take it out and use a PC to program it – and still no guarantees it work. BUT generally there is some mode, some adapter, etc. to make these things work – just may not be easy.
 
zucllinux
just joined
Posts: 15
Joined: Thu May 17, 2012 7:55 am

Re: KB: LTE by SiB

Thu Mar 03, 2022 3:33 pm

yes,u r right."So the "serial" mode above is just to see if you can get to an "AT" command prompt to even control the modem - /ports needs to show >0 channels."
but I try v7,but still don't figure it out.So Dispirtied.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Thu Mar 03, 2022 5:05 pm

yes,u r right."So the "serial" mode above is just to see if you can get to an "AT" command prompt to even control the modem - /ports needs to show >0 channels."
but I try v7,but still don't figure it out.So Dispirtied.
Since it shows up in /system/resources, that hopeful. And Quectel are used by Mikrotik, so good chance it could work. You are likely just a few "magic AT commands" away. But without an AT port, you can't try anything without taking modem out.

If you remove it from the Mikrotik, there are adapters to USB on a PC to get to the AT prompt from PuTTY on windows, or `screen` on Mac/linux. I can't say for sure, but 5G might default miniPCIe, not USB, mode. So the "bus type" needs to be USB in the modem. And a USB port configuration that support "MBIM". I just can't tell you the AT command for that modem – but you should be able to get a AT command manual that should have the clues.

You may want to open a ticket with Mikrotik at help.mikrotik.com. Still be stuck needing to re-program the modem on PC, but they may know more about your modem. If you open a case, make you "Make supout.rif" from winbox and attach it. Before generating the supout.rif, you may want to enable all lte logs with:
/system logging add action=memory topics=lte
and reboot the system before collecting the supout.rif (so they have logs of the startup, which is where the ports be detected)

Also, under /system/resource/usb the "Device ID" and "Vendor ID" should be shown, this is what's used to determine the ports Mikrotik will uses. And, AT commands can cause these USB IDs to change...which, if matches ones Mikrotik/Linux knows, it will detect the ports...and with valid /ports, the LTE interface will appear. The modem sets these based being in MBIM, CDC-ECM, etc USB modes being set, so you don't need to set the ID yourself (and can't) – but the modem needs to be in a USB mode that aligns with USB IDs the Mikrotik's looking for is essentially the trick here.
 
zucllinux
just joined
Posts: 15
Joined: Thu May 17, 2012 7:55 am

Re: KB: LTE by SiB

Sat Mar 12, 2022 2:45 am

I had successfully made the module appeared. I used a OPENWRT to boot my RM11G routerboard, and I found the AT interface ttyUSB2 ,I can talk to RG200U-CN module now.

And I had use AT+QCFG=”usbnet”,2 command succeeded to change the module to mbim mode.

Then I reboot back to ROS 7.1,and it could see the LTE interface now.

But still, I can’t made the interface up, Maybe you could help me to acceslate the progress.
Thanks Amm0.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: KB: LTE by SiB

Sat Mar 12, 2022 3:22 am

I used a OPENWRT to boot my RM11G routerboard, and I found the AT interface ttyUSB2 ,I can talk to RG200U-CN module now.
Well...booting the RB to OpenWRT to get the serial port – now that's cleaver! If ModemManager (indirectly NetworkManager) works, and the Mikrotik doesn't that be a Mikrotik bug.

And I had use AT+QCFG=”usbnet”,2 command succeeded to change the module to mbim mode.
Yup, that get it to MBIM USB mode for V7, likely what you'd want.

But still, I can’t made the interface up, Maybe you could help me to acceslate the progress.

Here is where SiB's logging stuff comes in handy at the start of this thread. For quick use, you can add System>Logging like so:
/system logging add action=memory topics=lte,!packet

Now you may just need to set the APN in Interface>LTE>APN Profile in winbox to the correct value for your carrier/SIM card. If "Use Network APN" is checked, uncheck that if you set the APN (it may do this for you in 7.2rc4) – if it's uncheck and you're unsure of the APN to use, you can TRY to enable "Use Network APN" (it mean use the values from the SIM card but it doesn't always work).

If you see the LTE interface, it's likely something in the APN profile (or maybe the antennas, LTE network, RF stuff itself). Although it may be possible more AT commands are needed, but the Mikrotik logs should give you some clues.
 
zucllinux
just joined
Posts: 15
Joined: Thu May 17, 2012 7:55 am

Re: KB: LTE by SiB

Mon Mar 14, 2022 3:37 pm

When I plugged four antena to the RG200U-CN,it can work !But not perfect, I wonder if someone can help me to improve the situation. I had request a support case to mikrotik's pro team, I hope something good happen soom.
20220314.txt
You do not have the required permissions to view the files attached to this post.
 
User avatar
SiB
Forum Guru
Forum Guru
Topic Author
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: KB: LTE by SiB

Tue Mar 15, 2022 11:09 am

Logs not give many infor about antenna.
Now when it's can connect to operator you can only check the signals with differ connection of antenna. Connect it for your Bands setup.
With 5G.. it's complex how proper connect antenna :( This is like we have 3 answers from Quectel and we should re-connect to use differ speed per technology.
My answers for 5G units are base on Quectel support and a Hardware Manual - you should check this too.

Take a picture of your card because RG500 is a SoC chip and you have a card with it, directly at mPCIe without adapter I understand.

Check this post about mimo on Chateau (base at RG500) : viewtopic.php?t=162363&hilit=mimo#p800316
 
evbocharov
newbie
Posts: 26
Joined: Tue May 25, 2021 11:06 pm

Re: KB: LTE by SiB

Sun Jun 12, 2022 8:14 pm

Hello. Anybody know.
is whether a particular M.2 Key B-adapter's added height would still fit in the wAP R ac?
Thank you

Who is online

Users browsing this forum: No registered users and 11 guests