Hi *,
I have some problems authenticating with my S55 via Bluetooth. My plan: use the S55 as a modem (i.e. use /dev/rfcomm0) with minicom to dial in from my BT enabled laptop to another modem-equipped machine. Maybe you have some time and patience to help me.
My configuration:
=============
- Debian GNU/Linux 3.0;
- Kernel 2.4.19 which I patched and recompiled for Bluetooth;
- ALPS Bluetooth USB dongle;
- S55 BT name is Bluegate;
- dpkg -l | grep blue gives me:
falcon:/usr/src/bluez-libs-2.4# dpkg -l | grep blue
ii bluez-hcidump 1.5-2 Analyses Bluetooth HCI packets
ii bluez-pan 1.1rel-1 Personal area networking for Bluetooth devic
ii bluez-pin 0.20-2 Bluetooth PIN helper with D-BUS support
ii bluez-sdp 1.4-1 BlueZ Bluetooth SDP daemon and tool
ii bluez-utils 2.3-2 Utilities for controlling Bluetooth devices
ii libbluetooth1 2.4-1 Library to use the BlueZ Linux Bluetooth sta
I also downloaded, compiled and installed bluez-libs-2.4 from source.
- cat /etc/bluetooth/hcid.conf:
falcon:/usr/src/bluez-libs-2.4# cat /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk 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 auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
#pin_helper /usr/bin/bluez-pin;
#pin_helper /usr/bin/bluepin;
pin_helper /usr/bin/bluepin;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
#name "falcon-0"
# Local device class
class 0x100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
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,master;
#
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 hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
auth enable;
encrypt enable;
}
- I replaced the original python script /usr/bin/bluepin with the following bash script (found this somewhere on the net):
falcon:/usr/src/bluez-libs-2.4# cat /usr/bin/bluepin
#!/bin/bash
cat /etc/bluetooth/pin
- /etc/bluetooth/pin looks like this:
falcon:/usr/src/bluez-libs-2.4# cat /etc/bluetooth/pin
PIN:0000
Things that work:
============
1) hcitool scan gives me:
falcon:/usr/src# hcitool scan
Scanning ...
00:01:E3:26:64:3D Bluegate <--- this is my mobile phone
00:02:C7:20:85:5E GANYMED
00:01:E3:1B:7A:CE Acher
2) rfcomm bind:
falcon:/usr/src# rfcomm bind 0 00:01:E3:26:64:3D
3) After bind, rfcomm show gives me:
falcon:/usr/src# rfcomm show
rfcomm0: 00:01:E3:26:64:3D channel 1 clean
Things that DONT work:
=================
1) Trying to send ATZ:
falcon:/usr/src# echo "ATZ" > /dev/rfcomm0
bash: /dev/rfcomm0: Invalid exchange
When I do this, there are 2 Bluetooth-symbols on my phone for a short time, until on the host the "Invalid exchange" message appears.
2) Also, sdptool does not give me the services offered by my phone:
falcon:/usr/src# sdptool browse 00:01:E3:26:64:3D
Failed to connect to SDP server on 00:01:E3:26:64:3D: Invalid exchange
Additional info:
==========
1) From GANYMED, which is a WinXP host, connecting to the serial device of my phone and opening a Hyperterm session to my machine at home by dialing in works fine.
2) After turning off BT on the mobile phone:
falcon:/usr/src/bluez-libs-2.4# echo "ATZ" > /dev/rfcomm0
bash: /dev/rfcomm0: Host is down
This is ok.
Any help would be greatly appreciated. Thanks in advance,
Fujitsu Computers
Siemens
Dipl. Ing. (FH) Robert Fendt
Hardware for PC Keyboards
FSC VP CC K&S
#define phone_desk +498218042404
#define phone_lab +498218043808
#define fax +498218042656