Portál AbcLinuxu, 1. listopadu 2025 08:53
/etc/init.d/bluez-utils restart
root@server:/etc# /etc/init.d/bluez-utils restart Restarting bluez-utils: hcid sdpdsyntax error line 12 syntax error line 12 .. az 16 rfcom. Po zadání příkazu rfcommd -n -f /usr/local/etc/rfcommd.conf na 00:14:A7:6F:CA:44 bash: rfcommd: command not found ten soubor rfcommd prostě neexistuje
tomas@notas:~$ cat /etc/bluetooth/hcid.conf
#
# 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 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/lib/kdebluetooth/kbluepin;
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Herfik-Book";
# Local device class
class 0x3e0100;
# 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;
# 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 enable;
encrypt enable;
}
tomas@notas:~$ cat /etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#
# $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $
#
# example:
#
rfcomm0 {
bind yes;
device 00:0E:ED:53:E8:6C;
channel 1;
comment "Herfik-Phone";
}
# # Bluetooth address of the device
# device 11:22:33:44:55:66;
# # RFCOMM channel for the connection
# channel 1;
# # Description of the connection
# comment "Example Bluetooth device";
Při restartu bluez-utils se objeví hlášení: Restarting bluez-utils: hcid sdpdsyntax error line 23 syntax error line 23 syntax error line 23 rfcomm. V souboru /etc/hcid.conf je v řádku 23 uvedeno pairing multi; ale: device /dev/rfcomm0 se vytvořilo. Nepodařilo se mi však získat kbluetoothd ..nevím, jak jej najít.
chybové hlášení se mi podařilo odstranit. root@server:/home/dalibor# /etc/init.d/bluez-utils restart Restarting bluez-utils: hcid sdpd rfcomm. Při pokusu o připojení to však selhalo: root@server:/home/dalibor# rfcomm connect /dev/rfcomm0 Can't connect RFCOMM socket: Permission denied root@server:/home/dalibor#
rfcomm connect dělá, ale IMHO vytváří právě to zařízení /dev/rfcomm0. Pokud ho už máte vytvořené, měla by komunikace fungovat (např. přes obexftp, kbluetoothd nebo jako modem přes wvdial apod.).
Menu -> Nastavení -> Připojení -> Bluetooth -> Autentifikovaná zařízení).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.