LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-19-2009, 04:59 PM   #1
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 42
rfcomm blues


Hi. I posted this thread at official gentoo forums but still no luck there. I was hoping somebody in this crowd might have an answer:

I've got this robotics project where I send commands to the robot via a D-Link DBT-120 bluetooth adapter on the computer side and an eb500 EmbeededBlue bluetooth card on the robot side. This works great on a Fedora box in our lab using rfbind, so we just send and receive characters to /dev/rfcomm* in order to communicate with the robots internal program.

However, I am trying to set up the same thing on my Gentoo netbook (Dell Mini 10v, Intel Atom dual-core 32 bit). However when I try to use the rfcomm created device file, I get this, even running as root:


Code:
$ rfcomm bind rfcomm0
$ cat /dev/rfcomm0 
cat: /dev/rfcomm0: Permission denied
Permissions on the file:

Code:
crw-rw---- 1 root uucp 216, 0 2009-10-16 15:06 /dev/rfcomm0
Nothing changes even if I set the file to root:root.

D-Link adapter is detected:

Code:
$ hcitool dev
Devices:
	hci0	00:1E:58:3F:5C:85
Robot bluetooth card is detected (eb500 is the card, other names are computers):

Code:
$ hcitool scan
Scanning ...
	00:23:6C:BA:C5:19	belmont
	00:0C:84:00:45:A9	eb500
	00:0D:93:11:7B:B3	bootes
So I haven't been able to figure out why this is working on the Fedora box but not on the Gentoo netbook.

Here is the rfcomm config file:

Code:
$ cat /etc/bluetooth/rfcomm.conf
rfcomm0 {
        # Automatically bind the device at startup
        bind no;
#
        # Bluetooth address of the device
        device 00:0C:84:00:45:A9;
#
        # RFCOMM channel for the connection
        channel 1;
#
        # Description of the connection
        comment "Alpha Robot";
}

rfcomm1 {
        # Automatically bind the device at startup
        bind no;
#
        # Bluetooth address of the device
        device 00:0C:84:00:44:2F;
#
        # RFCOMM channel for the connection
        channel 1;
#
        # Description of the connection
        comment "Beta Robot";
}
At the official gentoo forums, someone suggested changing the permissions of the dev file to 777, but that didn't change anything.
 
Old 10-19-2009, 05:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 24,779
Blog Entries: 50

Rep: Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151
Quote:
Originally Posted by CoderMan View Post
Permissions on the file:

Code:
crw-rw---- 1 root uucp 216, 0 2009-10-16 15:06 /dev/rfcomm0
Nothing changes even if I set the file to root:root. (..) At the official gentoo forums, someone suggested changing the permissions of the dev file to 777, but that didn't change anything.
Isn't /dev/rfcomm* creation governed by HAL or Udev rules?
As in changing DAC perms there?
 
Old 10-20-2009, 03:06 PM   #3
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Original Poster
Rep: Reputation: 42
I've been looking into this some more. I think the problem is that I am not transmitting the PIN number that is needed. The Fedora box was set up by someone else and I think it uses gnome-passkey or some gnome utility to transmit the pin automatically. My Dell mini uses Xfce4 and so I don't have that installed. Still not sure exactly how to go about fixing this (without installing gnome) but I think I'm headed in the right direction.
 
Old 10-20-2009, 04:08 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 24,779
Blog Entries: 50

Rep: Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151
Isn't the default PIN just some file like /etc/bluetooth/pin or a "passkey" statement in /etc/bluetooth/hcid.conf?
 
Old 10-20-2009, 04:31 PM   #5
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Original Poster
Rep: Reputation: 42
Cool [Solved!!!]

http://forums.gentoo.org/viewtopic-p...4.html#6022104
 
Old 01-06-2011, 04:14 AM   #6
llg179
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
auth or encrypt?

I'm playing with my motorola a780 with similar issue. I received the same permission denied.
After some google I found this:
https://bugzilla.redhat.com/show_bug.cgi?id=166851

Turning off auth and encrypt resolved my issue to connect to my bluetooth gps from the phone.

hciconfig hci0 up
# hciconfig hci0
hci0: Type: UART
BD Address: 20:35:B0:20:35:B0 ACL MTU: 377:10 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN AUTH ENCRYPT
RX bytes:9435 acl:105 sco:0 events:143 errors:0
TX bytes:4083 acl:203 sco:0 commands:63 errors:0
# hciconfig hci0 noauth noencrypt
# hciconfig hci0
hci0: Type: UART
BD Address: 20:35:B0:20:35:B0 ACL MTU: 377:10 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:9305 acl:105 sco:0 events:128 errors:0
TX bytes:3755 acl:203 sco:0 commands:48 errors:0
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bluetooth works, rfcomm doesn't Hangdog42 Slackware 2 09-09-2008 05:56 PM
Rfcomm connectivity problem prashantaghamkar Linux - Networking 0 10-29-2007 04:38 AM
bluesnarfer and rfcomm patricius Linux - Software 2 10-09-2007 11:12 PM
Problem with rfcomm on suse10.2 dtashmore Suse/Novell 0 01-18-2007 01:38 PM
howto load rfcomm module? mab_123 Linux - Software 1 08-23-2005 06:43 AM


All times are GMT -5. The time now is 04:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration