Power & Source of Big Ideas

Bluetooth In NanoPC-T3 board doesn't work with hcitool scan?

Moderators: chensy, FATechsupport

Hi,
How to bluetooth work on Nano-PC T3, not see the device. ?

Code: Select all

hcitool scan

I'm refer at site: http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T3 but that's not work? why?
Attatchment the log:

Code: Select all

root@nano:~# hcitool scan
Device is not available: No such device
root@nano:~#
root@nano:~# hcitool dev
Devices:
root@nano:~#


Regards,
HuyLe
Seeing the boot log to login

Debian GNU/Linux 8 nano ttySAC0

nano login: [ 24.192000] Bluetooth: RFCOMM socket layer initialized
[ 24.192000] Bluetooth: RFCOMM ver 1.11
[ 25.272000] bt_bcm: rfkill set_block Off GPIOB.8


Debian GNU/Linux 8 huyle ttySAC0

huyle login: root
Password:
Last login: Sun Apr 23 15:56:37 CST 2017 on ttySAC0
Linux nano 3.4.39-s5p6818 #4 SMP PREEMPT Wed Mar 1 11:51:02 HKT 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@nano:~# hcitool scan
Device is not available: No such device
root@nano:~# dmesg | grep Blue
[ 5.164000] Bluetooth: Core ver 2.21
[ 5.168000] Bluetooth: HCI device and connection manager initialized
[ 5.176000] Bluetooth: HCI socket layer initialized
[ 5.180000] Bluetooth: L2CAP socket layer initialized
[ 5.184000] Bluetooth: SCO socket layer initialized
[ 5.200000] Bluetooth: HCI UART driver ver 2.3
[ 5.200000] Bluetooth: HCI UART protocol H4 registered
[ 5.200000] Bluetooth: HCI UART protocol BCM registered
[ 5.200000] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 5.200000] Bluetooth: BNEP filters: protocol multicast
[ 5.200000] Bluetooth: BNEP socket layer initialized
[ 24.192000] Bluetooth: RFCOMM socket layer initialized
[ 24.192000] Bluetooth: RFCOMM ver 1.11
root@nano:~# dmesg | grep bt_bcm
[ 0.704000] bt_bcm: rfkill initialized
[ 5.044000] bt_bcm: rfkill set_block Off GPIOB.8
[ 16.124000] bt_bcm: rfkill set_block Off GPIOB.8
[ 16.200000] bt_bcm: rfkill set_block On GPIOB.8
[ 25.272000] bt_bcm: rfkill set_block Off GPIOB.8
root@nano:~#
root@nano:~# hcitool dev
Devices:
root@nano:~#
root@nano:~# rfkill unblock 0
[ 499.368000] bt_bcm: rfkill set_block On GPIOB.8
root@nano:~# rfkill unblock 0
[ 500.164000] bt_bcm: rfkill set_block On GPIOB.8
root@nano:~# rfkill unblock 0
[ 501.008000] bt_bcm: rfkill set_block On GPIOB.8
root@nano:~# hcitool dev
Devices:
root@nano:~#


--Regards,
HuyLe
I am not sure if you have solved this. Is hcitool installed on your system?

I noticed here https://packages.debian.org/search?searchon=contents&keywords=hcitool&mode=path&suite=stable&arch=any that maybe you need to:

Code: Select all

sudo apt-get install bluez
Hi Davef,

Thanks to reply!
I'm sure the package is installed. The issue is why don't detect device controler ??
I checked on two boards NanoPC-T3 but still not seeing the device controler.

root@huyle:~#
root@huyle:~# sudo apt-get install bluetooth bluez blueman
Reading package lists... Done
Building dependency tree
Reading state information... Done
blueman is already the newest version.
bluetooth is already the newest version.
bluez is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.
root@huyle:~# systemctl status bluetooth
�● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since Fri 2016-01-01 16:55:20 CST; 1 years 3 months ago
Docs: man:bluetoothd(8)
Main PID: 1144 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
�└�─1144 /usr/lib/bluetooth/bluetoothd

Jan 01 16:55:20 huyle bluetoothd[1144]: Bluetooth daemon 5.23
Jan 01 16:55:20 huyle systemd[1]: Started Bluetooth service.
Jan 01 16:55:20 huyle bluetoothd[1144]: Starting SDP server
Jan 01 16:55:20 huyle bluetoothd[1144]: Bluetooth management interface 1.10 ...d
Hint: Some lines were ellipsized, use -l to show in full.
root@huyle:~# hcitool dev
Devices:
root@huyle:~# systemctl status bluetooth -l
�● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since Fri 2016-01-01 16:55:20 CST; 1 years 3 months ago
Docs: man:bluetoothd(8)
Main PID: 1144 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
�└�─1144 /usr/lib/bluetooth/bluetoothd

