Community discussions

MikroTik App
 
WhileECoyote
just joined
Topic Author
Posts: 6
Joined: Fri Oct 13, 2023 8:25 pm

LTE AT Commands with special characters? RB912UAG-2HPnD

Fri Oct 13, 2023 8:33 pm

Hi,

I have got a RB912UAG-2HPnD with a non Mikrotik ME906s-158 LTE Card which works fine, despite IPv6

After some googling I found that you have to edit the PLMN List to get it working with T-Mobile in Germany 26201

https://toreanderson.github.io/2018/12/ ... -ipv6.html

I remebered RouterOS can talk to the modem as well on the CLI with the modem, like mentioned in the Mikrotik Wiki:
[admin@MikroTik] > /interface lte at-chat lte1 input="AT*mrd_imei\?"               
For "Simple" formats, that works fine, but

AT^PLMNLIST=1,"99999","26201"  
results in a syntax error somewhat (generated from RouterOS, not from the modem)
I tried to escape the command, but no success so far...
AT\^PLMNLIST\=1\,\"99999\"\,\"26201\"  
I think the Problem could be the ^-Symbol

Any thoughts how to correctly escape it to make it work with routeros?

Else, I have to set it up elsewhere and configure it.... but, would be nice if it would be possible with RouterOS

Ah - BTW: its the latest stable RouterOS 7 Version installed

Thanks a lot for your help!

Cheers

WEC
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4326
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: LTE AT Commands with special characters? RB912UAG-2HPnD

Fri Oct 13, 2023 10:30 pm

Only the double-quote should need to be escaped in your example, so this should work (assuming the AT command part is right):
/interface lte at-chat lte1 input="AT^PLMNLIST=1,\"99999\",\"26201\""
What also possible is that command doesn't return OK or ERROR, in which case you can add a "wait=no" to the above command.

Technically speaking, in V7, you don't need to escape the "?" but doing so is okay.
 
WhileECoyote
just joined
Topic Author
Posts: 6
Joined: Fri Oct 13, 2023 8:25 pm

Re: LTE AT Commands with special characters? RB912UAG-2HPnD

Sat Oct 14, 2023 10:13 am

Thanks! just works fine.

Cheers

WEC

Who is online

Users browsing this forum: Partial, wrkq and 10 guests