B2G/RIL: Difference between revisions

Jump to navigation Jump to search
117 bytes removed ,  3 November 2011
no edit summary
No edit summary
No edit summary
Line 10: Line 10:
phone's firmware distribution. To access these drivers, android uses
phone's firmware distribution. To access these drivers, android uses
the libril library. Information on libril and android's telephony
the libril library. Information on libril and android's telephony
architecture is available at
architecture is available at http://www.netmite.com/android/mydroid/development/pdk/docs/telephony.html
 
[http://www.netmite.com/android/mydroid/development/pdk/docs/telephony.html]


Source code for libril and rild is available in the B2G checkout as
Source code for libril and rild is available in the B2G checkout as
Line 59: Line 57:
Event data will be one of the follow types:
Event data will be one of the follow types:


* Void * No return
* Void - No return
* Int List * First int is the number of ints in the list, followed by the ints
* Int List - First int is the number of ints in the list, followed by the ints
** Byte 0x0c - uint32_t - number of ints in the packet
** Byte 0x0c - uint32_t - number of ints in the packet
** Byte 0x10 - uint32_t- - list of ints
** Byte 0x10 - uint32_t- - list of ints
Line 69: Line 67:
** Byte 0x0c - uint32_t - number of strings
** Byte 0x0c - uint32_t - number of strings
** Byte 0x10 - Strings - strings in format listed for single string (size + string)
** Byte 0x10 - Strings - strings in format listed for single string (size + string)
* Custom Struct * A set of different types specific to the message (SMS messages, call lists, etc...)
* Custom Struct - A set of different types specific to the message (SMS messages, call lists, etc...). These are usually unpacked by hand in the handler function.


=== RIL Parcel - Process -> rild ===
=== RIL Parcel - Process -> rild ===
Line 137: Line 135:
== Hanging Up ==
== Hanging Up ==


- Android app usually sends REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND
* Android app usually sends REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND
- Continually checks GET_CURRENT_CALLS, which may error the first time around? [https://github.com/kmachulis-mozilla/b2g-dialer-test/issues/13]
* Continually checks GET_CURRENT_CALLS, which may error the first time around? See issue https://github.com/kmachulis-mozilla/b2g-dialer-test/issues/13


== Call Receive ==
== Call Receive ==
Line 148: Line 146:
= Gecko Design =
= Gecko Design =


For preliminary design documentation of WebTelephony/WebAPI, see [https://wiki.mozilla.org/WebAPI/WebTelephony]
For preliminary design documentation of WebTelephony/WebAPI, see https://wiki.mozilla.org/WebAPI/WebTelephony


== Design Overview ==
== Design Overview ==
Line 191: Line 189:
available as part of the WebTelephony project.
available as part of the WebTelephony project.


* Utilities and Tips
== Relevant Websites ==
** Building
* Set the path of your local Android NDK and B2G, i.e. export
  NDK=/opt/android-ndk-r6b
* Run scripts/android_env.sh
* cmake .
* make


== Relevant Websites ==
* http://i-miss-erin.blogspot.com/2009/11/radio-layer-interface-in-android.html - Hooking up Android to a GSM radio on the BeagleBoard
* [[http://i-miss-erin.blogspot.com/2009/11/radio-layer-interface-in-android.html][Hooking up Android to a GSM radio on the BeagleBoard]]
* http://www.netmite.com/android/mydroid/development/pdk/docs/telephony.html - libril Documentation
* [[http://www.netmite.com/android/mydroid/development/pdk/docs/telephony.html][libril Documentation]]
* https://groups.google.com/forum/#!topic/android-porting/lo90a3Bb1nA - Small thread on ril stuff
* [[https://groups.google.com/forum/#!topic/android-porting/lo90a3Bb1nA][Small thread on ril stuff]]
* http://www.slideshare.net/ssusere3af56/android-radio-layer-interface - Android Radio Interface Layer
* [[http://www.slideshare.net/ssusere3af56/android-radio-layer-interface][Android Radio Interface Layer]]
* http://www.slideshare.net/dpsmarques/android-telephony-stack - Android Telephony Stack
* [[http://www.slideshare.net/dpsmarques/android-telephony-stack][Android Telephony Stack]]


= Relevant Bugs  =
= Relevant Bugs  =
44

edits

Navigation menu