Hcitool Auth Input Output Error
Contents |
Republic, Pardubice Registered: 2007-03-12 Posts: 15 Problems with bluetooth Hallo,i have problem with my bluetooth devices. I have 4 devices:1. Desktop (Archlinux, USB dongle bluetooth: Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode))hci0: Type: USB hcitool lescan input output error BD Address: 00:08:1B:02:35:16 ACL MTU: 192:8 SCO MTU: 64:8
Hcitool Lecc Input/output Error
UP RUNNING PSCAN RX bytes:40784 acl:884 sco:0 events:1813 errors:0 TX bytes:23923 acl:743 sco:0 commands:507 errors:02. Notebook
Hcitool Cc Input Output Error
(HP NX7400 with Archlinux, Integrated bluetooth, in lsusb is only Bus 001 Device 003: ID 03f0:171d Hewlett-Packard and its needn't be BT)hci0: Type: USB BD Address: 00:16:41:87:3D:92 ACL MTU: 1017:8 SCO MTU: 64:8
Error: Connect Error: Transport Endpoint Is Not Connected (107)
UP RUNNING PSCAN ISCAN RX bytes:565 acl:0 sco:0 events:71 errors:0 TX bytes:198 acl:0 sco:0 commands:31 errors:03. Palm Tungsten T24. Sony Ericsson T610 1. problem: Notebook and Desktop is switched to connectable (they isn't discoverable from T2 and T610) and I don't know how can i switch this mode If i change file /var/lib/bluetooth/00:16:41:87:3D:92/config at discoverable so it isn't work 2. problem: I can't pair my devices. error: connect error: device or resource busy (16) T2 and T610 is OK, but Notebook with Desktop or T610 or T2 is problem. It same with Desktop and others. If i can found some devices at NB or Desktop so i cant connect with:hcitool cc 00:16:41:87:3D:92It create connection but only for few seconds cx@delorean:~$ sudo hcitool cc 00:16:41:87:3D:92 cx@delorean:~$ sudo hcitool con Connections: < ACL 00:16:41:87:3D:92 handle 42 state 1 lm MASTER cx@delorean:~$ sudo hcitool con Connections: < ACL 00:16:41:87:3D:92 handle 42 state 1 lm MASTER cx@delorean:~$ sudo hcitool con Connections: cx@delorean:~$ sudo hcitool con Connections:If i try:cx@delorean:~$ sudo hcitool cc 00:16:41:87:3D:92; sudo hcitool auth 00:16:41:87:3D:92I get:HCI authentication request failed: Connection timed out3. problem: I don't know how but i paired my desktop and T2, but if i want create connection between desktop and T2 with rfcommsudo rfcomm bind 0 00:07:E0:10:74:7E 1everything is ok, but if i try send some data to T2pilot-xfer -p /dev/rfcomm0 -i data/inst/palm/new/Phoinix.prci get onlyListening for incoming connection on /dev/rfcomm0...and T2 get "Connection in progress..." there is end and desktop send nothing to T2 I don't know where i do mistake Can you help me? Same problems i have with my notebook.Logs and files:Apr 30 12:20:05 delorean sudo: cx : TTY=pts/2 ; PWD=/home/cx ; USER=root ; COMMAND=/usr/bin/hcitool auth 00:16:41:87:3D:92 Apr 30 12:20:50 delorean sudo: cx : TTY=pts/2 ; PWD=/home/cx ; USER=root ; COMMAND=/usr/bin/hcitoo
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 some types of ads) More information about our ad hcitool lescan rssi policies X You seem to have CSS turned off. Please don't fill out this hcitool lescan timeout field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot set scan parameters failed: file descriptor in bad state of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse BlueZ Mailing Lists BlueZ Brought to you by: holtmann Summary https://bbs.archlinux.org/viewtopic.php?id=32491 Files Reviews Support Wiki Mailing Lists Donate Code bluez-announce bluez-devel bluez-users Re: [Bluez-users] problems establishing connection to Cellular phone Re: [Bluez-users] problems establishing connection to Cellular phone From: Tamer Higazi
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 http://stackoverflow.com/questions/22062037/hcitool-lescan-shows-i-o-error this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask http://unix.stackexchange.com/questions/96106/bluetooth-le-scan-as-non-root 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 a minute: Sign up output error 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, 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 input output error 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 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 Blue
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 ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Bluetooth LE scan as non root? up vote 7 down vote favorite To perform a scan for bluetooth LE devices hcitool apparently requires root privileges. For normal users the output is following: $ hcitool lescan Set scan parameters failed: Operation not permitted Why does hcitool need root privileges for a LE scan? Is it possible to somehow perform a LE scan as non-root? not-root-user bluetooth share|improve this question asked Oct 15 '13 at 10:12 kassiopeia 17217 add a comment| 3 Answers 3 active oldest votes up vote 6 down vote accepted The Bluetooth protocol stack for Linux checks two capabilities. Capabilities are a not yet common system to manage some privileges. They could be handled by a PAM module or via extended file attributes. (see http://lxr.free-electrons.com/source/net/bluetooth/hci_sock.c#L619) $> sudo apt-get install libcap2-bin installs linux capabilities manipulation tools. $> sudo setcap 'cap_net_raw,cap_net_admin+eip' `which hcitool` sets the missing capabilities on the executable quite like the setuid bit. $> getcap !$ getcap `which hcitool` /usr/bin/hcitool = cap_net_admin,cap_net_raw+eip so we are good to go: $>hcitool -i hci0 lescan Set scan parameters failed: Input/output error Yeay, your BT adapter does not support BLE $>hcitool -i hci1 lescan LE Scan... This one does, go on and press a button on your device. share|improve this answer edited Feb 2 '15 at 23:19 answered Feb 2 '15 at 23:11 schnippe 7612 add a comment| up vote 5 down vote Ok, at least I partially discovered why hcitool requires root privileges for a LE scan but not for a normal scan. Partially means, that I located the system call whic