Closed GoogleCodeExporter closed 8 years ago
I assume your phone is paired then.
What does your rfcomm.conf and hcid.conf look like?
Original comment by dirk.vdb
on 7 Mar 2008 at 8:51
$ cat /etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:1E:45:38:0E:CB;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "Rion's GPRS";
}
$ cat /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#
# 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;
# Default PIN code for incoming connections
passkey "123";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Rion (%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;
}
Original comment by rion4ik
on 7 Mar 2008 at 10:24
I have the same ptoblem, I think the is in bluetoothdiscovery.py
{{{
class BluetoothDiscovery:
def findSerialDevices(self):
services = bluetooth.find_service(name = "Bluetooth Serial Port", uuid =
bluetooth.SERIAL_PORT_CLASS)
devices = []
for service in services:
devices.append(BluetoothDevice(service["host"], service["port"],
bluetooth.lookup_name(service["host"])))
return devices
}}}
My phone is a nokia 3250 when I change the bluetooth.find_service line to:
services = bluetooth.find_service(uuid = '1103')
my phone is detected.
this uuid(0x1103) is (in my phone) network dial-up service (modem)
I think that if you use pass 'name' on method, it'll match just that name, so I
remove it too.
I know this UUID accept AT commands, but some of phonetooth commands worked
(contacts) and some not (sms)
Original comment by iuridi...@gmail.com
on 7 Mar 2008 at 9:52
Could you send me where I find information about available AT commands (that
you have
used)? maybe I could help you.
Original comment by iuridi...@gmail.com
on 7 Mar 2008 at 9:56
I have created a new version that does not include the name in the discovery,
and
also lists devices that have the dialup service. I hope more devices will be
found
this way.
I got the at commands from a pdf of 3gpp, I attached the file.
Original comment by dirk.vdb
on 9 Mar 2008 at 7:12
Attachments:
wfm
Original comment by rion4ik
on 16 Mar 2008 at 12:40
wfm?
Original comment by dirk.vdb
on 16 Mar 2008 at 12:45
i mean works with 0.2.0 :-)
thanks for fix.
i think you can close this bug.
PS http://code.google.com/p/phonetooth/issues/detail?id=3&can=1 is now main
issue for
me. i've added comment ;-)
Original comment by rion4ik
on 17 Mar 2008 at 9:02
Ok good to hear
Original comment by dirk.vdb
on 17 Mar 2008 at 5:37
Original issue reported on code.google.com by
rion4ik
on 7 Mar 2008 at 8:23