LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-28-2013, 01:06 PM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
sdptool give Operation already in progress on ubuntu 12.04 LTS after continuous usage


Hi,
I use sdptool to get sdp of a bluetooth device like this for multiple times:
Quote:
sdptool -i hci0 browse --xml XX:XX:XX:XX:XX:XX
At first it works fine but it gaves me this error after continuous multiple usage:
Quote:
Failed to connect to SDP server on XX:XX:XX:XX:XX:XX: Operation already in progress
I have to say when I change bluetooth mac address to some other phones or devices (ex. YY:YY:YY:YY:YY:YY)
or
when I change locale hci device to hci1 for example
the sdptool works fine but when I came back to previous XX:XX:XX:XX:XX:XX address on previous hci0, it gives me "Operation already in progress" again and again
for more information :
Quote:
l2ping XX:XX:XX:XX:XX:XX
Can't connect: Operation already in progress
Quote:
cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
NAME="Ubuntu"
VERSION="12.04.2 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.2 LTS)"
VERSION_ID="12.04"
Quote:
uname -a
Linux e-pc 3.5.0-27-generic #46~precise1-Ubuntu SMP Tue Mar 26 19:33:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Quote:
sdptool -h
sdptool - SDP tool v4.98
.
.
Thanks for any help
 
Old 07-05-2013, 05:51 PM   #2
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
I think I found a solution for my problem I don't no why this works but works!!!!
Quote:
#cat sdp.sh
Code:
#!/bin/bash
while true
do 
    hciconfig  hci0 down
    hciconfig  hci0 up
    sdptool -i hci0 search --bdaddr 00:17:E3:F4:B3:24 --xml OPUSH
    hciconfig  hci0 down
    hciconfig  hci0 up

    sdptool -i hci0 brows --xml 4C:8B:EF:A1:57:19
done
yes, I simply down and up hci device then that error never happens.
but can any body tell me why this happen and what is the better way?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
converting a for loop to an array so zenity can give progress wonderfullyrich Programming 2 03-01-2012 08:58 AM
LXer: Tips from an RHCE: How can I make dd give me a progress report? LXer Syndicated Linux News 0 08-17-2007 06:50 AM
Operation already in progress(114) cybil001 Programming 3 02-21-2007 06:25 AM
smbmount stopped working (operation already in progress) jeffbarish Linux - Networking 2 10-22-2004 04:46 AM
OS Error 115: Operation is in progress pomalley Linux - General 0 02-08-2004 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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