LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2017, 01:40 AM   #1
victorwang
Member
 
Registered: Aug 2017
Posts: 30

Rep: Reputation: Disabled
connect BT issue on linux


I'm using Linux+QT for my OS system.

And I'm trying to connect my Speaker via BT.

I do it with following steps.

1. I try to run 'hciconfig hci0 up'.And it shows following results.
Code:
hci0:   Type: BR/EDR  Bus: USB

BD Address: AC:83:F3:59:B1:CB  ACL MTU: 1021:8  SCO MTU: 64:1

UP RUNNING PSCAN ISCAN

RX bytes:40790 acl:192 sco:0 events:1010 errors:0

TX bytes:46845 acl:184 sco:0 commands:573 errors:0
2. I will scan by running
Code:
hcitool scan
Then I will get my Speaker address.

3. I try to run
Code:
rfcomm bind hci0 xx:xx:xx:xx:xx:xx 1
And i will get rfcomm0 under /dev .

P.S `xx:xx:xx:xx:xx:xx` is my local BT device address.

4. I try to connect by running
Code:
rfcomm connect hci0 78:45:62:55:66:99 1
Then i will get `Can't connect RFCOMM socket: Operation now in progress` in
30 seconds.

P.S `78:45:62:55:66:99` is Speaker BT address.

My question is what did `Operation now in progress` mean when it also tell me that `Can't connect RFCOMM socket` ?

Did I connect my Speaker successfully or not?

If not how did i solve this problem?

Did I miss any steps here?

This is my email.
victor_wang@winmate.com.tw
 
Old 08-09-2017, 03:23 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,290

Rep: Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900
Quote:
Originally Posted by victorwang View Post
I'm using Linux+QT for my OS system.
And I'm trying to connect my Speaker via BT. I do it with following steps.

1. I try to run 'hciconfig hci0 up'.And it shows following results.
Code:
hci0:   Type: BR/EDR  Bus: USB
BD Address: AC:83:F3:59:B1:CB  ACL MTU: 1021:8  SCO MTU: 64:1
UP RUNNING PSCAN ISCAN
RX bytes:40790 acl:192 sco:0 events:1010 errors:0
TX bytes:46845 acl:184 sco:0 commands:573 errors:0
2. I will scan by running
Code:
hcitool scan
Then I will get my Speaker address.

3. I try to run
Code:
rfcomm bind hci0 xx:xx:xx:xx:xx:xx 1
And i will get rfcomm0 under /dev .
P.S `xx:xx:xx:xx:xx:xx` is my local BT device address.

4. I try to connect by running
Code:
rfcomm connect hci0 78:45:62:55:66:99 1
Then i will get `Can't connect RFCOMM socket: Operation now in progress` in 30 seconds.
P.S `78:45:62:55:66:99` is Speaker BT address.

My question is what did `Operation now in progress` mean when it also tell me that `Can't connect RFCOMM socket` ? Did I connect my Speaker successfully or not?
Can you play music through it? If not...you didn't.
Quote:
If not how did i solve this problem? Did I miss any steps here? This is my email.
Sorry, no. This is a community forum, so unless you participate in the discussion here, you will not get answers. This isn't the place to come for personalized, free, one-on-one tech support via email. You need to read the "Question Guidelines" and "How to ask a smart question" links in my posting signature.

While you provide the commands and their results, you omit a great deal of other things, such as the version/distro of Linux, what kind of desktop GUI you're using, if you've ever had bluetooth device working with this system before, what kind of speaker, etc. Typically, in both KDE and Gnome, there is a taskbar applet for Bluetooth, where you can right-click and add devices much more easily.
 
Old 08-10-2017, 01:33 AM   #3
victorwang
Member
 
Registered: Aug 2017
Posts: 30

Original Poster
Rep: Reputation: Disabled
I am sure that my devices working.
I can using bluetoothctl to connect my Phone via BT.
But It is strange that if I using this command and it will not work.
Code:
rfcomm connect hci0 xx:xx:xx:xx:xx:xx 1
I'm using Linux 4.1.15.
It is the first time I porting the bluetooth device on my i.MX6 sabreSD platform.
I build the image by using Yocto project.
I just trying to connect my Speaker via BT by typing command on terminal.

My Speaker is a simple Speaker to connect BT and broadcast sound out.

Do you have other suggestion?
Or you need more information?
 
Old 08-10-2017, 08:30 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,290

Rep: Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900Reputation: 7900
Quote:
Originally Posted by victorwang View Post
I am sure that my devices working. I can using bluetoothctl to connect my Phone via BT. But It is strange that if I using this command and it will not work.
Code:
rfcomm connect hci0 xx:xx:xx:xx:xx:xx 1
You asked if you connected to your speaker successfully. Since you can't play music/use it, then you obviously DID NOT connect successfully
Quote:
I'm using Linux 4.1.15.
There is no "Linux 4.1.15"...what version/distro????? CentOS 6? Mint 17? Ubuntu 16.04???
Quote:
It is the first time I porting the bluetooth device on my i.MX6 sabreSD platform. I build the image by using Yocto project. I just trying to connect my Speaker via BT by typing command on terminal. My Speaker is a simple Speaker to connect BT and broadcast sound out. Do you have other suggestion? Or you need more information?
So you are using a custom image on an embedded system; this is FAR different than a desktop/server system. It would help you to read up on the various types of Bluetooth devices. Things like speakers are audio devices, and phones are not. You may not have A2DP enabled/compiled in, to allow bluetooth to use such a device.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba issue: I can share but I can't connect rl5 Mandriva 4 11-03-2012 01:34 AM
My issue is that I can't seem to connect to the internet during the install uberlinuxguy Debian 9 12-03-2008 07:08 PM
SuSE10.2 networking issue Inter. connect. issue LVSuSE Linux - Networking 3 08-31-2007 03:42 AM
ssh issue: cannot connect to x server jgruss Linux - Software 3 07-14-2004 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:32 AM.

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