RTL8723bs Bluetooth
#11
Thanks xalius/ good to know!
  Reply
#12
(06-17-2016, 04:57 AM)xalius Wrote: I think what Faye wanted to say is that https://github.com/lwfinger/rtl8723bs_bt is not a Linux kernel driver. It just provides a small tool to handshake with the BT module via the UART and upload a firmware blob to the internal BT MCU. After that, the module can be attached to the BT stack (which already speaks HCI H5)  available from the current kernel/userland. So the question is rather, how would this workaround be implemented in a proper way? Make a kernel side driver that just does the handshake and firmware loading? Or have something in userland that just calls the tool from lwfinger if a rtl8723bs wifi adapter is detected? I am only a embedded hardware developer with a bit of Linux experience so I dont know what the "right" way is to do this...

Thanks for translating for me Smile  start_bt.sh resembles the /etc/init/bluetooth.conf file (probably unsurprisingly).  Probably it would be fine to install another .conf file which runs rtk_hciattach as daemon once bluetooth.conf has started?
  Reply
#13
Best method to incorporate this I would say is the pine_fix_whetever scripts.

I will tar up the necessary stuff and write up a systemd service entry.

Btw blueman is far more stable I find provided the startup turns the power on to the module.

Wink
If you like my work be sure to check out my site or wish to donate to the cause

Cheers Big Grin
  Reply
#14
I might eventually package this rtl8723bs_bt but it does not have any licensing information so it is troublesome. If anyone has details or working on it let me know. Best link me to a Git repository with already has packaging Tongue
  Reply
#15
I was looking a bit at what firmware blobs are on the android image, because I have no clue what device classes will work besides HID since there seems to be at least a parallel interface next to the UART for audio (PCM) data, maybe some more things are needed to support that...
Come have a chat in the Pine IRC channel >>
  Reply
#16
no licensing info can be found from the github where it came from.

basically it comes with the firmware and the compiles the applications to attach/load it with it's start script.

It copies the .bin file(s) ti /lib/firmware/rtl_bt and leaves the application script in the build directory.

I personally moved the scripts over to /usr/local/sbin/bluetooth
then created pine64_bluetooth.sh in /usr/local/sbin

pine64_bluetooth.sh contents

#!/bin/bash
# Shell script to install Bluetooth firmware and attach BT part of
# RTL8723BS

echo "Initializing Pine64 Bluetooth Module."

/usr/local/sbin/bluetooth/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 > /usr/local/sbin/bluetooth/hciattach.txt 2>&1 &
/bin/sleep 5
/usr/sbin/rfkill unblock 3
/usr/bin/bluetoothctl
pairable on
power on
quit

echo "Pine64 Bluetooth Module Active"

then added a service

bluetooth-module.service

[Unit]
Description=Start Pine64 Bluetooth Module
After=systemd-modules-load.service local-fs.target
[Service]
Type=idle
ExecStart=/usr/local/sbin/pine64_bluetooth.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

no issues on each reboot plus blueman in mate works flawlessly Wink
If you like my work be sure to check out my site or wish to donate to the cause

Cheers Big Grin
  Reply
#17
Mhm any chance you can make a Debian package?
  Reply
#18
I will build the package tonight Wink
If you like my work be sure to check out my site or wish to donate to the cause

Cheers Big Grin
  Reply
#19
This will answer the problem of the Bluetooth Module for Kernel. So bluetooth keyboards can login and not require autologin to get Bluetooth up and running via desktop. Great work!

jhawk
  Reply
#20
It's not really a kernel module, the BT/Wifi module has a UART that is connected to ttyS1, and all that project does is provide a way to upload a firmware binary that enables the module to be attached to the BT stack on the Linux side:

/usr/local/sbin/bluetooth/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 > /usr/local/sbin/bluetooth/hciattach.txt 2>&1 &
Come have a chat in the Pine IRC channel >>
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Wifi / Bluetooth Board Update S265 2 996 07-30-2020, 04:53 PM
Last Post: S265
Information Howto: Getting Bluetooth (serial console) working on Debian pfeerick 14 14,778 08-19-2019, 04:33 AM
Last Post: Roverius
  WIFI & Bluetooth? 7777777 14 13,322 12-24-2016, 05:01 AM
Last Post: Toriless
  Using Bluetooth for Sending serial data Arjun 9 5,534 10-19-2016, 10:19 PM
Last Post: Arjun
  How can you get the WIFI/Bluetooth module separate? GoZone 8 4,345 07-06-2016, 05:23 PM
Last Post: JasperBrown
  WiFi/BT module, no bluetooth riviera89 5 2,692 06-24-2016, 04:32 PM
Last Post: srinivas.s34@gmail.com
  Board doesn't boot when wifi/Bluetooth connected with Lcd screen Krinilssen 4 2,108 06-16-2016, 07:22 AM
Last Post: Krinilssen
  WIFI/Bluetooth Chipset monmoonmooonmoooon 2 2,030 01-20-2016, 06:02 AM
Last Post: monmoonmooonmoooon

Forum Jump:


Users browsing this thread: 1 Guest(s)