Difference between revisions of "How to setup Murata LBEH59XUHC WiFi/BT module"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 15: Line 15:
 
  hciconfig hci0 piscan
 
  hciconfig hci0 piscan
 
  hcitool -i hci0 scan
 
  hcitool -i hci0 scan
 +
 +
=== Headset and Alsa Devices ===
 +
 +
Scan for your device
 +
 +
<pre>
 +
hcitool -i hci0 scan
 +
Scanning ...
 +
00:0C:8A:39:F3:E5   Bose BT2 01.03.00
 +
</pre>
 +
 +
Pair your headset with your device:
 +
 +
bluez-simple-agent hci0 00:0C:8A:39:F3:E5
 +
 +
Add this to your /etc/asound.conf file:
 +
 +
<pre>
 +
pcm.btheadset {
 +
  type plug
 +
  slave {
 +
      pcm {
 +
          type bluetooth
 +
          device 00:0C:8A:39:F3:E5
 +
          profile "auto"
 +
      } 
 +
  } 
 +
  hint {
 +
      show on
 +
      description "BT Headset"
 +
  } 
 +
}
 +
ctl.btheadset {
 +
  type bluetooth
 +
}
 +
</pre>
 +
 +
 +
Now play with aplay:
 +
 +
aplay -D btheadset music.wav
 +
  
 
== Wireless ==
 
== Wireless ==

Revision as of 17:54, 7 October 2013

Bluetooth

Firmware : TIInit_7.6.15.bts (from https://github.com/TI-ECS/bt-firmware)

Setup and scan for devices

# BT_EN
echo 0 > /sys/class/gpio/gpio142/value
sleep 1
echo 1 > /sys/class/gpio/gpio142/value
# Attach to bluetooth device
hciattach -s 115200 /dev/ttyO4 texas 3000000
# Setup interface and scan for devices
hciconfig hci0 up
hciconfig hci0 piscan
hcitool -i hci0 scan

Headset and Alsa Devices

Scan for your device

hcitool -i hci0 scan
Scanning ...
	00:0C:8A:39:F3:E5	  Bose BT2 01.03.00

Pair your headset with your device:

bluez-simple-agent hci0 00:0C:8A:39:F3:E5

Add this to your /etc/asound.conf file:

pcm.btheadset {
   type plug
   slave {
       pcm {
           type bluetooth
           device 00:0C:8A:39:F3:E5 
           profile "auto"
       }   
   }   
   hint {
       show on
       description "BT Headset"
   }   
}
ctl.btheadset {
  type bluetooth
} 


Now play with aplay:

aplay -D btheadset music.wav


Wireless

Firmware : ti-connectivity (from linux-firmware repository)

wl12xx debug

Make sure that DYNAMIC DEBUG is enabled in your kernel configuration.

CONFIG_DYNAMIC_DEBUG=y
echo 8 > /proc/sys/kernel/printk

echo 0x8800 > /sys/module/wlcore/parameters/debug_level

echo -n 'module cfg80211 +p' > /sys/kernel/debug/dynamic_debug/control
echo -n 'module mac80211 +p' > /sys/kernel/debug/dynamic_debug/control
echo -n 'module wl12xx +p' > /sys/kernel/debug/dynamic_debug/control

Links