* [Bluez-users] Bluetooth connection too slow
@ 2005-11-26 18:04 Mario Demontis
2005-11-26 18:13 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Mario Demontis @ 2005-11-26 18:04 UTC (permalink / raw)
To: bluez-users
Hello
I recently bought a Bluetooth 2.0 EDR USB adapter (Trust, BT-2200Tp),
because I wanted to try it out with my new Motorola E1070 (UMTS phone).
I tried it out with my Ubuntu linux. The device has been recognized
properly. Then I tried the Internet connection (with UMTS you can have
more than 30 kBytes/s). Unfortunately all I could see was a transfer
rate (taken with wget downloading the kernel sources from a fast mirror)
of about 9 kB/s. I also tried to do the same with Windows XP and there
the transfer rate reached about 32 kB/s!! I did the same several times
and all the times I had the same results.
Furthermore, I tried to do the same under Linux with a USB connection,
and I'm getting 32kB/s as well. This brought me to think the bottleneck
is in the BT connection.
This is how I'm setting the BT connection:
$ sudo hcitool cc --role=m 00:0E:A1:45:1F:AE
$ sudo hcitool auth 00:0E:A1:45:1F:AE
$ sudo rfcomm bind 00:0E:A1:45:1F:AE
$ sudo ln -sf /dev/rfcomm0 /dev/modem
To dial I'm using exactly the same procedure as when using the USB
connection (with kppp).
I'm wondering if I need to tweak some parameter of the bluetooth
connection. hciconfig gives me many info but I don't know how to
interpret them and what options to give (where can I find
documentation?).
Here is what I'm getting with hciconfig:
$ hciconfig hci0 -a
hci0: Type: USB
BD Address: 00:0E:A1:45:1F:AE ACL MTU: 1017:8 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:466 acl:0 sco:0 events:27 errors:0
TX bytes:378 acl:0 sco:0 commands:21 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'agnello-0'
Class: 0x100100
Service Classes: Object Transfer
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x2902 LMP Ver: 2.0 (0x3) LMP
Subver: 0x4127
Manufacturer: Broadcom Corporation (15)
Does anyone have some suggestion in order to help me to configure
properly my BT dongle?
Thanks
Mario
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Per la casa dei tuoi sogni, la soluzione è un Credito Casa Findomestic, facile e senza anticipi!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3939&d=26-11
-------------------------------------------------------
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] Bluetooth connection too slow
2005-11-26 18:04 [Bluez-users] Bluetooth connection too slow Mario Demontis
@ 2005-11-26 18:13 ` Marcel Holtmann
2005-11-26 18:27 ` Mario Demontis
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2005-11-26 18:13 UTC (permalink / raw)
To: bluez-users
Hi Mario,
> I recently bought a Bluetooth 2.0 EDR USB adapter (Trust, BT-2200Tp),
> because I wanted to try it out with my new Motorola E1070 (UMTS phone).
you need EDR on both sides to profit from it.
> I tried it out with my Ubuntu linux. The device has been recognized
> properly. Then I tried the Internet connection (with UMTS you can have
> more than 30 kBytes/s). Unfortunately all I could see was a transfer
> rate (taken with wget downloading the kernel sources from a fast mirror)
> of about 9 kB/s. I also tried to do the same with Windows XP and there
> the transfer rate reached about 32 kB/s!! I did the same several times
> and all the times I had the same results.
> Furthermore, I tried to do the same under Linux with a USB connection,
> and I'm getting 32kB/s as well. This brought me to think the bottleneck
> is in the BT connection.
>
> This is how I'm setting the BT connection:
> $ sudo hcitool cc --role=m 00:0E:A1:45:1F:AE
> $ sudo hcitool auth 00:0E:A1:45:1F:AE
> $ sudo rfcomm bind 00:0E:A1:45:1F:AE
> $ sudo ln -sf /dev/rfcomm0 /dev/modem
The two hcitool commands are not needed. RFCOMM can create the piconet
by itself.
> To dial I'm using exactly the same procedure as when using the USB
> connection (with kppp).
>
> I'm wondering if I need to tweak some parameter of the bluetooth
> connection. hciconfig gives me many info but I don't know how to
> interpret them and what options to give (where can I find
> documentation?).
If you reach 32 kB/s then this is a good result. With Bluetooth prior
EDR you will reach max something around 80 kB/s, but this is not really
doable with PPP in between. The bottleneck can also be the UART inside
your mobile phone.
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] Bluetooth connection too slow
2005-11-26 18:13 ` Marcel Holtmann
@ 2005-11-26 18:27 ` Mario Demontis
2005-11-26 18:32 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Mario Demontis @ 2005-11-26 18:27 UTC (permalink / raw)
To: bluez-users
> If you reach 32 kB/s then this is a good result. With Bluetooth prior
> EDR you will reach max something around 80 kB/s, but this is not really
> doable with PPP in between. The bottleneck can also be the UART inside
> your mobile phone.
>
That wouldn't explain the reason why under Windows I'm getting 32kB/s...
By the way, what I'm willing to do is just to have the same performance
under Linux
Thanks and regards
Mario
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Solo 10 Euro per chiamare in tutto il mondo!! Scopri il vantaggio di Email Phone Card, clicca subito
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2685&d=26-11
-------------------------------------------------------
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] Bluetooth connection too slow
2005-11-26 18:27 ` Mario Demontis
@ 2005-11-26 18:32 ` Marcel Holtmann
2005-12-12 21:59 ` Mario Demontis
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2005-11-26 18:32 UTC (permalink / raw)
To: bluez-users
Hi Mario,
> > If you reach 32 kB/s then this is a good result. With Bluetooth prior
> > EDR you will reach max something around 80 kB/s, but this is not really
> > doable with PPP in between. The bottleneck can also be the UART inside
> > your mobile phone.
>
> That wouldn't explain the reason why under Windows I'm getting 32kB/s...
> By the way, what I'm willing to do is just to have the same performance
> under Linux
try to tweak your PPP settings, because I don't think that RFCOMM is the
bottleneck here. I could be, but I doubt it.
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] Bluetooth connection too slow
2005-11-26 18:32 ` Marcel Holtmann
@ 2005-12-12 21:59 ` Mario Demontis
2005-12-12 23:35 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Mario Demontis @ 2005-12-12 21:59 UTC (permalink / raw)
To: bluez-users
Hello Marcel
I made several efforts in order to try different combinations of ppp
parameters, but I didn't get any improvement: my ppp connection over
bluetooth is still 3 times slower than in windows :(
Now I'm trying to use different parameters for the terminal settings
(over rfcomm). Just a question:
If I set the speed of /dev/rfcomm0 to 1200 rather than 115200 or more,
how does the driver react? Does it ignore the setting? What about other
terminal settings (flow control, parity,...)
Thanks in advance
Mario
Il giorno sab, 26/11/2005 alle 19.32 +0100, Marcel Holtmann ha scritto:
> Hi Mario,
>
> > > If you reach 32 kB/s then this is a good result. With Bluetooth prior
> > > EDR you will reach max something around 80 kB/s, but this is not really
> > > doable with PPP in between. The bottleneck can also be the UART inside
> > > your mobile phone.
> >
> > That wouldn't explain the reason why under Windows I'm getting 32kB/s...
> > By the way, what I'm willing to do is just to have the same performance
> > under Linux
>
> try to tweak your PPP settings, because I don't think that RFCOMM is the
> bottleneck here. I could be, but I doubt it.
>
> 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
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Cartucce, toner, ricariche...scegli a chi rivolgerti per la tua stampante. Clicca qui
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4198&d=12-12
-------------------------------------------------------
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] Bluetooth connection too slow
2005-12-12 21:59 ` Mario Demontis
@ 2005-12-12 23:35 ` Marcel Holtmann
0 siblings, 0 replies; 6+ messages in thread
From: Marcel Holtmann @ 2005-12-12 23:35 UTC (permalink / raw)
To: bluez-users
Hi Mario,
> I made several efforts in order to try different combinations of ppp
> parameters, but I didn't get any improvement: my ppp connection over
> bluetooth is still 3 times slower than in windows :(
> Now I'm trying to use different parameters for the terminal settings
> (over rfcomm). Just a question:
> If I set the speed of /dev/rfcomm0 to 1200 rather than 115200 or more,
> how does the driver react? Does it ignore the setting? What about other
> terminal settings (flow control, parity,...)
any baud rate change should be propagated with a RPN message, but maybe
the first one got lost and the phone things it is at 9600 which is the
default. Run "hcidump -X -V" for the connection and check if you find
any RFCOMM RPN messages at all. The RPN support hasn't been there all
the time. Make sure you use a recent 2.6 kernel.
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 23:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-26 18:04 [Bluez-users] Bluetooth connection too slow Mario Demontis
2005-11-26 18:13 ` Marcel Holtmann
2005-11-26 18:27 ` Mario Demontis
2005-11-26 18:32 ` Marcel Holtmann
2005-12-12 21:59 ` Mario Demontis
2005-12-12 23:35 ` 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).