Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-24-2014, 01:51 PM   #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

Last edited by pratsam; 10-25-2014 at 03:50 AM.


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
Serial loop back test doesnt work raypen Linux - Hardware 5 01-07-2012 06:06 AM
What can do scheduled remote back-ups to a remote ftp server? eindoofus Linux - Software 1 10-07-2011 12:45 PM
bluetooth card is not set to HCI page_seven Linux - Hardware 0 09-30-2010 07:54 PM
Bluetooth Pairing - hci cc fails, but rfcomm connect works gpecke Linux - Newbie 5 07-20-2009 03:55 PM
Bluetooth won't start on Fedora 8 dist - HCI and RFCOMM issues Moo Linux - Newbie 1 02-06-2009 06:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration