* [Bluez-users] MSDUN failed. Connection timed out(110)
@ 2005-12-12 20:11 Beware of the Hare
2005-12-12 20:16 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Beware of the Hare @ 2005-12-12 20:11 UTC (permalink / raw)
To: bluez-users
Hi.
I am trying to connect my PocketPC 2003 to the internet via bluetooth.
i have all needed modules
-------------------
rfcomm 34972 3
l2cap 22404 5 rfcomm
hci_usb 13192 2
bluetooth 43012 7 rfcomm,l2cap,hci_usb
--------------------------------
and deamons ( HCID, SDPD, DUND) loaded (i think ;)
-------------------
HCID_EXEC=3D"`which $HCID_NAME || true`"
SDPD_EXEC=3D"`which $SDPD_NAME || true`"
HIDD_EXEC=3D"`which $HIDD_NAME || true`"
HID2HCI_EXEC=3D"`which $HID2HCI_NAME || true`"
RFCOMM_EXEC=3D"`which $RFCOMM_NAME || true`"
PAND_EXEC=3D"`which $PAND_NAME || true`"
DUND_EXEC=3D"`which $DUND_NAME || true`"
HCID_ENABLE=3Dtrue
SDPD_ENABLE=3Dtrue
HIDD_ENABLE=3Dfalse
HID2HCI_ENABLE=3Dfalse
RFCOMM_ENABLE=3Dfalse
DUND_ENABLE=3Dtrue
PAND_ENABLE=3Dfalse
HCID_CONFIG=3D"/etc/bluetooth/hcid.conf"
RFCOMM_CONFIG=3D"/etc/bluetooth/rfcomm.conf"
HIDD_OPTIONS=3D""
DUND_OPTIONS=3D"--listen --msdun call dun-mda-bt"
PAND_OPTIONS=3D"--listen --role NAP"
-------------------
dun-mda-bt peer file is:
-------------------
root@pajonk:/etc/ppp/peers # cat /etc/ppp/peers/dun-mda-bt
115200
local
noipdefault
connect "/etc/ppp/at-cmd.pl -v"
noauth
nodefaultroute
192.168.1.1:192.168.1.10
ms-dns 192.168.1.1
------------------
/etc/ppp/at-cmd.pl is a perl script that "do talking":
----------------------------
root@pajonk:/etc/ppp/peers # cat /etc/ppp/at-cmd.pl
#!/usr/bin/perl
#
# Copyright (c) 2004 Henk Vergonet
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# This script simulates an 'AT' modem command interface.
# Some dial-up-networking clients (pocketPC 2003 ...) will insist on sendin=
g
# AT command strings before connecting via PPP.
#
# Example ppp/peers/dun script for connecting my MDA to the network.
# 115200
# local
# noipdefault
# connect "/etc/ppp/at-cmd.pl -v"
# noauth
# nodefaultroute
# noipx
# 10.10.10.10:10.10.10.11
# ms-dns 10.10.10.1
#
use strict;
use Getopt::Std;
use Sys::Syslog;
use POSIX qw(strftime);
my %opt;
getopts('hv', \%opt);
die "Fake at command parser\n\nusage:\n\t-v\tDebug messages in syslog\n"
if $opt{h};
openlog($0, 'cons,pid', 'user') or die "openlog $!";
END {
closelog();
}
$/ =3D "\r";
while(<STDIN>)
{
syslog('debug', "got: $_") if defined $opt{v};
$_ =3D uc;
if(/^ATD/) {
print "CONNECT\r";
syslog('debug', "send: CONNECT\r") if defined $opt{v};
exit(0);
} elsif(/^AT/) {
print "OK\r";
syslog('debug', "send: OK\r") if defined $opt{v};
}
}
-----------------------------
DUN profile is registered by /usr/local/bin/sdptool add DUN
----------------------
root@pajonk:/etc/ppp/peers # /usr/local/bin/sdptool browse local
Browsing FF:FF:FF:00:00:00 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Service Name: Dial-Up Networking
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
-------------------------------------
Device can be seen:
---------------------------------
root@pajonk:/etc/ppp/peers # /usr/local/bin/hcitool scan
Scanning ...
00:09:2D:4D:62:FE MDAcompact
---------------------------------
Now i am trying to connect. Here is the log:
=3D=3D> /var/log/syslog <=3D=3D
Dec 12 21:00:16 pajonk hcid[1952]: link_key_request
(sba=3D00:08:F4:00:70:D3, dba=3D00:09:2D:4D:62:FE)
Dec 12 21:00:26 pajonk dund[2035]: MSDUN failed. Connection timed out(110)
I have no idea what's wrong.
Thank you for any help
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] MSDUN failed. Connection timed out(110)
2005-12-12 20:11 [Bluez-users] MSDUN failed. Connection timed out(110) Beware of the Hare
@ 2005-12-12 20:16 ` Marcel Holtmann
2005-12-12 20:52 ` Beware of the Hare
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2005-12-12 20:16 UTC (permalink / raw)
To: bluez-users
Hi,
> I am trying to connect my PocketPC 2003 to the internet via bluetooth.
>
> i have all needed modules
>
> -------------------
> rfcomm 34972 3
> l2cap 22404 5 rfcomm
> hci_usb 13192 2
> bluetooth 43012 7 rfcomm,l2cap,hci_usb
> --------------------------------
>
> and deamons ( HCID, SDPD, DUND) loaded (i think ;)
what version of bluez-utils is installed?
> dun-mda-bt peer file is:
>
> -------------------
> root@pajonk:/etc/ppp/peers # cat /etc/ppp/peers/dun-mda-bt
> 115200
> local
> noipdefault
> connect "/etc/ppp/at-cmd.pl -v"
> noauth
> nodefaultroute
> 192.168.1.1:192.168.1.10
> ms-dns 192.168.1.1
> ------------------
>
> /etc/ppp/at-cmd.pl is a perl script that "do talking":
I don't think that this is needed. The magic is done by the --msdun
switch.
> DUN profile is registered by /usr/local/bin/sdptool add DUN
No need for that, because dund will do that for you if not told
otherwise.
> Device can be seen:
>
> ---------------------------------
> root@pajonk:/etc/ppp/peers # /usr/local/bin/hcitool scan
> Scanning ...
> 00:09:2D:4D:62:FE MDAcompact
> ---------------------------------
This is unimportant.
> Now i am trying to connect. Here is the log:
>
> ==> /var/log/syslog <==
> Dec 12 21:00:16 pajonk hcid[1952]: link_key_request
> (sba=00:08:F4:00:70:D3, dba=00:09:2D:4D:62:FE)
> Dec 12 21:00:26 pajonk dund[2035]: MSDUN failed. Connection timed out(110)
>
> I have no idea what's wrong.
Run "hcidump -X -V" in another terminal to see what happens.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] MSDUN failed. Connection timed out(110)
2005-12-12 20:16 ` Marcel Holtmann
@ 2005-12-12 20:52 ` Beware of the Hare
2005-12-12 21:15 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Beware of the Hare @ 2005-12-12 20:52 UTC (permalink / raw)
To: bluez-users
2005/12/12, Marcel Holtmann <marcel@holtmann.org>:
> Hi,
>
> > I am trying to connect my PocketPC 2003 to the internet via bluetooth.
> >
> > i have all needed modules
> >
> > -------------------
> > rfcomm 34972 3
> > l2cap 22404 5 rfcomm
> > hci_usb 13192 2
> > bluetooth 43012 7 rfcomm,l2cap,hci_usb
> > --------------------------------
> >
> > and deamons ( HCID, SDPD, DUND) loaded (i think ;)
>
> what version of bluez-utils is installed?
bluez-utils-2.23
bluez-libs-2.23
bluez-hcidump-1.28
> > dun-mda-bt peer file is:
> >
> > -------------------
> > root@pajonk:/etc/ppp/peers # cat /etc/ppp/peers/dun-mda-bt
> > 115200
> > local
> > noipdefault
> > connect "/etc/ppp/at-cmd.pl -v"
> > noauth
> > nodefaultroute
> > 192.168.1.1:192.168.1.10
> > ms-dns 192.168.1.1
> > ------------------
> >
> > /etc/ppp/at-cmd.pl is a perl script that "do talking":
>
> I don't think that this is needed. The magic is done by the --msdun
> switch.
Well....i succesfully made this connection earlier on another distro
(fedora - now i am on ubuntu) with the same devices, same settings,
and /etc/ppp/at-cmd.pl was "a must" to connect.
Looks like this script isn't executed. At least it doesn't appear in
log file as it should:
http://wiki.xda-developers.com/index.php?pagename=3Dbluetoothnetworking
>
> > DUN profile is registered by /usr/local/bin/sdptool add DUN
> No need for that, because dund will do that for you if not told
> otherwise.
Here are hcidump logs with and without DUN service registered before
connection attempt:
http://grudziadz.org/hcidump_with_DUN_regietered.log
http://grudziadz.org/hcidump_without_DUN_regietered.log
--
Best regards
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] MSDUN failed. Connection timed out(110)
2005-12-12 20:52 ` Beware of the Hare
@ 2005-12-12 21:15 ` Marcel Holtmann
2005-12-12 21:36 ` Beware of the Hare
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2005-12-12 21:15 UTC (permalink / raw)
To: bluez-users
Hi,
> > > dun-mda-bt peer file is:
> > >
> > > -------------------
> > > root@pajonk:/etc/ppp/peers # cat /etc/ppp/peers/dun-mda-bt
> > > 115200
> > > local
> > > noipdefault
> > > connect "/etc/ppp/at-cmd.pl -v"
> > > noauth
> > > nodefaultroute
> > > 192.168.1.1:192.168.1.10
> > > ms-dns 192.168.1.1
> > > ------------------
> > >
> > > /etc/ppp/at-cmd.pl is a perl script that "do talking":
> >
> > I don't think that this is needed. The magic is done by the --msdun
> > switch.
>
> Well....i succesfully made this connection earlier on another distro
> (fedora - now i am on ubuntu) with the same devices, same settings,
> and /etc/ppp/at-cmd.pl was "a must" to connect.
>
> Looks like this script isn't executed. At least it doesn't appear in
> log file as it should:
> http://wiki.xda-developers.com/index.php?pagename=bluetoothnetworking
the PDA sends AT commands and not the magic CLIENTSERVER string. So you
may wanna try it without the --msdun switch.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] MSDUN failed. Connection timed out(110)
2005-12-12 21:15 ` Marcel Holtmann
@ 2005-12-12 21:36 ` Beware of the Hare
2005-12-12 21:43 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Beware of the Hare @ 2005-12-12 21:36 UTC (permalink / raw)
To: bluez-users
2005/12/12, Marcel Holtmann <marcel@holtmann.org>:
> the PDA sends AT commands and not the magic CLIENTSERVER string. So you
> may wanna try it without the --msdun switch.
Works without --msdun and with this magic at-cmd.pl script like a charm :) =
Thnx.
This was probably not server-side problem, but (terrible) bluetooth
stack upgrade on my pda.
Thnx one more time for a hint.
BTW. You said it shoudn't be nessesary to register DUN service with
'/usr/local/bin/sdptool add DUN' on every bluetooth start? Well, i
cannot connect without it, but it should be done with dund, right?
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] MSDUN failed. Connection timed out(110)
2005-12-12 21:36 ` Beware of the Hare
@ 2005-12-12 21:43 ` Marcel Holtmann
0 siblings, 0 replies; 6+ messages in thread
From: Marcel Holtmann @ 2005-12-12 21:43 UTC (permalink / raw)
To: bluez-users
Hi,
> > the PDA sends AT commands and not the magic CLIENTSERVER string. So you
> > may wanna try it without the --msdun switch.
>
> Works without --msdun and with this magic at-cmd.pl script like a charm :) Thnx.
> This was probably not server-side problem, but (terrible) bluetooth
> stack upgrade on my pda.
>
> Thnx one more time for a hint.
you are welcome.
> BTW. You said it shoudn't be nessesary to register DUN service with
> '/usr/local/bin/sdptool add DUN' on every bluetooth start? Well, i
> cannot connect without it, but it should be done with dund, right?
You don't need it, because dund is registering the record when it starts
up. However it might be buggy. Use "sdptool browse --raw local" to see
if there are any differences in the records. Make sure that you really
start the sdpd and dund from bluez-utils-2.23 and don't have an old copy
somewhere in /usr/bin or /usr/sbin.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-12-12 21:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-12 20:11 [Bluez-users] MSDUN failed. Connection timed out(110) Beware of the Hare
2005-12-12 20:16 ` Marcel Holtmann
2005-12-12 20:52 ` Beware of the Hare
2005-12-12 21:15 ` Marcel Holtmann
2005-12-12 21:36 ` Beware of the Hare
2005-12-12 21:43 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).