Hi, I tried other modem with same type. It worked exactly the same, so this should not be related to broken modem or corrupted firmware. What else could I try?
Bjørn, is there something missing in initialization? Is there something wrong with firmware? Is there any chance switching modem to HiLink mode (= using cdc_ether) like the older versions did? Would it be possible by downgrading firmware or by usb_modeswitch? If all the answers are no, I suppose I need to switch to for instance to ModemManager or ppp without any managers. Cheers, Matti 2016-01-15 12:14 GMT+02:00 matti kaasinen <[email protected]>: > Hi Denis, > I tried what you suggested below. Shortly: it did not work. > > 2016-01-14 17:32 GMT+02:00 Denis Kenzior <[email protected]>: > >> if (g_at_result_iter_next(&iter, "^DHCP:") == FALSE) { >> gcd->dhcp_source = g_timeout_add_seconds(1, dhcp_poll, gc); >> return; >> } >> > > Log: > ..drivers/huaweimodem/gprs-context.c:huawei_gprs_activate_primary() cid 1 > ofonod: Modem: > AT+CGDCONT=1,"IP","internet"\r > ofonod: Modem: < \r\nOK\r\n > ..drivers/huaweimodem/gprs-context.c:at_cgdcont_cb() ok 1 > ofonod: Modem: > AT^NDISDUP=1,1\r > ofonod: Modem: < \r\nOK\r\n > ..drivers/huaweimodem/gprs-context.c:at_ndisdup_up_cb() ok 1 > > ## 22 times following block > ofonod: Modem: > AT^DHCP?\r > ofonod: Modem: < \r\nOK\r\n > ..drivers/huaweimodem/gprs-context.c:dhcp_query_cb() ok 1 > > ## after that > ..src/gprs.c:pri_activate_callback() 0x120500 > ..src/gprs.c:pri_activate_callback() Activating context failed with error: > Unknown error type > > So I guess we have a problem. > I also tried running above commands manually and really AT^DHCP? returns > just ok. > > ## I compared ModemManager log with ofono.log: > ## it has > AT+CGDCONT=? > ## command returning: > +CGDCONT: > (1-11),"IP",,,(0-2),(0-3) > +CGDCONT: > (1-11),"IPV6",,,(0-2),(0-3) > +CGDCONT: > (1-11),"IPV4V6",,,(0-2),(0-3) > +CGDCONT: > (1-11),"PPP",,,(0-2),(0-3) > > OK > > ## It also has > AT+CGDCONT? > ## command returning: > +CGDCONT: 1,"IP","internet","",0,0 > > OK > > I can get same values if I run same commands manually from terminal after > killing ofonod. > However, I do not see any AT^DHCP? nor AT^NDISDUP. So, I suppose > ModemManager is using some other procedure while connecting. > > Regards, > Matti >
_______________________________________________ ofono mailing list [email protected] https://lists.ofono.org/mailman/listinfo/ofono
