quinta-feira, maio 12, 2005

NC Arquivos de Configuração /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 /etc/bluetooth/givepin;

# D-Bus PIN helper
#dbus_pin_helper;
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ (%d)";

# 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;
}

pin
123456

givepin
#!/bin/sh
echo "PIN:123456"

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 11:22:33:44:55:66;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment "Example Bluetooth device";
}

NC Sequencia PUSH do NOKIA 6600

dmesg
hciconfig hci0 up
hcid -f /etc/bluetooth/hcid.conf
hcitool scan
sdptool browse 00:0E:6D:8B:DF:C9
rfcomm bind /dev/rfcomm0 00:0E:6D:XX:XX:XX 10
rfcomm
./ussp-push /dev/rfcomm0 Downnloads/Graph.sis Graph.sis

NC Java e Bluetooth

http://www.control.lth.se/%7Ejohane/harald/

http://www.javabluetooth.org/


NC Mais bluetooth

bluepin [in/out] 00:0E:6D:8B:DF:C9

http://linuxgazette.net/109/oregan3.html

(video 3gp e integração)

NC Bluez Headset

http://www.soft.uni-linz.ac.at/_wiki/tiki-index.php?page=ProjectBluezHandsfree


NC Usando OpenObex

Directory listing over Bluetooth

1st Step : discover your phone

hcitool scan

2nd Step : browse for the reequired channel

sdptool browse 00:11:22:33:44:55

If there is any service with "OBEX" in its "Protocol Descriptor List" that "Channel" is likely to work.

on Nokia 7650 and Ericsson T68 its channel 10.

for Siemens S55 its channel 5.

3rd Step : Perform the transaction

obexftp -b 00:11:22:33:44:55 -B 10 -l telecom/devinfo.txt
Getting files from a subdirectory

obexftp -c Bitmap -g happy.bmp
Retrieving some memory info

This is Siemens specific and won't work with any other vendor.

obexftp -x


NC Site massa de Nokia e Bluetooth

http://gagravarr.org/series-60/#details


This page is powered by Blogger. Isn't yours?