Giter Club home page Giter Club logo

modemfeed's Introduction

modemfeed

Is a repository for OpenWrt firmware worked by with LTE cellular modems.

Included next packages:

Package Dependies Description
luci-app-modeminfo modeminfo Dashboard for LTE modemds.
luci-app-smstools3 smstools3 web UI smstools3 package.
luci-app-mmcomig modemmanager band manipulation modem via mmcli utility.
luci-app-atinout atinout AT commands tool.
luci-app-cellled cellled LED cellular signal signal strength.
luci-app-ttl iptables-mod-ipopt,kmod-ipt-ipopt,kmod-ipt-nat6 TTL Change utility.
qtools libc tools manipulation Qualcomm chipset cellualr modems.
asterisk-chan-quectel asterisk asterisk plugin for SimCom and Quectel modems.
xmm-modem kmod-usb-net-ncm, kmod-usb-acm Intel XMM modem connect scripts
  • and more packages not included in official OpenWrt Repo.

How-to add repo and compile packages

Add next line to feeds.conf.default in OpenWrt SDK/Buildroot

src-git modemfeed https://github.com/koshev-msk/modemfeed.git

Update feeds and compile singe package

./scripts/feeds update -a; ./scripts/feeds install -a
make -j$((`nproc` + 1)) package/feeds/modemfeed/<package_name>/compile

or make menuconfig menu to include package(s) firmware in Buildroot

Precompiled packages

http://openwrt.132lan.ru/packages/21.02/packages/

modemfeed's People

Contributors

4iceg avatar akaryakinx avatar bam80 avatar chbgdn avatar csharper2005 avatar haris131 avatar inflabz avatar iuncuim avatar ixiumu avatar jackyczj avatar kodo-kakaku avatar koshev-msk avatar lutfailham96 avatar mdsdtech avatar mlevy94 avatar muziling avatar panda-mute avatar prusa-dev avatar qiuchengxuan avatar wolandmaster avatar y0518 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

modemfeed's Issues

modeminfo/Makefile incorrect module name

Incorrect module name line 100: instead
$(eval $(call SerialPlugin,meig,+kmod-usb-option,MEIGLink SLM750-R2/SLM820/SLM828,MEIGLINK))
there should be
$(eval $(call SerialPlugin,meig,+kmod-usb-serial-option,MEIGLink SLM750-R2/SLM820/SLM828,MEIGLINK))

(I think there is no need to create a pull request)

xmm-modem package - modem connection disappear on any other USB devices disconnection

Tested on different x86 hardware and OpenWrt 21.03/23.05:
Fibocom L860 with any USB modem/device if device disconnects, all xmm modems lose connection (IP).

Seems that problem in "01_xmm.sh" file, if comment section:

	if [ "$ACTION" = remove ]; then
		proto_set_available "$cfg" 0
	fi

then problem with disappearing of XMM modems is fixed, but when send AT+CFUN=1,1 on XMM modem, old IP stuck and did not refresh. I have found, that variables $proto $cfg is empty, but i can't found any way to fix that.

Need to fix that file, because for now on USB disconnection event it's disconnects all XMM modems from system.

Fibocom FM350 support

Can you add support for connecting modem Fibocom FM350-GL like xmm-modem?
I successfully connected the modem using this metode.

For openwrt using rndis_host.
send this at command:

AT+CGDCONT=1,"IPV4V6","internet",,0,0,0,0,0,0,0

AT+CGACT=1,1

AT+CGPADDR=1

response CGPADDR


AT+CGPADDR=1
+CGPADDR: 1,"10.5.147.243",""

and create interface static address eth1 with those address, ipv4 10.5.147.243, gateway 10.5.147.1, and dns 8.8.8.8

fibocom_fm350_at_commands_v2.2.pdf
FM350GL_Driver.zip

Пробелы вместо табов в Makefile

Добрый день.

В файле net/modeminfo/Makefile строки 184, 185 начинаются 8-ю пробелами вместо табов. Если исправить, то всё работает.

can't build luci-app-modeminfo package from openwrt snapshot SDK

