Merge lp://qastaging/~awe/phablet-extras/ofono-gprs-support into lp://qastaging/phablet-extras/ofono
Status: | Merged |
---|---|
Approved by: | Ricardo Salveti |
Approved revision: | 66 |
Merged at revision: | 37 |
Proposed branch: | lp://qastaging/~awe/phablet-extras/ofono-gprs-support |
Merge into: | lp://qastaging/phablet-extras/ofono |
Diff against target: |
2469 lines (+1530/-257) 18 files modified
Makefile.am (+2/-0) debian/changelog (+4/-0) drivers/rilmodem/gprs-context.c (+548/-0) drivers/rilmodem/gprs.c (+276/-0) drivers/rilmodem/network-registration.c (+3/-5) drivers/rilmodem/rilmodem.c (+7/-1) drivers/rilmodem/rilmodem.h (+6/-0) drivers/rilmodem/rilutil.c (+309/-88) drivers/rilmodem/rilutil.h (+51/-1) drivers/rilmodem/sim.c (+132/-20) drivers/rilmodem/voicecall.c (+0/-2) gril/gril.c (+64/-94) gril/grilutil.c (+60/-36) gril/grilutil.h (+1/-0) gril/parcel.c (+16/-6) gril/ril_constants.h (+20/-0) plugins/provision.c (+6/-1) plugins/ril.c (+25/-3) |
To merge this branch: | bzr merge lp://qastaging/~awe/phablet-extras/ofono-gprs-support |
Related bugs: | |
Related blueprints: |
Telephony Support
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ricardo Salveti (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email:
|
Commit message
[rilmodem] Initial GPRS support.
Description of the change
This change adds basic GPRS support to our ofono/rilmodem code.
New source files in drivers/rilmodem include gprs.c and gprs-context.c.
In addition to the GPRS changes, some re-factoring of the debug logging code is also present in this MP. This includes removal of some of the low-level /gril log calls ( which have been commented out and marked as TODO: make conditional ), and addition of RIL message logging which mimics the logging done by the native RIL code. This latter change has not been 100% implemented yet, however it was critical to getting the GPRS code to work.
This code has been tested on maguro and mako, using an AT&T SIM in the US.
Testing requires installation of the python test scripts bundled with oFono. Sergio is working on packaging these scripts into a stand-alone package. For now they can be copied to the phone ( note, they require the additional package python-dbus ).
To test:
1. Run list-contexts to see the existing contexts.
2. Use activate-context to activate 3g. If multiple contexts exist, you may need to specify a 0-based index to tell oFono to use the correct context.
3. Use list-contexts to see the settings returned by RILD for the data call.
4. Use ifconfig to confirm that the interface has been correctly setup ( rmnet0 or rmnet_usb0 depending on the phone ).
5. On both phones, you'll need to manually configured DNS. My shortcut is just:
# echo "nameserver 8.8.8.8" > /etc/resolv.conf
6. On maguro, the default route is not configured by default; that said, you should see the network route ( use netstat -rn to see the routing table ). To configured the default route, run the following command:
# route add default gw <gateway-address> <iface-name>
6. To disable the connection, run deactivate-context
Note, sometimes it take awhile for GPRS to be attached. If you try to activate the context while !attached, activate-context will return an error. You can use the list-modems command to examine the ConnectionManager properties ( one of which is 'Attached' ).
A couple of other comments:
* No disconnect nor suspend testing has yet been done.
* Data roaming is disabled by default, and is not yet implemented.
PASSED: Continuous integration, rev:55 jenkins. qa.ubuntu. com/job/ phablet- extras- ofono-ci/ 16/ jenkins. qa.ubuntu. com/job/ phablet- extras- ofono-raring- armhf-ci/ 16 jenkins. qa.ubuntu. com/job/ phablet- extras- ofono-raring- armhf-ci/ 16/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ phablet- extras- ofono-ci/ 16/rebuild
http://