Modify

Opened 3 years ago

Last modified 2 years ago

#19981 new defect

option mode fails on ncm device (Huawei E3372)

Reported by: loswillios Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version:
Keywords: Cc:

Description

I have a Huawei E3372 with non-hilink firmware (21.286.03.01.2)

config interface 'wan'
        option proto    'ncm'
        option device   '/dev/cdc-wdm0'
        option pincode  '1234'
        option apn      'internet.telekom'
        option ipv6     '0'
        option mode     'auto'
Wed Jun 24 09:11:07 2015 daemon.notice netifd: Interface 'wan' is setting up now
Wed Jun 24 09:11:09 2015 daemon.notice netifd: wan (4251): sending -> AT
Wed Jun 24 09:11:10 2015 daemon.notice netifd: wan (4251): sending -> ATZ
Wed Jun 24 09:11:10 2015 daemon.notice netifd: wan (4251): sending -> ATQ0
Wed Jun 24 09:11:11 2015 daemon.notice netifd: wan (4251): sending -> ATV1
Wed Jun 24 09:11:12 2015 daemon.notice netifd: wan (4251): sending -> ATE1
Wed Jun 24 09:11:12 2015 daemon.notice netifd: wan (4251): sending -> ATS0=0
Wed Jun 24 09:11:14 2015 daemon.notice netifd: wan (4251): SIM ready
Wed Jun 24 09:11:14 2015 daemon.notice netifd: wan (4251): PIN set successfully
Wed Jun 24 09:11:14 2015 daemon.notice netifd: wan (4251): sending -> AT^SYSCFGEX=\"00\",3fffffff,2,4,7fffffffffffffff,,
Wed Jun 24 09:11:15 2015 daemon.notice netifd: wan (4251): Error running AT-command
Wed Jun 24 09:11:15 2015 daemon.notice netifd: wan (4251): Failed to set operating mode
Wed Jun 24 09:11:15 2015 daemon.notice netifd: wan (4277): Stopping network
Wed Jun 24 09:11:18 2015 daemon.notice netifd: wan (4277): sending -> AT^NDISDUP=1,0
Wed Jun 24 09:11:18 2015 daemon.notice netifd: wan (4277): Command failed: Permission denied
Wed Jun 24 09:11:18 2015 daemon.notice netifd: Interface 'wan' is now down

This is the case for all "option mode" options (preferlte, lte, etc).

Completely removing "option mode" makes the stick go past this point:

Wed Jun 24 09:19:49 2015 daemon.notice netifd: Interface 'wan' is setting up now
Wed Jun 24 09:19:49 2015 daemon.warn odhcpd[950]: DHCPV6 SOLICIT IA_NA from 000100011b6be243f01faf1ee7ef on br-lan: ok fdb0:a07f:8524::e65/128 
Wed Jun 24 09:19:51 2015 daemon.notice netifd: wan (4730): sending -> AT
Wed Jun 24 09:19:52 2015 daemon.notice netifd: wan (4730): sending -> ATZ
Wed Jun 24 09:19:52 2015 daemon.notice netifd: wan (4730): sending -> ATQ0
Wed Jun 24 09:19:53 2015 daemon.notice netifd: wan (4730): sending -> ATV1
Wed Jun 24 09:19:53 2015 daemon.warn odhcpd[950]: DHCPV6 SOLICIT IA_NA from 000100011b6be243f01faf1ee7ef on br-lan: ok fdb0:a07f:8524::e65/128 
Wed Jun 24 09:19:54 2015 daemon.notice netifd: wan (4730): sending -> ATE1
Wed Jun 24 09:19:54 2015 daemon.notice netifd: wan (4730): sending -> ATS0=0
Wed Jun 24 09:19:57 2015 daemon.notice netifd: wan (4730): Trying to set PIN
Wed Jun 24 09:19:58 2015 daemon.notice netifd: wan (4730): PIN set successfully
Wed Jun 24 09:19:59 2015 daemon.notice netifd: wan (4730): sending -> AT^NDISDUP=1,1,"internet.telekom"
Wed Jun 24 09:19:59 2015 daemon.notice netifd: wan (4730): Connected, starting DHCP
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan' is now up
Wed Jun 24 09:19:59 2015 kern.err kernel: [11310.080000] huawei_cdc_ncm 1-1:1.2 wwan0: kevent 12 may have been dropped
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Network device 'wwan0' link is up
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Network alias 'wwan0' link is up
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan_4' is enabled
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan_4' has link connectivity 
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan_4' is setting up now
Wed Jun 24 09:19:59 2015 daemon.notice netifd: wan (4730): Command failed: Unknown error
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan_6' is enabled
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan_6' has link connectivity 
Wed Jun 24 09:19:59 2015 daemon.notice netifd: Interface 'wan_6' is setting up now
Wed Jun 24 09:19:59 2015 daemon.notice netifd: wan (4730): Command failed: Unknown error
Wed Jun 24 09:20:00 2015 daemon.notice netifd: wan_4 (4776): udhcpc (v1.23.2) started
Wed Jun 24 09:20:00 2015 daemon.notice netifd: wan_4 (4776): Sending discover...
Wed Jun 24 09:20:00 2015 user.notice firewall: Reloading firewall due to ifup of wan (wwan0)
Wed Jun 24 09:20:01 2015 daemon.warn odhcpd[950]: DHCPV6 SOLICIT IA_NA from 000100011b6be243f01faf1ee7ef on br-lan: ok fdb0:a07f:8524::e65/128 
Wed Jun 24 09:20:03 2015 daemon.notice netifd: wan_4 (4776): Sending discover...
Wed Jun 24 09:20:06 2015 daemon.notice netifd: wan_4 (4776): Sending discover...

It doesn't get an IP address however.

I'm running CHAOS CALMER (15.05-rc2, r45918) on a 1043nd

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by anonymous

ATSYSCFGEX=\"00\",3fffffff,2,4,7fffffffffffffff

\ is wrong, typo in ncm.json.

comment:2 Changed 3 years ago by anonymous

Same Problem not working in ncm mode even tough every stat looks fine...plz fix it

comment:3 Changed 3 years ago by anonymous

This one solved the same issue for me (but you have to pay attention when you issue it, too early also seems to be screwing up the connection):
https://lists.openwrt.org/pipermail/openwrt-devel/2015-July/033997.html

comment:4 Changed 2 years ago by anonymous

Please change it.

sending -> ATSYSCFGEX=\"00\",3fffffff,2,4,7fffffffffffffff

should be

ATSYSCFGEX="00",3fffffff,2,4,7fffffffffffffff

Typo in ncm.json, to much backslash

comment:5 Changed 2 years ago by anonymous

Please change it.

sending -> AT^SYSCFGEX=\"00\",3fffffff,2,4,7fffffffffffffff,,

should be

AT^SYSCFGEX="00",3fffffff,2,4,7fffffffffffffff,,

Typo in ncm.json, to much backslash

comment:6 Changed 2 years ago by anonymous

could you paste all ncm.json without slashes please?

comment:7 Changed 2 years ago by anonymous

In ncm.json lines for mode should have just one slash as it indicates char " e.g:

"preferlte": "AT^SYSCFGEX=\\\"03\\\\",3fffffff,2,4,7fffffffffffffff,,",

shold be:

"preferlte": "AT^SYSCFGEX=\"03\",3fffffff,2,4,7fffffffffffffff,,",

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.