Hcitool Can T Create Connection Input Output Error
Contents |
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with hcitool lescan input output error some types of ads) More information about our ad policies X hcitool cc can't create connection You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS hcitool lecc input/output error turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ error: connect error: transport endpoint is not connected (107) Please provide the ad click URL, if possible: Home Browse BlueZ Mailing Lists BlueZ Brought to you by: holtmann Summary Files Reviews Support Wiki Mailing Lists Donate Code bluez-announce bluez-devel bluez-users [Bluez-users] Re: Can't create connection: Input/output error - more info [Bluez-users] Re: Can't create connection: Input/output error - more info From: Miernik
Error: Connect Error: Device Or Resource Busy (16)
wrote: > Miernik
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Gatttool Connection Refused 111
the workings and policies of this site About Us Learn more about hcitool auth not connected Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions bluez Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. https://sourceforge.net/p/bluez/mailman/message/15055991/ Join them; it only takes a minute: Sign up Bluetooth LE on Raspbian up vote 4 down vote favorite 1 I installed bluez-5.15 from source with the following configuration: $ ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc \ --localstatedir=/var --libexecdir=/lib --disable-systemd Then I had to copy gatttool manually into the /usr/local/bin dir $ sudo cp attrib/gatttool /usr/local/bin/ I rebooted the Raspberry http://stackoverflow.com/questions/22213793/bluetooth-le-on-raspbian Pi and tried the following to connect to my BLE device: $ sudo hciconfig hci0 up $ sudo hcitool lescan LE Scan ... EA:FB:B5:CE:B0:13 DfuTarg $ sudo hcitool lewladd EA:FB:B5:CE:B0:13 $ sudo hcitool lecc EA:FB:B5:CE:B0:13 Could not create connection: Input/output error So then I tried to connect with gatttool: $ gatttool -b EA:FB:B5:CE:B0:13 --interactive [EA:FB:B5:CE:B0:13][LE]> connect Attempting to connect to EA:FB:B5:CE:B0:13 Error: connect error: Device or resource busy (16) [EA:FB:B5:CE:B0:13][LE]> What am I missing here - is this a configuration issue? What do the errors mean? linux raspberry-pi bluetooth-lowenergy raspbian bluez share|improve this question asked Mar 6 '14 at 2:40 Sekkou527 3421311 Is this a USB dongle? If you try unplugging it and re-plugging it in does that fix it? –Tim Tisdall Mar 6 '14 at 14:29 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted First off, I spoke with a colleague about my configuration and for Raspbian (or more specifically, Debian) he recommended the following configuration settings: ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-library --with-systemdsystemunitdi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting http://stackoverflow.com/questions/22062037/hcitool-lescan-shows-i-o-error ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes https://ubuntuforums.org/showthread.php?t=2204808 a minute: Sign up hcitool lescan shows I/O error up vote 11 down vote favorite 3 I'm trying to do a lescan using hcitool on the raspberry pi. The command prints out Set scan parameters failed: Input/output error. I'm not sure, output error what exactly happens here. My iPhone is advertising here. I'm using a BLE dongle from IOGear. However, if I restart my machine, it shows the a MAC address after I issue the lescan command, and starts showing the same error after I issue the lescan command a couple of more times. Is it like, the lescan command cannot be issued more than once? raspberry-pi bluetooth-lowenergy bluez share|improve this question edited Apr 14 '14 at 16:45 yousif saeed 2,26611435 asked Feb 27 '14 t create connection at 7:38 aauser 3261513 try unplugging it and re-plugging it in. There's all sorts of ways the dongles can get into states where they don't respond the way you want. The IOGear one seems to be the best, though. –Tim Tisdall Feb 27 '14 at 20:02 @aauser - did you ever solve this? I'm stuck on the same problem. –Duncan Bayne Mar 10 '14 at 2:14 @aauser - I should mention that I'm using a D-Link DBT-120 on 64-bit Linux Mint 16 (Petra). –Duncan Bayne Mar 10 '14 at 4:32 1 It appears the BlueZ BLE scanning is still pretty buggy. However, this thread might help: redbearlab.zendesk.com/entries/… –David H. Bennett Mar 17 '14 at 0:20 1 Also, what is your kernel and BlueZ versions? The end of this thread mentions kernel 3.5 or greater. linkedin.com/groups/… –David H. Bennett Mar 17 '14 at 0:23 | show 2 more comments 3 Answers 3 active oldest votes up vote 17 down vote That happens often really often to me. I'm developing with it and it just happens from time to time. I was also able to reproduce your error within 5 minutes ;-) I'm running bluez v.5.17. However i can run lescan more than one time without this error. hcitool lescan Set scan parameters failed: Input/output error try: hciconfig hci0 down hciconfig hci0 up and check the status afterwords. if this doesn't work or it hangs in DOW
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Hardware Proximity Sensing with Bluetooth Low Energy Device Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 2 of 2 Thread: Proximity Sensing with Bluetooth Low Energy Device Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode February 10th, 2014 #1 victorbrca2 View Profile View Forum Posts First Cup of Ubuntu Join Date Dec 2013 Beans 6 Proximity Sensing with Bluetooth Low Energy Device I bought one of the new Casio G-Shock with Bluetooth (GB-X6900) in the hope that I would be able to use it with BlueProximity to auto lock/unlock, however I'm not able to detect/pair it with my computer. So I thought maybe I could write a script that will do the same... I can find the device using lescan, but for some reason I'm not able to connect to it. Any ideas? Code: # hcitool lescan LE Scan ... CC:EE:18:57:D5:6A CASIO GB-X6900B # gatttool -b CC:EE:18:57:D5:6A -m 48 --interactive [ ][CC:EE:18:57:D5:6A][LE]> connect Connecting... connect error: Device or resource busy (16) # hcitool lecc CC:EE:18:57:D5:6A Could not create connection: Input/output error # hcitool cc CC:EE:18:57:D5:6A Can't create connection: Input/output error Adv Reply February 11th, 2014 #2 victorbrca2 View Profile View Forum Posts First Cup of Ubuntu Join Date Dec 2013 Beans 6 Re: Proximity Sensing with Bluetooth Low Energy Device If anyone ever have this issue, try using "--random" with gatttool. Code: gatttool -b CC:EE:18:57:D5:6A -t random --interactive And if that doesn't work, try stopping or removing the device, then try again: Code: # hciconfig hci0 down # hciconfig hci0 up # gatttool -b CC:EE:18:57:D5:6A -t random --interactive [ ][CC:EE:18:57:D5:6A][LE]> connect [CON][CC:EE:18:57:D5:6A][LE]> However I'm still not able to figure out how to find the device distance. "rfcomm connect" always fails, so I can