====== oFono ====== **oFono** provides a mobile telephony ([[https://en.wikipedia.org/wiki/GSM|GSM]]/[[https://en.wikipedia.org/wiki/Universal_Mobile_Telecommunications_System|UMTS]]) mobile telephony stack. On AGL Demonstration Platform, it compiles along the [[http://www.bluez.org/|BlueZ]] [[https://en.wikipedia.org/wiki/Bluetooth|Bluetooth]] stack, most notably to provide [[https://developer.bluetooth.org/TechnologyOverview/Pages/HFP.aspx|HFP (Hands-Free Profile)]] functionality. Project site : [[https://01.org/ofono|https://01.org/ofono]] ---- ===== AGL Demonstration Platform ===== AGL Demonstration Platform aims to provide a user-friendly and automated way to pair Bluetooth devices, and make/receive [[http://qwikfix.co.uk/dvla-contact/|phone calls]]. As for now, we can manually achieve this with shell commands (original source from [[https://wiki.tizen.org/wiki/Connecting_to_a_Smartphone_with_Bluetooth_and_Making_Phone_Calls|here]]). ----- ==== Manually pairing a Bluetooth smartphone with shell commands ==== * Turn on Bluetooth on the smartphone and make it visible for other devices * Plug the Bluetooth USB dongle into the device with Tizen:Common * Verify that the Bluetooth USB dongle is detected : hciconfig -a * Bring up the Bluetooth USB dongle : rfkill unblock bluetooth hciconfig hci0 up * Power on the Bluetooth controller : [bluetooth]# power on * Enable the agent and set it as default : [bluetooth]# agent on [bluetooth]# default-agent * Set the Bluetooth controller as discoverable for 3 minutes and pairable : [bluetooth]# discoverable on [bluetooth]# pairable on * Scan for other device to retrieve the smartphone : [bluetooth]# scan on * Find out the MAC address of the smartphone : [bluetooth]# devices * Pair with the smartphone : bluetooth]# pair smartphone_mac_address * Enter 4 digit PIN if prompted. Enter the same PIN on the smartphone : agent]PIN code: #### * Allow the service authorization if requested : [agent]Authorize service service_uuid (yes/no): yes * Trust the smartphone : [bluetooth]# trust smartphone_mac_address * Connect to the smartphone : [bluetooth]# connect smarphone_mac_address * Verify that the smartphone is successfully connected and display information about it with the following command : bluetooth]# info smarphone_mac_address * The device has been successfully paired with the smartphone and you can now exit bluetoothctl : [bluetooth]# quit