[OpenWrt-Devel] [PATCH] comgt: add ncm proto support

Sami Olmari sami at olmari.fi
Fri Oct 24 08:07:15 EDT 2014


Well this is what John told me:

"try /dev/cdc-wdm0 as a device or simply do

config interface
option proto wwan
option apn opengate

the new wwan proto will automagically detect your needed prot and device"


I had also tried this and variations, but same resuls:

config interface 'wan'
        option proto 'ncm'
        option apn 'opengate'
        option device '/dev/ttyUSB1'

Mon Oct 20 12:46:52 2014 daemon.notice netifd: wan (4251): Timeout
running AT-command
Mon Oct 20 12:46:52 2014 daemon.notice netifd: wan (4251): ncm[4251]
Failed to initialize modem
Mon Oct 20 12:46:52 2014 daemon.notice netifd: wan (4401): Command
failed: Permission denied
Mon Oct 20 12:46:52 2014 daemon.notice netifd: wan (4401): ncm[4401]
Stopping network
Mon Oct 20 12:46:52 2014 daemon.notice netifd: wan (4401): Can't open device .
Mon Oct 20 12:46:52 2014 daemon.notice netifd: wan (4401): ncm[4401]
Failed to disconnect
Mon Oct 20 12:46:52 2014 daemon.notice netifd: Interface 'wan' is now down

 Sami Olmari

On Thu, Oct 23, 2014 at 10:20 AM, Bjørn Mork <bjorn at mork.no> wrote:
> Sami Olmari <sami at olmari.fi> writes:
>
>>         option proto 'wwan'
>
> I don't know much about how this is supposed to work (don't have any
> Huawei NCM modem), but I do see this in the patch posted earlier in this
> thread:
>
>> diff --git a/package/network/utils/comgt/files/3g.usb
>> b/package/network/utils/comgt/files/3g.usb
>> index fd6837e..ac8326b 100644
>> --- a/package/network/utils/comgt/files/3g.usb
>> +++ b/package/network/utils/comgt/files/3g.usb
>> @@ -8,7 +8,7 @@ find_3g_iface() {
>>
>>       local proto
>>       config_get proto "$cfg" proto
>> -     [ "$proto" = 3g ] || return 0
>> +     [ "$proto" = 3g ] || [ "$proto" = ncm ] || return 0
>>
>>       # bypass state vars here because 00-netstate could clobber .device
>>       local dev=$(uci_get network "$cfg" device)
>
>
> which might explain stuff?
>
>
> Bjørn
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list