if you manage to get the AT Command, for EM120R you have to disable sim pin detection. According to the AT Command document by Quectel, EM120R sim pin detection was enable by default.
You cannot send AT-Command with modemmanager. For RM520-GLAP it need quectel driver to work. In my case with GLAP i’ve using this firmware for manage the module mobile network connection and AT Command.
Thank you so much! I was able to get this image going : ). I was able to get the AT commands figured out to the DUN port. But cannot figure out how to set up the internet connect and also set up my TTL values.
To enhance user experience, I recommend starting by changing the theme to “Argon” for a more user-friendly interface.
Setting Up an Internet Connection:
Open the Modem Configuration
Go to the menu: Network > Modem. This will open the luci-app-modem interface, where you can access all necessary functions for configuring your modem connection, including AT Commands, connection settings, and more.
Configure the Dial Settings
Select the Dial tab. Here, you can set up your Internet connection profile, add the ISP’s APN (Access Point Name), and other settings.
Enter your ISP’s APN manually in the APN Selection section.
For GLAP, choose Quectel CM as the connection manager.
Activate the APN Profile
Once you’ve finished adding your APN profile, enable it. The Quectel CM connection manager will handle the rest of the connection process automatically.
For TTL you have to change it manually inside the file(10-custom-filter-chains.nft). You can edit the TTL using Tiny File Manager(user:admin:pass:admin). By default the TTL was set to 64. You also can add any interface you want to the file.
Changing TTL Settings:
Locate the Configuration File
Navigate to the file named 10-custom-filter-chains.nft in the directory: etc/nftables.d.
Find the TTL Chains
Look for the following lines in the file:
chain mangle_postrouting_ttl64 {
type filter hook postrouting priority 300; policy accept;
oifname {"rmnet_mhi0.1","wwan0"} counter ip ttl set 64
}
chain mangle_prerouting_ttl64 {
type filter hook prerouting priority 300; policy accept;
iifname {"rmnet_mhi0.1","wwan0"} counter ip ttl set 64
}
Add Additional Interfaces (If Needed)
To add additional interfaces, include them within the curly braces in both oifname and iifname sections. For example:
Have people figured out on how to run a RM520NGLAP in the BPI-R4? Did the SIM card in slot 1 work? (I’m still waiting for a SIM tray because none was delivered with mine.) Are you then “stuck” on GFriendWRT or is there a way to persist configuration so that you can get stock OpenWRT to work after a reboot?
Alright, with qmbitat I was able to play around with AT commands (to change SIM state and to reset the card) and it needed to be explicitly enabled in modemmanager (nmcli -m any -e). However now I have an mhi_hwip0 that has sane IP addresses from my provider but I’m sending data to it but there aren’t any responses (no matter if v4 or v6). Did others see that as well? O_o