<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Sami,<br>
<br>
<blockquote type="cite">
<pre>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
</pre>
</blockquote>
<br>
I think John introduced a typo when committing my patch:<br>
in file package/network/utils/comgt/files/runcommand.gcom on line 11
there is<br>
<br>
send "^n"<br>
<br>
which should be<br>
<br>
send "^m"<br>
<br>
Try to change that.<br>
<br>
Matti<br>
<br>
<blockquote type="cite">
<pre>
On Thu, Oct 23, 2014 at 10:20 AM, Bjørn Mork <<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel">bjorn at mork.no</a>> wrote:
><i> Sami Olmari <<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel">sami at olmari.fi</a>> writes:
</i>><i>
</i>>><i> option proto 'wwan'
</i>><i>
</i>><i> I don't know much about how this is supposed to work (don't have any
</i>><i> Huawei NCM modem), but I do see this in the patch posted earlier in this
</i>><i> thread:
</i>><i>
</i>>><i> diff --git a/package/network/utils/comgt/files/3g.usb
</i>>><i> b/package/network/utils/comgt/files/3g.usb
</i>>><i> index fd6837e..ac8326b 100644
</i>>><i> --- a/package/network/utils/comgt/files/3g.usb
</i>>><i> +++ b/package/network/utils/comgt/files/3g.usb
</i>>><i> @@ -8,7 +8,7 @@ find_3g_iface() {
</i>>><i>
</i>>><i> local proto
</i>>><i> config_get proto "$cfg" proto
</i>>><i> - [ "$proto" = 3g ] || return 0
</i>>><i> + [ "$proto" = 3g ] || [ "$proto" = ncm ] || return 0
</i>>><i>
</i>>><i> # bypass state vars here because 00-netstate could clobber .device
</i>>><i> local dev=$(uci_get network "$cfg" device)
</i>><i>
</i>><i>
</i>><i> which might explain stuff?
</i>><i>
</i>><i>
</i>><i> Bjørn</i></pre>
</blockquote>
</body>
</html>