Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 10-25-2014, 04:44 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
how to test remote loop back in Bluetooth using hci commands

I have small in-house device running on linux platform with bluez libraries.

I have created a sco connection with Jaber Easygo device and everything works as expected. I mean I can play music on my linux machine using aplay and I can successfully hear on jabber. similarly I can record voice from jabber to linux machine using arecord.

Now I want to do testing using remote loopback, so that I send packets from Jabber to Linux machine and receive same packet back into Jabber.

After trying and spending days I couldn't able to crack it, so I am requesting you guys to please give some advice.

Below are the following things I tried.

1) Load kernel module snd-bt-sco 2) Ran btsco -v -r

o/p : successfully created the link and can play or record music . so far so good

Now for remote testing

i) open a terminal and type

hcitool cmd 0x06 0x002 0x02
o/p : sometimes
HCI Event : 0xff plen 7 CD 03 00 44 00 00 00
ii) In another terminal I use hcidump

hcidump -X sco -w test_remote_loop_log
iii) In another terminal I record so that packest goes from jabber to Linux box

arecord -B 1000000 _D plughw:Headset /home/my_place/test_remote_loop_1.wav
then I speak something on Jabber and close the above recording

iv) Using Wireshark and filter type "bthci_sco" all I have noticed is Rcvd SCO DATA has data in it ( which is obviously expected) example
0000 03 31 00 30 bf ff bb ff e4 etc
But Sent SCO DATA has no data in it example

0000 03 31 00 30 00 00 00 00 00 ..till end
Can some please guide me what I am doing wrong

Thanks a lot
windows_7 pratsam is online now Click to check your reputation for this post
Old 10-28-2014, 10:38 AM   #2
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,588

Rep: Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363Reputation: 3363
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

bluetooth, bluez, hciconfig, hcitool, linux

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
how to test remote loop back in Bluetooth using hci commands pratsam Linux - Software 0 10-25-2014 11:45 PM
Serial loop back test doesnt work raypen Linux - Hardware 5 01-07-2012 07:06 AM
bluetooth card is not set to HCI page_seven Linux - Hardware 0 09-30-2010 08:54 PM
Bluetooth Pairing - hci cc fails, but rfcomm connect works gpecke Linux - Newbie 5 07-20-2009 04:55 PM
Bluetooth won't start on Fedora 8 dist - HCI and RFCOMM issues Moo Linux - Newbie 1 02-06-2009 07:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 PM.

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