Firefly Open Source Community
Title: Bluetooth [Print This Page]
Author: herbat Time: 12/31/2014 04:00
Title: Bluetooth
Hi,
I tried to run bluetooth on lubutu but no success so far.
I installed blueman bluetooth manager but it does not recognize any new device (no adapter).
Somebody has any hint/how to?
cheers
Adam
Author: Andy Time: 12/31/2014 09:46
You can post the log here and someone may help you.
Author: busybee Time: 12/31/2014 17:00
Hi herbat . You need to copy the bluetooth hcd file and hciattach it first.
Here're the instructions (run with root):
- 1. Mount Android system partition and copy out the AP6335 hcd file:
- # mount Android system partition
- mount /dev/block/mtd/by-name/system /mnt
- # mkdir for compatiblity
- mkdir -p /system/vendor/firmware
- # copy required hcd file
- cp /mnt/vendor/firmware/bcm4339a0.hcd /system/vendor/firmware/
- # umount
- umount /mnt
-
- 2. Install the neccessary bluetooth packages:
- apt-get install --no-install-recommends brcm-patchram-plus-nexus7 bluetooth ussp-push
- 3. Power on the bluetooth and do initializaion:
- # Power on
- cat /sys/class/rfkill/rfkill0/type # bluetooth
- echo 1 > /sys/class/rfkill/rfkill0/state
- # Upload hcd file
- brcm_patchram_plus -d --patchram /system/vendor/firmware/bcm4339a0.hcd --baudrate 1500000 --enable_lpm --enable_hci --no2bytes /dev/ttyS0 &
- 4. Wait some time until the brcm_patchram_plus settles down, then use bluez related commands to test:
- root@firefly:~# hciconfig -a
- hci0: Type: BR/EDR Bus: UART
- BD Address: 43:39:00:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
- UP RUNNING PSCAN
- RX bytes:1186 acl:0 sco:0 events:39 errors:0
- TX bytes:956 acl:0 sco:0 commands:39 errors:0
- Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
- Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
- Link policy: RSWITCH SNIFF
- Link mode: SLAVE ACCEPT
- Name: 'firefly-0'
- Class: 0x600100
- Service Classes: Audio, Telephony
- Device Class: Computer, Uncategorized
- HCI Version: 4.0 (0x6) Revision: 0x10c
- LMP Version: 4.0 (0x6) Subversion: 0x6109
- Manufacturer: Broadcom Corporation (15)
- hci0 should be up and running now.
- 5. Shutdown bluetooth.
- echo 0 > /sys/class/rfkill/rfkill0/state
Copy the code
Author: herbat Time: 12/31/2014 22:40
@busyby : thanks for answer
I came with your procedure. Adapter is working as you can see
- hci0: Type: BR/EDR Bus: UART
- BD Address: 43:39:00:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
- UP RUNNING PSCAN ISCAN
- RX bytes:647 acl:0 sco:0 events:36 errors:0
- TX bytes:1429 acl:0 sco:0 commands:36 errors:0
- Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
- Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
- Link policy: RSWITCH SNIFF
- Link mode: SLAVE ACCEPT
- Name: 'firefly-0'
- Class: 0x700100
- Service Classes: Object Transfer, Audio, Telephony
- Device Class: Computer, Uncategorized
- HCI Version: 4.0 (0x6) Revision: 0x10c
- LMP Version: 4.0 (0x6) Subversion: 0x6109
- Manufacturer: Broadcom Corporation (15)
Copy the code
Unfortunately, after adding device it came with an error with paring procedure.
I am using Blueman applet 1.23 for managing my bluetooth devices.
For example, It recognized my phone (samsung galaxt s5) but it sends wrong paring codes (wrong numbers) to paring device.
This same problem I have with bluetooth keyborad (Rapoo T Series)
Author: busybee Time: 1/8/2015 15:17
@herbat
I tried blueman, and it paired my phone well with correct code display.
I install it with:
sudo apt-get install blueman notify-osd
Maybe you need to launch the blueman-applet in a terminal window to see detailed log.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) |
Powered by Discuz! X3.1 |