LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 10-25-2014, 03:44 AM   #1
pratsam
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

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

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

Quote:
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
Quote:
0000 03 31 00 30 bf ff bb ff e4 etc
But Sent SCO DATA has no data in it example

Quote:
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, 09:38 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
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

Tags
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 10:45 PM
Serial loop back test doesnt work raypen Linux - Hardware 5 01-07-2012 06:06 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 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