From: "zio tom" <zio.tom@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] A blue chamaleon to be
Date: Thu, 15 Dec 2005 16:50:00 +0100 [thread overview]
Message-ID: <op.s1t0xmg8xabado@portatilegio> (raw)
In-Reply-To: <1134642179.11856.30.camel@localhost>
In data Thu, 15 Dec 2005 11:22:59 +0100, Marcel Holtmann
<marcel@holtmann.org> ha scritto:
> Hi Giovanni,
>
>> 2.19-5 is the number of the version installed.
>
> it would be better to upgrade to bluez-utils-2.23, because it fixed some
> stuff with the PIN helper handling and even the error reporting was
> improved.
Dear Marcel, since I'm not able to create a rpm package from a source
*tar.gz, sorry, but I'm not able to upgrade my bluez-utils version. I'm
googling in order to fix my technical lacks.
For the moment, i just reinstalled all bluez rpms on my system, and
situations seems to be some different:
/etc/bluetooth/pin was BlueZ, and I changed it to 123456 (should I put
there PIN:123456?)
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 holtmann Exp $
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
# if you want a interactiv query of your pin use /usr/bin/bluepin
# /bin/bluepincat is using the pin in the /etc/bluetooth/pin file
# pin_helper /usr/bin/bluepin;
pin_helper /bin/bluepincat; [strangely, before there was no mention of
blupincat, etc. wow!]
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ %h (%d)";
# Local device class
# e.g.
# 0xsss100 = Computer
# 0xsss104 = Computer Desktop
# 0xsss108 = Computer Server
# 0xsss10c = Computer Laptop
# The 'sss' above defines the service-class (not quite, only the
# first 11 bits, the next 11 define the device-class, than 2 format bits.)
# See https://www.bluetooth.org/foundry/assignnumb/document/baseband
# for more information.
# 0x100bbb stands for "Object Transfer (v-Inbox, v-Folder, ...)"
# 0x020bbb stands for "Networking (LAN, Ad hoc, ...)"
class 0x000100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
# valid parameters: enable | disable
iscan enable;
pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
# Authentication and Encryption (Security Mode 3)
auth disable;
encrypt disable;
}
---------------------------------------------------------
bluepincat contains:
#!/bin/bash
#
# simple none interactiv handler for Bluetooth PIN's
# /etc/bluetooth/pin must only contain one line with the
# PIN code
# With big enhancements from Serguei Leontiev <leo@sai.msu.ru>
#
# if e.g. kbluetoothd is not running, kbluepin throws an error and returns
1
KBLUETOOTHD_RUN=`ps -ea|grep kbluetoothd`
KBLUEPIN=${KBLUEPIN:-/opt/kde3/sbin/kbluepin}
if [ -x ${KBLUEPIN} \
-a "X$KBLUETOOTHD_RUN" != "X" ]; then
PIN=`$KBLUEPIN` && {
case "$PIN" in
PIN:*)
echo "$PIN"
exit 0
;;
esac
}
fi;
echo -n "PIN:"
cat /etc/bluetooth/pin
------------------------------------------------------------------
/etc/bluetooth/pin contains only 123456 (should it be PIN:123456?)
and finally rfcomm.conf
#
# RFCOMM configuration file.
#
# $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $
#
rfcomm0 {
# Automatically bind the device at startup
bind no;
# Bluetooth address of the device
device 00:0A:28:0C:D4:EF;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "V600";
}
Now I try to run a pairing attemp (using ftp Obex transfer) and I post to
you the output of hcidump -X -V, ok?
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2005-12-15 15:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 8:25 [Bluez-users] A blue chamaleon to be zio tom
2005-12-15 8:53 ` Marcel Holtmann
2005-12-15 9:16 ` zio tom
2005-12-15 9:22 ` Marcel Holtmann
2005-12-15 9:48 ` zio tom
2005-12-15 10:22 ` Marcel Holtmann
2005-12-15 15:50 ` zio tom [this message]
2005-12-15 17:29 ` zio tom
2005-12-15 18:03 ` zio tom
2005-12-15 21:17 ` [Bluez-users] " Michael Mauch
2005-12-16 2:41 ` zio tom
2005-12-16 3:19 ` Michael Mauch
2005-12-16 9:21 ` zio tom
2005-12-15 8:56 ` [Bluez-users] " zio tom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.s1t0xmg8xabado@portatilegio \
--to=zio.tom@gmail.com \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).