<div dir="ltr">Hello Alberto,<div><br></div><div>Thank you for letting me know the url of ModemManager mailing list.</div><div>I posted this question there too.</div><div><br></div><div>Thank you.</div><div>Jeonghum</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2020년 4월 29일 (수) 오후 3:50, Alberto Bursi <<a href="mailto:bobafetthotmail@gmail.com">bobafetthotmail@gmail.com</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 29/04/20 08:29, Jeonghum Joh wrote:<br>
> Hello,<br>
> Thanks to many people in this list, I was able to find ModemManager and <br>
> I've tried applying it.<br>
> <br>
> ==== Testing environment ====<br>
> <br>
> Target Model : MediaTek MT7622 AC4300rfb1 board<br>
> Firmware Version : LEDE Reboot 17.01-SNAPSHOT unknown / LuCI<br>
> Kernel Version : 4.4.124<br>
> Modem : HUCOM HM-900<br>
> ModemManager<br>
> Version : 1.12.8<br>
> menuconfig : (QMI on, MBIM off)<br>
> git clone URL : <br>
> <a href="https://github.com/openwrt/packages/tree/master/net/modemmanager" rel="noreferrer" target="_blank">https://github.com/openwrt/packages/tree/master/net/modemmanager</a><br>
> <br>
> Noted Device Files : Those files and paths are noted/watched<br>
> qmichannel : /dev/cdc-wdm0<br>
> usbnet_adapter : /sys/class/net/wwan0<br>
> /sys/bus/usb/devices/2-1/manufacturer : QCOM<br>
> /sys/bus/usb/devices/2-1/idVendor :05C6<br>
> /sys/bus/usb/devices/2-1/idProduct :90db<br>
> /sys/bus/usb/devices/2-1/speed :5000<br>
> /sys/bus/usb/devices/2-1/product :SDXPRAIRIE-MTP _SN:B02CE51B<br>
> /sys/bus/usb/devices/2-1/version :3.20<br>
> /sys/bus/usb/devices/2-1:1.2/net/wwan0<br>
> /sys/bus/usb/devices/2-1:1.2/net/wwan0/device/driver<br>
> /sys/bus/usb/devices/2-1:1.2/net/wwan0/device<br>
> /sys/bus/usb/devices/2-1:1.2/usbmisc/cdc-wdm0<br>
> /sys/devices/platform/1a0c0000.usb/usb2/2-1/2-1:1.2<br>
> <br>
> Kernel modules watched via lsmod<br>
> cdc_wdm 8821 1 qmi_wwan<br>
> qmi_wwan 6252 0<br>
> usbcore 153512 20 <br>
> option,usb_wwan,qmi_wwan,cdc_ncm,cdc_ether,usbserial,usbnet,usblp,cdc_wdm,cdc_acm,usb_storage,xhci_mtk,xhci_plat_hcd,xhci_pci,xhci_hcd,uhci_hcd,ohci_platform,ohci_hcd,ehci_platform,ehci_hcd<br>
> usbnet 19027 3 qmi_wwan,cdc_ncm,cdc_ether<br>
> <br>
> Above is original environment.<br>
> On this circumstances, I disabled CM provided from modem provider : hucom-cm<br>
> And I added one configuration section into the bottom of <br>
> /etc/config/network :<br>
> config interface 'broadband'<br>
> option device '/sys/devices/platform/1a0c0000.usb/usb2/2-1/2-1:1.2'<br>
> option proto 'modemmanager'<br>
> option apn '<a href="http://5g-internet.sktelecom.com" rel="noreferrer" target="_blank">5g-internet.sktelecom.com</a> <br>
> <<a href="http://5g-internet.sktelecom.com" rel="noreferrer" target="_blank">http://5g-internet.sktelecom.com</a>>'<br>
> option username ''<br>
> option password ''<br>
> option pincode ''<br>
> option lowpower '1'<br>
> <br>
> Under these settings, I confirmed that<br>
> - hucom-cm is disabled<br>
> - ModemManager is alive<br>
> 4430 root 229m D /usr/sbin/ModemManager<br>
> <br>
> The wwan0 is not shown from ifconfig and ping 8.8.8.8 fails saying <br>
> Network is unreachable.<br>
> So, My first trying to utilize MM seemed to be failed.<br>
> <br>
> Originally hucom-cm sets bridge mode like shown below:<br>
> BRIDGE_MODE_FILE : /sys/module/qmi_wwan/parameters/bridge_mode<br>
> BRIDGE_IPV4_FILE : /sys/module/qmi_wwan/parameters/bridge_ipv4<br>
> But under ModemManager these files are not shown.<br>
> <br>
> And I've found many plugin libraries under /usr/lib/ModemManager:<br>
> libmm-plugin-altair-lte.so libmm-plugin-mtk.so <br>
> libmm-plugin-thuraya.so<br>
> <br>
> Could someone help me?<br>
> <br>
> Do I need to look deeper into ModemManager?<br>
> Do I need to implement new plugin library for our product?<br>
> Or do I need to forget about ModemManager?<br>
> <br>
> My already given hucom-cm anyway works. It brings data via wwan0 and <br>
> establish network interface wwan0.<br>
> Problem is that hucom-cm sets up firewall rules and routing settings <br>
> redundantly and unnecessarily. So I can make it not to do these unneeded <br>
> settings. This way would be good approach I believe.<br>
> But we'd like to make our product indepecntant from specific modem. I <br>
> guessed that opensource ModemManager infrastructure would give us some <br>
> sort of independence from specific modem and in other words it would <br>
> give some abstraction..<br>
> <br>
> I am not sure of anything. Could someone give me some light so that I <br>
> can find the best way to go?<br>
> <br>
> Additional question : If I write our own logic as a plugin library of <br>
> ModemManager, wouldn't it necessarily have to stick to GPL? Can we apply <br>
> commercial license for the plugin?<br>
> <br>
> Thank you very much in advance.<br>
> Jeonghum<br>
<br>
If none answers better in this mailing list, development and licensing <br>
questions about ModemManager should probably be asked in its own mailing <br>
list <a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
<br>
As it is not a package developed by OpenWrt, it is used by desktop Linux <br>
distributions too (Ubuntu, RHEL, SUSE and most others), Openwrt only <br>
provides the package and integrates its config with uci.<br>
<br>
-Alberto<br>
<br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div>