BlueZ Newbie
Firstly apologies in advance if I ask any stupid questions but I'm a complete newbie to BlueZ and am trying to use it to enable me to dial-up to the net using gprs.
Any way to the problem I've got all the way to the point that rfcomm associations happen automatically and then I try to access the device using minicom and it starts fine but doesn't appear to be completing the connection process and then drops.
I've included extracts from the /var/log/messages output my config files and an hcidump for your review.
Thanks in advance
Richard
/var/log/messages extract:
Aug 17 05:26:52 hellontoast hcid[4513]: HCI dev 0 registered Aug 17 05:26:53 hellontoast hcid[4513]: HCI dev 0 up Aug 17 05:26:53 hellontoast hcid[4513]: Starting security manager 0 ^[[AAug 17 05:28:22 hellontoast hcid[4513]: link_key_request (sba=00:10:60:A4:75:55, dba=00:0E:07:CA:15:AE) Aug 17 05:34:13 hellontoast hcid[4513]: link_key_request (sba=00:10:60:A4:75:55, dba=00:0E:07:CA:15:AE) Aug 17 05:34:23 hellontoast hcid[4513]: link_key_request
(sba=00:10:60:A4:75:55, dba=00:0E:07:CA:15:AE)
Signature · 1 line
Richard
#
# 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 /etc/bluetooth/bluepin
#pin_helper /usr/bin/bluepin;
#dbus_pin_helper;
# A dbus PIN daemon can be found at
# ftp://ftp.handhelds.org/pub/projects/gpe/source/bluez-pin-0.20.tar.gz
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
# Local device class
class 0x120104;
# 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,master;
# 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;
}
HCIDump - HCI packet analyzer ver 1.5
device: hci0 snap_len: 1028 filter: 0xffffffff < HCI Command: Create Connection(0x01|0x0005) plen 13
Quoted 2 lines
HCI Event: Command Status(0x0f) plen 4
HCI Event: Connect Complete(0x03) plen 11
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
Quoted 3 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Max Slots Change(0x1b) plen 3 ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0084 scid 0x0040 result 1 status 2
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0084 scid 0x0040 result 0 status 0
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0084 flags 0x0000 clen 4
MTU 1024 Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0084 flags 0x0000 result 0 clen 0Quoted 4 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 17 ACL data: handle0x0029flags0x01dlen 1
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 4
MTU 672
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x84 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c Quoted 2 lines
HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0084
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0084Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
Quoted 2 lines
HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0085 scid 0x0040 result 1 status 2
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0085 scid 0x0040 result 0 status 0
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0085 flags 0x0000 clen 4
MTU 1024 Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0085 flags 0x0000 result 0 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 4
MTU 672 Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x85 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c Quoted 2 lines
HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x85 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0 frame_size 667 max_retrans 0 credits 7Quoted 3 lines
HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 17 ACL data: handle0x0029flags0x01dlen 1
L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0 frame_size 667 max_retrans 0 credits 3
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x85 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59 Quoted 2 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Link Key Request(0x17) plen 6
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
Quoted 2 lines
HCI Event: Command Complete(0x0e) plen 10 ACL data: handle
0x0029flags0x02dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(d): cid 0x85 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 3Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 12
L2CAP(d): cid 0x40 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 3
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(d): cid 0x85 len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 3Quoted 3 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): DISC: cr 0 dlci 2 pf 1 ilen 0 fcs 0xd9
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x85 len 4 [psm 3]
RFCOMM(s): UA: cr 0 dlci 2 pf 1 ilen 0 fcs 0xf3
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x85 len 4 [psm 3]
RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0085 scid 0x0040Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 12
L2CAP(d): cid 0x40 len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 3Quoted 4 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x0029flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x0085 scid 0x0040
Quoted 2 lines
HCI Event: Disconn Complete(0x05) plen 4 HCI Event: Connect Request(0x04) plen 10
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
Quoted 2 lines
HCI Event: Command Status(0x0f) plen 4
HCI Event: Connect Complete(0x03) plen 11
< HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
Quoted 4 lines
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7 HCI Event: Command Status(0x0f) plen 4
HCI Event: Connection Packet Type Changed(0x1d) plen 5 ACL data: handle0x002aflags0x02dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0086
< ACL data: handle 0x002a flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0086 result 0 status 0Quoted 2 lines
HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x002aflags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x002a flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0086 flags 0x0000 result 0 clen 0
< ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0086 flags 0x0000 clen 0Quoted 3 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle
0x002aflags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
Quoted 1 line
ACL data: handle
0x002aflags0x02dlen 17
L2CAP(d): cid 0x40 len 13 [psm 1]
SDP SS Req: tid 0x1 len 0x8
pat uuid-16 0x1101 (SP)
max 0x14
cont 00
< ACL data: handle 0x002a flags 0x02 dlen 14
L2CAP(d): cid 0x86 len 10 [psm 1]
SDP SS Rsp: tid 0x1 len 0x5
cur 0x0 tot 0x0
cont 00 Quoted 3 lines
HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Max Slots Change(0x1b) plen 3 ACL data: handle
0x002aflags0x02dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0086
< ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0086Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
< HCI Command: Disconnect(0x01|0x0006) plen 3
Quoted 2 lines
HCI Event: Command Status(0x0f) plen 4
HCI Event: Disconn Complete(0x05) plen 4
#
# RFCOMM configuration file.
#
# $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $ #
#
# Example:
#
rfcomm0 {
# # Automatically bind the device at startup
bind yes; # # # Bluetooth address of the device device 00:0E:07:CA:15:AE; # # # RFCOMM channel for the connection channel 1; # # # Description of the connection comment "Example Bluetooth device"; }
3497
Marcel Holtmann
maintainerHi Richard,
Quoted 8 lines
Firstly apologies in advance if I ask any stupid questions but I'm a complete newbie to BlueZ and am trying to use it to enable me to dial-up to the net using gprs.
Any way to the problem I've got all the way to the point that rfcomm associations happen automatically and then I try to access the device using minicom and it starts fine but doesn't appear to be completing the connection process and then drops.
let me guess, this is a Symbian based mobile phone.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel,
In a word, yes, It's a Sony Ericsson P900.
Is that a major problem?
Thanks in advance
Richard
Quoted 27 lines
Hi Richard,
Quoted 8 lines
Firstly apologies in advance if I ask any stupid questions but I'm a complete newbie to BlueZ and am trying to use it to enable me to dial-up to the net using gprs.
Any way to the problem I've got all the way to the point that rfcomm associations happen automatically and then I try to access the device using minicom and it starts fine but doesn't appear to be completing the connection process and then drops.
let me guess, this is a Symbian based mobile phone.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Michal,
Thanks for the link, unfortunately I've been through this page a number of times already, in fact it's one of the resources thats allowed me to get this far.
Richard
Quoted 57 lines
Hi,
I don't know this phone, but there is a little howto here:
http://www.alfonsomartone.itb.it/pdzrho.htmlMichal
Dne út 17. srpna 2004 11:02 [email protected] napsal(a):
Quoted 38 lines
Marcel,
In a word, yes, It's a Sony Ericsson P900.Is that a major problem?
Thanks in advance
Richard
Quoted 4 lines
Hi Richard,
Quoted 2 lines
Firstly apologies in advance if I ask any stupid questions but I'm a complete newbie to BlueZ and am trying to use it to enable me to
dial-up
Quoted 5 lines
Quoted 5 lines
to the net using gprs.
Any way to the problem I've got all the way to the point that rfcomm associations happen automatically and then I try to access the device using minicom and it starts fine but doesn't appear to be completing
the
Quoted 8 lines
Quoted 1 line
connection process and then drops.
let me guess, this is a Symbian based mobile phone.
Regards
Marcel
Quoted 9 lines
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-usersQuoted 9 lines
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 10 lines
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi,
I don't know this phone, but there is a little howto here:
http://www.alfonsomartone.itb.it/pdzrho.html
Michal
Dne =FAt 17. srpna 2004 11:02 [email protected] napsal(a):
Quoted 13 lines
Marcel,
In a word, yes, It's a Sony Ericsson P900.Is that a major problem?
Thanks in advance
Richard
Quoted 4 lines
Hi Richard,
Quoted 2 lines
Firstly apologies in advance if I ask any stupid questions but I'm a complete newbie to BlueZ and am trying to use it to enable me to dial-=
up
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
to the net using gprs.
Any way to the problem I've got all the way to the point that rfcomm associations happen automatically and then I try to access the device using minicom and it starts fine but doesn't appear to be completing t=
he
Quoted 18 lines
Quoted 8 lines
Quoted 1 line
connection process and then drops.
let me guess, this is a Symbian based mobile phone.
Regards
Marcel
Quoted 9 lines
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 9 lines
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Richard,
Quoted 3 lines
In a word, yes, It's a Sony Ericsson P900.
Is that a major problem?
the hcidump showed me a mRouter behaviour. Check with sdptool on what RFCOMM channel your phones has its DUN Profile and then try to use this one.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Thanks for that Marcel, that worked a treat.
Quoted 13 lines · Marcel Holtmann
Hi Richard,
Quoted 3 lines
In a word, yes, It's a Sony Ericsson P900.
Is that a major problem?
the hcidump showed me a mRouter behaviour. Check with sdptool on what RFCOMM channel your phones has its DUN Profile and then try to use this one.
Regards
Marcel
Marcel, you're a star :)
Quoted 13 lines · Marcel Holtmann
Hi Richard,
Quoted 3 lines
In a word, yes, It's a Sony Ericsson P900.
Is that a major problem?
the hcidump showed me a mRouter behaviour. Check with sdptool on what RFCOMM channel your phones has its DUN Profile and then try to use this one.
Regards
Marcel
Signature · 7 lines
Richard Worwood, TDB Networks 4 High Street, Twyford, Berkshire RG10 9AE Office: +44 (0) 118 934 0056 Mobile: +44 (0) 7771 662880 Email: [email protected] Web: www.tdbnetworks.com