fdanis

new TelephonyAgent proposal

Dec 15th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. Transport path Media Endpoint
  2. ______________ ______________
  3.  
  4. RFComm connection
  5. BlueZ -> oFono : BlueZ -> oFono :
  6. org.bluez.TelephonyAgent.NewConnection(fd, org.bluez.TelephonyAgent.NewConnection(fd,
  7. uuid, version, features, MediaTransport path) uuid, version, features, MediaEndpoint id,
  8. MediaEndpoint path)
  9.  
  10. BlueZ -> PA : oFonot -> PA:
  11. org.bluez.MediaEndpoint.SetConfiguration( org.bluez.MediaEndpoint.SetConfiguration(
  12. MediaTransport path, ...) MediaTransport path, ...)
  13.  
  14. SCO connection - AG initiated
  15.  
  16. PA BlueZ HF PA oFono BlueZ HF
  17. | transport | | | transport | | |
  18. | acquire | | | acquire | | |
  19. |-------------->| | |-------------->| | |
  20. | | connect SCO | | | ConnectSCO | |
  21. | |<.............>| | |-------------->| connect |
  22. | return SCO fd | | | | | SCO |
  23. |<--------------| | | | |<.......>|
  24. | | | | | return SCO fd | |
  25. | |<--------------| |
  26. | return SCO fd | | |
  27. |<--------------| | |
  28.  
  29. SCO connection - HF initiated
  30.  
  31. PA BlueZ HF PA oFono BlueZ HF
  32. | | connect SCO | | | | connect |
  33. | |<.............>| | | | SCO |
  34. | state changed | | | | |<.......>|
  35. | signal | | | state changed signal | |
  36. |<--------------| | |<--------------|---------------| |
  37. | | | | | | |
  38. | transport | | | transport | | |
  39. | acquire | | | acquire | | |
  40. |-------------->| | |-------------->| | |
  41. | | | | | GetScoFD | |
  42. | return SCO fd | | | |-------------->| |
  43. |<--------------| | | | | |
  44. | | | | | return SCO fd | |
  45. | |<--------------| |
  46. | return SCO fd | | |
  47. |<--------------| | |
  48.  
  49.  
  50. AT+NREC,AT+BSIR
  51. HF oFono BlueZ PA HF oFono PA
  52. | AT+NREC | | | | AT+NREC | |
  53. |..........>| | | |..............>| |
  54. | | SetProperty | | | | property |
  55. | |------------>| | | | changed signal|
  56. | | | property | | |-------------->|
  57. | | | changed |
  58. | | | signal |
  59. | | |--------->|
  60.  
  61.  
  62. AT+VGS,AT+VGM
  63.  
  64. HF oFono BlueZ PA app HF oFono PA app
  65. | AT+VGS= | | | | | AT+VGS= | | |
  66. |........>| | | | |..............>| | |
  67. | | SetProperty | | | | | property | |
  68. | |------------>| | | | | changed signal| |
  69. | | | | | | |-------------->| |
  70. | | property changed | | | | |------>|
  71. | | signal | | | | | |
  72. | |<------------|----->| |
  73. | | | |---->|
  74.  
  75.  
  76. HF oFono BlueZ PA app HF oFono PA app
  77. | | | | | | | | |
  78. | | | |<----| | | |<------|
  79. | | | SetProperty | | | | SetProperty | |
  80. | | |<------------| | | |<--------------| |
  81. | | | | | | +VGS: | | |
  82. | | property changed | | |<..............| property | |
  83. | | signal | | | | changed signal| |
  84. | |<-------|------------>| | | |-------------->| |
  85. | +VGS: | | | | | | |------>|
  86. |<......| | |---->| | | | |
  87. | | | | |
Advertisement
Add Comment
Please, Sign In to add comment