Steps to reproduce:

  • run SDK Docker container as in the example:
    https://gitlab.com/openwrt/docker#sdk
    I use podman instead:
    podman run --rm -v "$(pwd)"/bin/:/home/build/openwrt/bin -it docker.io/openwrtorg/sdk:ramips-mt76x8-snapshot
  • in the container, follow compilation steps here:
    https://github.com/koshev-msk/modemfeed#how-to-add-repo-and-compile-packages
    You might need to install vim or other editor in the container before:
    $ sudo apt update && sudo apt install vim
    $ vi feeds.conf.default 
    # add the feed to the top:
    # src-git modemfeed https://github.com/koshev-msk/modemfeed.git
    
    $ ./scripts/feeds update -a; ./scrips/feeds install -a
    
    $ make -j$((`nproc` + 1)) package/feeds/modemfeed/luci-app-modeminfo/compile
    # menuconfig should appear, unselect these options and exit with save:
    # [*] Select all target specific packages by default (NEW)
    # [*] Select all kernel module packages by default (NEW)
    # [*] Select all userspace packages by default (NEW)
    
  • compilation went fine apparently but there is no package in the end:
    $ ls -l bin/packages/mipsel_24kc/modemfeed
    ls: cannot access 'bin/packages/mipsel_24kc/modemfeed': No such file or directory
    
    Here is the verbose logs from the build command, we can see there are actually errors there:
    http://ix.io/4bHl
    $ make -j$((`nproc` + 1)) package/feeds/modemfeed/luci-app-modeminfo/compile V=sc |& curl -F 'f:1=<-' ix.io
    http://ix.io/4bHl
    

luci-app-modeminfo - automatic migration of the config file format when updating the package version

The configuration file of the luci-app-modeminfo package is not compatible between versions 0.3.9 and 0.4.0.
A big request is to make an automatic migration of the config file format when updating the package version.

Конфигурационный файл пакета luci-app-modeminfo не совместим между версиями 0.3.9 и 0.4.0.
Большая просьба - сделать автоматическую миграцию формата конфиг файла при обновлении версии пакета.

Sierra Wireless EM9191 question

Hi, I'm trying to get modeminfo to work with Sierra Wireless EM9191 I can see partial information on Network tab and nothing in Hardware tab (see attached) however, with mmcli I can get everything.

