User talk:Gabrys

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: = Testing GSM <-> BT = Basics: We need to tell audio codec to route sound from GSM chip to BT chip. Codec is controlled by ALSA and mixer settings. Prerequisites: BT device must be paire...)
 
(Step one: powering on bluetooth, setting up bluetoothd, pairing)
Line 15: Line 15:
 
Test: "hcitool con" should say:
 
Test: "hcitool con" should say:
  
   Connections:
+
   Connection
< ACL 00:13:17:78:7B:A3 handle 0 state 5 lm MASTER  
+
      ACL 00:13:17:78:7B:A3 handle 0 state 5 lm MASTER
  
 
== Step two: make a call ==
 
== Step two: make a call ==

Revision as of 20:58, 6 April 2010

Contents

Testing GSM <-> BT

Basics: We need to tell audio codec to route sound from GSM chip to BT chip. Codec is controlled by ALSA and mixer settings.

Prerequisites: BT device must be paired before the operation.

Step one: powering on bluetooth, setting up bluetoothd, pairing

 echo 1 > /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
 hciconfig hci0 up
 bluetoothd

then use simple-agent from here: http://wiki.openmoko.org/wiki/Manually_using_Bluetooth#Pair to pair the device.

Test: "hcitool con" should say:

 Connection
     ACL 00:13:17:78:7B:A3 handle 0 state 5 lm MASTER

Step two: make a call

Call to the phone and answer (or place a call, whichever is cheaper).

Step three: load ALSA settings to switch codec "mode" to GSM <=> BT

Wait till frameworkd sets its statefile and then overwrite it with your own:

 alsamixer restore /path/to/the/statefile

Then due to kernel bug, do:

 amixer sset "Capture Left Mixer" "Analogue Mix Right"
 amixer sset "Capture Left Mixer" "Analogue Mix Left"

We would also need to set bluetooth IIS to 8000 rate (probably left by now).

We should hear something in the BT headset and not in phone's speaker.

Personal tools

Testing GSM <-> BT

Basics: We need to tell audio codec to route sound from GSM chip to BT chip. Codec is controlled by ALSA and mixer settings.

Prerequisites: BT device must be paired before the operation.

Step one: powering on bluetooth, setting up bluetoothd, pairing

 echo 1 > /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
 hciconfig hci0 up
 bluetoothd

then use simple-agent from here: http://wiki.openmoko.org/wiki/Manually_using_Bluetooth#Pair to pair the device.

Test: "hcitool con" should say:

 Connection
     ACL 00:13:17:78:7B:A3 handle 0 state 5 lm MASTER

Step two: make a call

Call to the phone and answer (or place a call, whichever is cheaper).

Step three: load ALSA settings to switch codec "mode" to GSM <=> BT

Wait till frameworkd sets its statefile and then overwrite it with your own:

 alsamixer restore /path/to/the/statefile

Then due to kernel bug, do:

 amixer sset "Capture Left Mixer" "Analogue Mix Right"
 amixer sset "Capture Left Mixer" "Analogue Mix Left"

We would also need to set bluetooth IIS to 8000 rate (probably left by now).

We should hear something in the BT headset and not in phone's speaker.