2004-01-06 18:02:15

by Ron Murray

[permalink] [raw]
Subject: [Bluez-users] bt950 driver?

I have an AmbiCom BT2000E bluetooth card to use with my Sharp
Zaurus SL-5600. Surprisingly, it seemed to work without any
configuration (after I'd sorted out the main Bluez stuff, of course).

Then I discovered that the transfer rate is painfully slow (around
5k bytes/sec, with many timeouts). I can't easily see what driver it
thinks it's using, but it doesn't seem to use the bt950 driver which
the Bluez website claims is the correct one.

I downloaded the driver, but it won't compile against the current
Bluez stuff (libs 2.5, utils 2.4, pin 0.21, sdp 1.5). I get lots of
errors that way. And it seems that the link to the "Alternate driver
for BT2000E Bluetooth cards" from the website is dead.

Any suggestions? Is there any obvious reason why bt950_cs.c won't
compile? (I'd post the results of the compile attempt, but there's
rather a lot of it and I don't want to needlessly clog up the list).

.....Ron

--
Ron Murray ([email protected])
http://www.rjmx.net/~ron
GPG Public Key Fingerprint: F2C1 FC47 5EF7 0317 133C D66B 8ADA A3C4 D86C 74DE


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-01-06 20:13:33

by Ron Murray

[permalink] [raw]
Subject: Re: [Bluez-users] bt950 driver?

At 06 Jan 2004 19:02:04 +0000,
Stephen Crane <[email protected]> wrote:
>
> On Tue, 2004-01-06 at 18:02, Ron Murray wrote:
> > I downloaded the driver, but it won't compile against the current
> > Bluez stuff (libs 2.5, utils 2.4, pin 0.21, sdp 1.5). I get lots of
> > errors that way. And it seems that the link to the "Alternate driver
> > for BT2000E Bluetooth cards" from the website is dead.
>
> You don't compile the kernel driver against user-space stuff.

You're right. I took a brief look at the source, noted it was a
standalone C program (no kernel patches) and I wasn't thinking.

Actually, it seems the Zaurus driver is the bt950_cs after
all. Only had the thing two weeks and I'm still trying to get the hang
of it: silly me assumed that a 'locate bt950' command would work.

The goal was, now that I think about it, to run the BT2000 on my
i386 laptop, where I can get at it lots easier and try to troubleshoot
the slow transfer rate on pand problem. I've tried bluetooth transfers
on tha laptop with a USB Tecom BT3030 (same as the server end) and got
a rate of 55k - 60k bytes/sec, which is much nearer to what I'd
expect. I thought I'd try the BT2000 on the laptop and see what
happens, trying to decide whether it's a driver problem or one related
to the Zaurus. That's when I found that the current kernel on that
machine (2.4.22) doesn't have a bt950 driver.

Sorry if I confused you.

> > Any suggestions? Is there any obvious reason why bt950_cs.c won't
> > compile? (I'd post the results of the compile attempt, but there's
> > rather a lot of it and I don't want to needlessly clog up the list).
>
> That would be a help. Even saying what the steps you took were would help.

I think I just found the problem. I was trying to compile it on my
desktop, which I use to generate kernels for all my machines. Seems
that /usr/src/linux was symlinked to the 2.6.0 source. I just tried it
with the 2.4.22 source and it compiled ok (with some grumbling about
type-punned pointers and strict aliasing rules, whatever they are). I
will transfer it to my laptop and see what happens. Doesn't look like
it'll compile under 2.6.0, though.

> For instance:
>
> * download bt950-0.1.tar.gz from holtmann.org
> * get the kernel sources for 2.4.18-pxa3-embedix from, err..., sharp's website?
> * download the Embedix cross-compilation tools from http://community.zaurus.com/project/showfiles.php?group_id=18
> * softlink /usr/src/linux-2.4.18-pxa3-embedix to /usr/src/linux
> * edit bt950/Makefile to use arm-linux-gcc, etc.
> * ...
>
> Steve
> --
> Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
> [email protected] +353-1-6601315 (ext 209)
>

Thanks for your help.

.....Ron

--
Ron Murray ([email protected])
http://www.rjmx.net/~ron
GPG Public Key Fingerprint: F2C1 FC47 5EF7 0317 133C D66B 8ADA A3C4 D86C 74DE


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-01-06 19:02:04

by Stephen Crane

[permalink] [raw]
Subject: Re: [Bluez-users] bt950 driver?

On Tue, 2004-01-06 at 18:02, Ron Murray wrote:
> I downloaded the driver, but it won't compile against the current
> Bluez stuff (libs 2.5, utils 2.4, pin 0.21, sdp 1.5). I get lots of
> errors that way. And it seems that the link to the "Alternate driver
> for BT2000E Bluetooth cards" from the website is dead.

You don't compile the kernel driver against user-space stuff.

> Any suggestions? Is there any obvious reason why bt950_cs.c won't
> compile? (I'd post the results of the compile attempt, but there's
> rather a lot of it and I don't want to needlessly clog up the list).

That would be a help. Even saying what the steps you took were would help.
For instance:

* download bt950-0.1.tar.gz from holtmann.org
* get the kernel sources for 2.4.18-pxa3-embedix from, err..., sharp's website?
* download the Embedix cross-compilation tools from http://community.zaurus.com/project/showfiles.php?group_id=18
* softlink /usr/src/linux-2.4.18-pxa3-embedix to /usr/src/linux
* edit bt950/Makefile to use arm-linux-gcc, etc.
* ...

Steve
--
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users