root@OpenWrt:~# mmcli -m 0
  -----------------------------------
  General   |                   path: /org/freedesktop/ModemManager1/Modem/0
            |              device id: bbf336843ed59656d2f2858d292b624d3e5d3882
  -----------------------------------
  Hardware  |           manufacturer: Sierra Wireless, Incorporated
            |                  model: Sierra Wireless EM9191
            |      firmware revision: 03.10.07.00_GENERIC
            |         carrier config: default
            |           h/w revision: EM9191
            |              supported: gsm-umts, lte, 5gnr
            |                current: gsm-umts, lte, 5gnr
            |           equipment id: 35XXXXXXXXXXX
  -----------------------------------
  System    |                 device: /sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1.3
            |                drivers: cdc_mbim, option1
            |                 plugin: sierra
            |           primary port: cdc-wdm0
            |                  ports: cdc-wdm0 (mbim), ttyUSB0 (at), wwan0 (net)
  -----------------------------------
  Numbers   |                    own: +30XXXXXXXXXX
  -----------------------------------
  Status    |                   lock: sim-pin2
            |         unlock retries: sim-pin2 (3)
            |                  state: connected
            |            power state: on
            |            access tech: lte, 5gnr
            |         signal quality: 16% (cached)
  -----------------------------------
  Modes     |              supported: allowed: 3g; preferred: none
            |                         allowed: 4g; preferred: none
            |                         allowed: 3g, 4g; preferred: 4g
            |                         allowed: 3g, 4g; preferred: 3g
            |                         allowed: 5g; preferred: none
            |                         allowed: 4g, 5g; preferred: 5g
            |                         allowed: 4g, 5g; preferred: 4g
            |                         allowed: 3g, 5g; preferred: 5g
            |                         allowed: 3g, 5g; preferred: 3g
            |                         allowed: 3g, 4g, 5g; preferred: 5g
            |                         allowed: 3g, 4g, 5g; preferred: 4g
            |                         allowed: 3g, 4g, 5g; preferred: 3g
            |                current: allowed: 4g, 5g; preferred: 5g
  -----------------------------------
  Bands     |              supported: utran-1, utran-3, utran-4, utran-6, utran-5, utran-8, 
            |                         utran-9, utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, 
            |                         eutran-7, eutran-8, eutran-12, eutran-13, eutran-14, eutran-17, 
            |                         eutran-18, eutran-19, eutran-20, eutran-25, eutran-26, eutran-28, 
            |                         eutran-29, eutran-30, eutran-32, eutran-34, eutran-38, eutran-39, 
            |                         eutran-40, eutran-41, eutran-42, eutran-46, eutran-48, eutran-66, 
            |                         eutran-71, utran-19, ngran-1, ngran-2, ngran-3, ngran-5, ngran-28, 
            |                         ngran-41, ngran-66, ngran-71, ngran-77, ngran-78, ngran-79
            |                current: utran-1, utran-3, utran-4, utran-6, utran-5, utran-8, 
            |                         utran-9, utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, 
            |                         eutran-7, eutran-8, eutran-12, eutran-13, eutran-14, eutran-17, 
            |                         eutran-18, eutran-19, eutran-20, eutran-25, eutran-26, eutran-28, 
            |                         eutran-29, eutran-30, eutran-32, eutran-34, eutran-38, eutran-39, 
            |                         eutran-40, eutran-41, eutran-42, eutran-46, eutran-48, eutran-66, 
            |                         eutran-71, utran-19, ngran-1, ngran-2, ngran-3, ngran-5, ngran-28, 
            |                         ngran-41, ngran-66, ngran-71, ngran-77, ngran-78, ngran-79
  -----------------------------------
  IP        |              supported: ipv4, ipv6, ipv4v6
  -----------------------------------
  3GPP      |                   imei: 35XXXXXXXXXXX
            |          enabled locks: fixed-dialing
            |            operator id: 20201
            |          operator name: COSMOTE
            |           registration: home
            |   packet service state: attached
  -----------------------------------
  3GPP EPS  |   ue mode of operation: csps-2
            |    initial bearer path: /org/freedesktop/ModemManager1/Bearer/4
            |     initial bearer apn: internet
            | initial bearer ip type: ipv4v6
  -----------------------------------
  3GPP 5GNR |              mico mode: unsupported
            |              drx cycle: unsupported
  -----------------------------------
  SIM       |       primary sim path: /org/freedesktop/ModemManager1/SIM/0
            |         sim slot paths: slot 1: /org/freedesktop/ModemManager1/SIM/0 (active)
  -----------------------------------
  Bearer    |                  paths: /org/freedesktop/ModemManager1/Bearer/5


root@OpenWrt:~# mmcli -m 0 --signal-get
  ------------------------------
  Signal |         refresh rate: 5 seconds
         |       rssi threshold: 0 dBm
         | error rate threshold: no
  ------------------------------
  LTE    |                 rssi: -71.00 dBm
         |                 rsrq: -14.00 dB
         |                 rsrp: -105.00 dBm
         |                  s/n: 10.00 dB
root@OpenWrt:~# mmcli -m 0 --get-cell-info
  ------------------
  Cell info | cells: 
            |        cell type: lte, serving: no, physical ci: 20, rsrp: -104.000000, rsrq: -10.000000
            |        cell type: lte, serving: no, physical ci: 20, rsrp: -104.000000, rsrq: -10.000000
            |        cell type: lte, serving: no, physical ci: 20, rsrp: -104.000000, rsrq: -10.000000
            |        cell type: lte, serving: yes, operator id: 20201, tac: 11D1, ci: 19E4A2B, physical ci: 20, earfcn: 500, rsrp: -104.000000, rsrq: -10.000000

What how to fix this?

Thank you, Dmitry

Screenshot 2024-04-30 at 3 46 44 PM Screenshot 2024-04-30 at 3 46 14 PM Screenshot 2024-04-30 at 3 34 48 PM

Modeminfo: temperature missing with Dell DW5829e after FW upgrade

Hi!

OpenWrt 22.03.2 r19803-9a599fee93 compiled with latest version modemfeed.
Dell DW5829e in MBIM+ports mode (Customer=7, VID=413c, PID=81e6).

