Hi Denis, > >> > >> Can you try the attached patch and tell me if this fixes your > problem? > >> > > > > Yes, it works. > > From the log it isn't clear whether oFono eventually re-attaches > automatically, does that work as well? >
It won't re-attach automatically. Following are the log from line 6792 to 6802 and my comment. ofonod[619]: PCUI: < \r\n+CREG: 1, A807, A72B71\r\n\r\n+CGREG: 1, A807, A72B71\r\n ofonod[619]: src/gprs.c:netreg_status_changed() 1 gprs->netreg_status is 1 (NETWORK_REGISTRATION_STATUS_REGISTERED). ofonod[619]: src/cbs.c:cbs_location_changed() 1, 43015, 10955633, -1, (null)(null) ofonod[619]: src/gprs.c:ofono_gprs_status_notify() /huawei0 status 1 gprs->driver_attached is set to TURE. From now on, unless the modem unregistered, gprs_netreg_update() will always return before execute gprs->driver->set_attached() because (gprs->driver_attached == attach). ofonod[619]: PCUI: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n ofonod[619]: PCUI: > AT+CGATT=0\r ofonod[619]: PCUI: < \r\n+CREG: 1, A807, A72B71\r\n\r\n+CGREG: 0\r\n\r\nOK\r\n ofonod[619]: src/gprs.c:netreg_status_changed() 1 ofonod[619]: src/cbs.c:cbs_location_changed() 1, 43015, 10955633, -1, (null)(null) ofonod[619]: src/gprs.c:ofono_gprs_status_notify() /huawei0 status 0 ofonod[619]: src/gprs.c:gprs_attach_callback() /huawei0 error = 0 gprs->driver_attached is used to indicated (CGATT) status, its value shouldn't be changed before gprs->driver->set_attached() execute completely. In this case, its value happen to be changed during gprs->driver->set_attached() is executed. So its value is not the same as (CGATT) status. best regards Caiwen _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
