LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-21-2022, 07:28 AM   #1
will_kranz
Member
 
Registered: Nov 2004
Location: NH/CT
Distribution: Slackware 10 to 14
Posts: 52

Rep: Reputation: 0
Having RFCOMM Problem entering Pin during connect


I admit to being in my mid 70s and am not as good a researcher as I once was but am having trouble finding documentation on this issue. If anyone can point me in the right direction it would be appreciated. I've programmed in slackware Linux environments for more than 20 years, but seem to forget stuff almost as quickly as I learn it. My main machines run slackware 14.2 with bluez 5.40
their /etc/bluetooth contain:
input.conf main.conf network.conf proximity.conf serial.conf

I have a couple older laptops running slackware 14.1 with bluez 4.99
their /etc/bluetooth/ contain:
audio.conf input.conf main.conf network.conf proximity.conf rfcomm.conf serial.conf

In slackware 14.1 the rfcomm.conf has some commented out examples which are helpful but I'd like to know more about the syntax for these *.conf files for both systems.
1) is rfcomm.conf depreciated in slackware 14.2 or can it still be used to setup device defaults?
2) I have two different ELM327 bluetooth auto diagnostic devices I want to test separately at different times with slackware 14.1 using /dev/rfcomm0. Can I have two different rfcomm0 entries in my rfcomm.conf file each with unique mac addresses for device and have 'rfcomm connect' recognize the appropriate device via this mac address and connect it on rfcomm0?

I have read a lot of different forum articles about establishing bluetooth rfcomm connections. It gets confusing as things changed with bluez version 5 and above switching 'hcid' to the new primary console control program 'bluetoothctl' which is used to configure things in Slackware 14.2. My current interest is using slackware 14.1 to test these ELM327 as I have to use the laptop so I can get it close enough to the car to access the device via bluetooth. A complicating factor is my laptops lcd screen's bottom two lines of text do not display in console so its very difficult to use at the console level. I have to start Xwin and use its command prompt window. The bluetooth ELM327 I recently purchased requires a pin to connect. If
I try 'rfcomm connect' with the appropriate mac address a popup window appears briefly saying a pin is required, but I am not prompted for
the pin, and after the popup window the connection fails. The clearest forum article I found about this is https://jehrhardt.github.io/blog/201...-debian-linux/ where the author uses 'bluetooth-agent' as the pin helper. Have also seen this mentioned as 'blue-simple-agent' in other posts. It appears to be a python shell script, but I can't find it on my laptop system, nor in the slackware-14.1 package bluez-4.99-i486-3.txz. Frustrating.

I did finally get this device connected using the Xwin slackware 14.1 blueman utility which had already been installed on the laptop. It has an 'add device' option and if enter the ELM327 mac address for device in this window it recognizes that a pin is required and prompts for it and is able to connect. I believe it will now continue to connect to this device in future as it saves the information for the device. However I would like to know why I can't find the console simple-agent or equivalent and how one is supposed to do this from the command line without Xwin in slackware 14.1. I've read that in slackware 14.2 using bluetoothctl and issuing 'agent-on = yes' will enable its pin helper, but am unable to test this as can't get
my Tower system close enough to the car to see the device.
 
Old 05-29-2022, 08:05 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Would this be it?
https://github.com/bluez/bluez/blob/...t/simple-agent
 
  


Reply

Tags
bluetooth, pin code, rfcomm



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
Difference between "1R8 Single Rank 240 Pin" and "2R8 dual Rank 240 Pin" PatD Linux - Hardware 3 12-16-2017 12:33 PM
CPU 12-V power supply: 4-pin or 8-pin? michapma Linux - Hardware 3 07-23-2007 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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