Jan 01 16:55:20 huyle bluetoothd[1144]: Bluetooth daemon 5.23
Jan 01 16:55:20 huyle systemd[1]: Started Bluetooth service.
Jan 01 16:55:20 huyle bluetoothd[1144]: Starting SDP server
Jan 01 16:55:20 huyle bluetoothd[1144]: Bluetooth management interface 1.10 initialized
root@huyle:~# bluetoothctl
[bluetooth]# help
Available commands:
list List available controllers
show [ctrl] Controller information
select <ctrl> Select default controller
devices List available devices
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
scan <on/off> Scan for devices
info <dev> Device information
pair <dev> Pair with device
trust <dev> Trust device
remove <dev> Remove device
connect <dev> Connect device
disconnect <dev> Disconnect device
version Display version
quit Quit program
[bluetooth]# list
[bluetooth]# devices
[bluetooth]# power on
No default controller available
[bluetooth]# version
Version 5.9
[bluetooth]#
What do you get when you do:

Code: Select all

sudo service --status-all
Hi,
Attachment the log run service:
root@huyle:~#
root@huyle:~# systemctl status bluetooth
��● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since Fri 2016-01-01 16:00:26 CST; 1 years 3 months ago
Docs: man:bluetoothd(8)
Main PID: 1145 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
��└��─1145 /usr/lib/bluetooth/bluetoothd

Jan 01 16:00:26 huyle bluetoothd[1145]: Bluetooth daemon 5.23
Jan 01 16:00:26 huyle systemd[1]: Started Bluetooth service.
Jan 01 16:00:26 huyle bluetoothd[1145]: Starting SDP server
Jan 01 16:00:26 huyle bluetoothd[1145]: Bluetooth management interface 1.10 ...d
Hint: Some lines were ellipsized, use -l to show in full.
root@huyle:~# hcitool dev
Devices:
root@huyle:~# sudo service --status-all
[ - ] alsa-utils
[ - ] apache2
[ + ] avahi-daemon
[ + ] avahi-dnsconfd
[ + ] bluetooth
[ - ] bootlogs
[ - ] bootmisc.sh
[ ? ] brcm_patchram_plus
[ - ] checkfs.sh
[ - ] checkroot-bootclean.sh
[ - ] checkroot.sh
[ - ] console-setup
[ + ] cron
[ + ] dbus
[ - ] dnsmasq
[ - ] gpsd
[ - ] hostapd
[ - ] hostname.sh
[ - ] hwclock.sh
[ - ] isc-dhcp-server
[ - ] keyboard-setup
[ - ] killprocs
[ + ] kmod
[ - ] lcd4linux
[ + ] lightdm
[ - ] motd
[ - ] mountall-bootclean.sh
[ - ] mountall.sh
[ - ] mountdevsubfs.sh
[ - ] mountkernfs.sh
[ - ] mountnfs-bootclean.sh
[ - ] mountnfs.sh
[ + ] network-manager
[ + ] networking
[ + ] nmbd
[ + ] ntp
[ - ] pppd-dns
[ + ] procps
[ + ] rc.local
[ + ] resolvconf
[ - ] rmnologin
[ - ] rsync
[ + ] rsyslog
[ - ] samba
[ + ] samba-ad-dc
[ - ] screen-cleanup
[ - ] sendsigs
[ - ] smbd
[ + ] ssh
[ - ] sudo
[ + ] tftpd-hpa
[ ? ] tightvncserver
[ + ] udev
[ + ] udev-finish
[ - ] udhcpd
[ + ] ufw
[ - ] umountfs
[ - ] umountnfs.sh
[ - ] umountroot
[ + ] urandom
[ + ] vsftpd
[ - ] x11-common
[ + ] xinetd
root@huyle:~# sudo service --status-all | grep bluetooth
[ + ] bluetooth
[ ? ] brcm_patchram_plus
[ ? ] tightvncserver
root@huyle:~# hcitool dev
Devices:
root@huyle:~#
Dropping:

Code: Select all

 brcm_patchram_plus

into Google turns up some possibly interesting reading.

Sorry, can't help further.
Good luck!
Ok Davef,
Thanks to disscussion. Will sent to you if bluetooth work.


--Regards,
HuyLe

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 5 guests