LinuxQuestions.org
Review your favorite Linux distribution.
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 10-21-2014, 03:05 AM   #1
pratsam
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
how to put bluetooth in test mode


I need to write a program( c/C++) to place the bluetooth( tester ) in testing mode i.e loop back mode and when DUT( device under test) is connected the tester will loop back all the packets via synchronous and asynchronous link.
I have tried few things like using
Quote:
hcitool cmd 0x006
but it doesn't work. Before writing the program I need to test it, so for that I followed the following procedure

1) To test, I took couple of linux machine with bluetooth connectivity and fired the below command on both the boxes
Quote:
hcitool cmd 0X0006 0x002 0x01
2) Checked via hcidump and found that both machine and entered into read write loopback mode.

3) Made one box Master and other slave via hciconfig lm & lp command

4) Now what next ? how would I test packets?

5) I tried doing scanning via hcitool scan command but it failed to scan devices ( I think this happens after firing the hcitool cmd 0x0006 0x002 0x01 )

Can someone please point me to right direction ..

Basically I need help in following points :

1) Do you guys think I am approaching the problem in right direction ? If yes then what should be my next step ?just to let you guys knows I have stream audio from my tester successfully via A2DP and SCO link.

2) If this is not right approach , can someone please point me to right direction?

Thanks a lot in Advance.
 
Old 10-23-2014, 09:32 AM   #2
pratsam
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Can some one please help me
 
  


Reply

Tags
bluetooth, bluez


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
[SOLVED] wanting my own lan+net through-put test SaintDanBert Linux - Software 7 06-19-2012 11:41 AM
Anyone with Bluetooth want to test a program I am working on? MS3FGX Linux - Software 10 06-24-2010 08:30 PM
LXer: Review: 3 Linux Desktops Put To The Test LXer Syndicated Linux News 0 11-11-2006 05:21 PM
Is there any way to run rescue mode in test mode. kadhiravan.r Linux - General 2 07-13-2006 08:11 AM
Install Tie::File - where to put Test/More.pm? waffe Linux - General 0 11-25-2003 09:31 PM

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

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