Bluetooth connection too slow
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Mario,
Quoted 2 lines
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.
Quoted 11 lines
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.
Quoted 5 lines
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.
Quoted 7 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 6 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Mario,
Quoted 8 lines
Quoted 4 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/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:
Quoted 21 lines
Hi Mario,
Quoted 8 lines
Quoted 4 lines
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
Quoted 9 lines
-------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Mario,
Quoted 8 lines
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/rfcomm0to 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users