After upgrade to firmware T77W968.F2.0.0.1.0.GC.002 1 [May 31 2021 08:00:00] (NYH2V 1.0.0.24_A09_01) temperature is missing on modeminfo page.
But reading with AT-Command "AT^TEMP?" normally response:

PA: 31C
TSENS: 35C
OK

temp_bug

Modem L860-GL is not working with pro APN

Hello.

There is some issue, when is entered APN "internet" modem is connecting and receives IP address, but when is entered APN "pro"
modem isn't connecting.
From my carrier APN "pro" is for static IP address.

There is some issue with context.
Router like Keenetic is correctly working with "pro" APN
I have enabled debug on Keenetic UsbLte0 interface
What we can see there

[I] May 22 15:57:30 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "ATE0" (expect "OK"). 
[I] May 22 15:57:30 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:30 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CFUN=1" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CMEE=1" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGPIAF=1,0,0,0" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGMI?" (expect "CGMI"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CGMI: "Fibocom"" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+FMM?" (expect "FMM"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+FMM: "L860 LTE Module","L860"" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+FMR?" (expect "FMR"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+FMR: "18600.5001.00.35.01.57"" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "ATI9" (expect "^[^\+]{1}.*$"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> ""V1.2"" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGSN?" (expect "CGSN"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CGSN: "352279100355589"" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+XACT=?" (expect "XACT"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+XACT: (0-6),(0-2),0,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CPMS="ME","ME","SM"" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CPMS: 0,4,0,4,0,50". 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CMGF=0" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CPIN?" (expect "CPIN|CME ERROR"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CPIN: READY" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CCID" (expect "CCID"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CCID: 8937105220100124117F" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CIMI" (expect "^\d{15}$"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "247050102982906" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CREG=0" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CEREG=0" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGATT=0" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+COPS=2" (expect "OK"). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:31 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGDCONT=0,"IP"" (expect "OK"). 
[I] May 22 15:57:31 ndm: Core::System::StartupConfig: configuration saved. 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGDCONT=0" (expect "OK"). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+XACT=2,,,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142" (expect "OK"). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGDCONT=1,"IP","pro"" (expect "OK"). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+XGAUTH=1,0,"",""" (expect "OK"). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+XDATACHANNEL=1,1,"/USBCDC/0","/USBHS/NCM/0",2,1" (expect "OK"). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+XDNS=1,1" (expect "OK"). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:36 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGACT=1,1" (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+COPS=0" (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGATT=1" (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CGDATA="M-RAW_IP",1" (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CPMS="ME"" (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "CONNECT". 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CPMS: 0,4,0,4,0,50". 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CMGD=?" (expect "CMGD"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CMGD: (),(0,1,2,3,4)" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CPMS="ME"" (expect "CPMS"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CPMS: 0,4,0,4,0,50" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: UsbLte::Connection: "UsbLte0": connection initialized. 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CPMS="SM"" (expect "CPMS"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CPMS: 0,50,0,4,0,50" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CREG?" (expect "CREG"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CREG: 0,6" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CEREG?" (expect "CEREG"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CEREG: 0,1" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CPMS="ME"" (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CPMS: 0,4,0,4,0,50". 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 <-- "AT+CMGD=?" (expect "CMGD"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "+CMGD: (),(0,1,2,3,4)" (got it). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --- (expect "OK"). 
[I] May 22 15:57:38 ndm: Mobile::TtyDevice: "UsbLte0": tty0 --> "OK" (got it).

At first it send
AT+CGDCONT=0,"IP"
then
AT+CGDCONT=0
then
AT+CGDCONT=1,"IP","pro"

Perhaps by this commands it is removing the context 0 entry and will allow "pro" to be used as the APN for context 1 successfully.
By default answer from modem about context is

 AT+CGDCONT?;+CFUN?
+CGDCONT: 0,"IP","pro","84.15.195.41",0,0,0,0,0,0,0,0,0,0
+CGDCONT: 1,"IPV4V6","pro","0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,0,0,0,0,0,0
+CGDCONT: 2,"IP","pro","0.0.0.0",0,0,0,0,0,0,0,0,0,0
+CGDCONT: 3,"IP","pro","0.0.0.0",0,0,0,0,0,0,0,0,0,0
+CFUN: 1,0
OK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.