Gustavo F. Padovan
4c0790da4f
hfp: Don't use Disconnect when agent was released
2010-02-12 17:35:11 -06:00
Denis Kenzior
a040ca718b
Keep track of adapter addresses
...
This will be required for peristent HFP modem path tracking.
2010-02-12 16:33:53 -06:00
Denis Kenzior
a8cd42c4d5
Fix: Add free_func to send_method_call_with_reply
2010-02-12 16:30:34 -06:00
Denis Kenzior
2b9c5ee411
Fix: ofono_dbus_get_connection does not ref it
2010-02-12 16:07:13 -06:00
Denis Kenzior
103a5fdfcb
Cleanup: No sense in creating the hash if failed
2010-02-12 16:05:09 -06:00
Denis Kenzior
ed455645f9
Refactor: Device GetProperties handling
2010-02-12 15:44:31 -06:00
Denis Kenzior
d9382dc4b2
Refactor: Use Adapter Devices property
...
Adapter interface ListDevices method is deprecated
2010-02-12 15:32:53 -06:00
Denis Kenzior
41a1dacae9
Fix: Use Manager's Adapters property instead
...
ListAdapters method on Manager interface is deprecated
2010-02-12 15:05:52 -06:00
Denis Kenzior
7a48b56ebb
Add a more sophisticated GetProperties reply parser
2010-02-12 15:05:27 -06:00
Denis Kenzior
d5577a393d
Style: No need for this to be a function
2010-02-12 12:02:39 -06:00
Denis Kenzior
35f83a7129
Fix: Use a 15 second timeout on a disconnect
2010-02-12 12:01:07 -06:00
Denis Kenzior
668dc8e42b
Style: No need for this to be a function
2010-02-12 12:01:04 -06:00
Denis Kenzior
1155a0c1a7
Style: No need for a function here
2010-02-12 11:27:02 -06:00
Gustavo F. Padovan
0d86193b34
hfp: set timeout to rfcomm establishment procedure
...
If it expires we call org.bluez.HandsfreeGateway.Disconnect()
It also modifies send_method_call and break it down into two functions.
Now we have send_method_call_with_reply, for DBus messages that needs a
reply. It sets a reply and a timeout for the message reply.
The other funcion is called send_method_call without timeout or reply
parameters.
2010-02-12 10:03:31 -06:00
Gustavo F. Padovan
46836533e0
hfp: avoid crash when hfp is declared on modem.conf
2010-02-11 17:03:31 -06:00
Gustavo F. Padovan
8f95e03d75
hfp: fix copyright notice
2010-02-11 17:03:17 -06:00
Denis Kenzior
7f9a9b0cdc
Fix: Don't use ofono_debug directly in plugins
2010-02-08 12:09:01 -06:00
Denis Kenzior
c02dc9c68b
Fix: Simplify overly complex error handling
2010-02-05 17:31:13 -06:00
Denis Kenzior
5237a12ca2
Style: Rename variables to better indicate arrays
...
Variables that hold arrays of strings should be named more appropriately
to help indicate this.
2010-02-05 17:25:53 -06:00
Denis Kenzior
8dc538e252
Style: No need for void here
2010-02-05 17:24:18 -06:00
Vinicius Costa Gomes
e20587631d
hfp: Fix memory leak when listing bluetooth devices
2010-02-05 17:15:16 -06:00
Gustavo F. Padovan
805a6c47d3
hfp: wait Disconnect reply to power down the modem
2010-02-05 13:35:43 -06:00
Gustavo F. Padovan
edb98c16e8
Fix: Don't call UnregisterAgent if already Released
...
Prevent to call UnregisterAgent on an already unregistered agent.
2010-02-05 13:34:33 -06:00
Gustavo F. Padovan
4522c9686d
hfp: create modem for new devices paired on runtime
...
It listens the UUIDs property to create a modem from the recently paired
devices. It also renames added_watch to adapter_watch, a more proper
name.
2010-02-05 13:33:13 -06:00
Denis Kenzior
d223243913
Fix: Use snprintf instead of sprintf in HFP
2010-02-05 12:00:14 -06:00
Denis Kenzior
7bab47f07b
Fix: No need to check for handsfree_path now
2010-02-04 13:49:36 -06:00
Denis Kenzior
5a6bbd113d
Cleanup: Refactor handling of failed connections
2010-02-04 13:49:36 -06:00
Denis Kenzior
4822b21b4d
Cleanup: Modem creation
2010-02-04 13:49:33 -06:00
Denis Kenzior
1cd4bf036f
Add function to handle SLC handshake failures
2010-02-04 13:13:57 -06:00
Gustavo F. Padovan
bc7d0fb27f
Handle the error path from service_level_connection
2010-01-28 11:16:05 -06:00
Gustavo F. Padovan
0bb749a51f
Remove unneeded code to disable the modem on hfp
...
ofono_modem_remove() already disables the modem.
2010-01-28 10:41:28 -06:00
Denis Kenzior
392f092ee0
Style: Various whitespace issues
2010-01-27 16:37:50 -06:00
Denis Kenzior
911b24c12d
Style: Don't go over 80 characters
2010-01-27 16:37:32 -06:00
Denis Kenzior
971e4c7345
Fix: Remove unused includes
2010-01-27 16:19:46 -06:00
Gustavo F. Padovan
abf86ae5fa
Add copyright note to the HFP plugin
2010-01-27 14:34:48 -06:00
Marcel Holtmann
59eeea0ebc
Remove wrong copyright statement within HFP plugin
2010-01-27 21:22:19 +01:00
Marcel Holtmann
49233dbc2f
Limit HFP plugin loading to D-Bus 1.3 only systems
2010-01-27 21:18:07 +01:00
Gustavo F. Padovan
ac6672e9b3
Add HFP support through BlueZ
...
It uses BlueZ through to get HFP working following the
org.bluez.HandsfreeGateway and org.bluez.HandsfreeAgent from
the BlueZ D-Bus API.
You need the HFP suport into BlueZ and the new D-Bus 1.3 or
later with fd-passing support.
Many thanks to Zhenhua Zhang <zhenhua.zhang@intel.com> for its
prototype on this code.
2010-01-27 21:18:07 +01:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00
Zhenhua Zhang
64015ff4b8
Fix: Move CHLD from voicecall driver to plugin
...
According HFP v1.5 spec, AT+CHLD=? should be a part of SLC
connection. So we should not do it after SLC connection is
created.
2009-11-24 20:43:41 -06:00
Zhenhua Zhang
a4a4bddbe9
Fix: Order of CMER and CIND in SLC connection
...
According to the HFP 1.5 specification the order of commands is actually
important. The required sequence is to use CIND=?, CIND? and then CMER.
Currently oFono issues commands in the order of CIND=?, CMER, CIND?
2009-11-24 20:39:19 -06:00
Zhenhua Zhang
28c6bbb558
Add call volume support for hfpmodem
...
The call volume driver listens the speaker volume and microphone
gain from the AG. It also allow to synchronze the speaker and
microphone volume changes with the AG through AT+VGS and AT+VGM.
Volume level synchronization from HFP spec 1.5 Section 4.28.2
is performed on startup.
2009-11-11 15:53:55 -06:00
Denis Kenzior
c63a0413cd
Fix: Minor style issues
2009-11-03 11:57:43 -06:00
Gustavo F. Padovan
1acd7f8b75
Create network registration driver for hfpmodem
...
This driver handles phone informations about registration status, signal
strength and roaming status listening +CIEV commands. It also gets the
Network Operator name with +COPS commands.
2009-11-03 11:49:35 -06:00
Marcel Holtmann
3c24593c0c
Use ofono_info() for AT command debugging
2009-11-01 23:42:18 +09:00
Zhenhua Zhang
4a36fc7c82
Add voicecall driver for Bluetooth HFP
...
HFP voicecall driver uses AT+CIEV indicator to notify call status
update according to Bluetooth HFP spec v1.5. This patch only adds single
call support.
2009-10-28 17:33:33 -05:00
Denis Kenzior
f726596860
Rename: drivers/hfpmodem/hfp.[ch] to hfpmodem.[ch]
...
Be more consistent with other drivers
2009-10-19 22:13:19 -05:00
Denis Kenzior
c4594d2543
Fix: Make 'make distcheck' happy again
2009-10-19 17:07:23 -05:00
Denis Kenzior
17072b1949
Fix: Use debug instead of info
2009-10-19 17:00:32 -05:00
Denis Kenzior
5635703141
Refactor: Setup the HF features bitmap
...
Do not use magic numbers unless strictly necessary
2009-10-19 16:59:44 -05:00