LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-06-2020, 09:34 AM   #1
icegood
Member
 
Registered: Sep 2009
Distribution: ubuntu 21.04
Posts: 65

Rep: Reputation: 15
linux old buildroot : bluetooth connection from shell


Hi there.

I have an old enough buildroot tree with a relatively new kernel. All packages inside are old enough. For example, bluez5-utils is 0f 5.21 (this is dictated by my toolchain).
I have also qemu image that works fine with that and I have bluetooth device inside.

I want to create a connection with external mobile phone via hcitool/hci

For this moment I'm able to create turn on device and scan others via:
Code:
hciconfig hci0 up piscan
hciconfig hci0 name <my_name>
hcitool scan / hcitool lescan
Now I'm able to see device outside and my device is available from outside with name <my_name> as well. What's next? How to create a connection form shell?

P.S. Please, do no suggest bluetoothctl that is available from v 5.44 of bluez.

Last edited by icegood; 05-06-2020 at 09:36 AM.
 
Old 05-10-2020, 12:33 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably you can find something useful here: https://wiki.archlinux.org/index.php...ed_BlueZ_tools
or here: https://www.pcsuggest.com/linux-blue...hcitool-bluez/ (but probably you found them already)
 
  


Reply

Tags
bluetooth, bluez, buildroot, hcitool



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
LXer: Free embedded Linux training materials demystify Buildroot LXer Syndicated Linux News 0 06-09-2015 02:20 AM
Add software to a embedded linux created with buildroot FIRE47 Linux - Newbie 4 12-22-2013 04:34 PM
My first embedded linux with Buildroot and Qemu emping Linux - Embedded & Single-board computer 5 06-03-2010 03:46 AM
mv: cannot overwrite directory `/home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma tcma Linux - Software 1 10-05-2004 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration