User Tools

Site Tools


subsystem:connectivity:ofono

oFono

oFono provides a mobile telephony (GSM/UMTS) mobile telephony stack.

On AGL Demonstration Platform, it compiles along the BlueZ Bluetooth stack, most notably to provide HFP (Hands-Free Profile) functionality.

Project site : 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 phone calls.

As for now, we can manually achieve this with shell commands (original source from 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
subsystem/connectivity/ofono.txt · Last modified: 2016/09/19 06:41 by ellegonzalez