2005-05-22 23:23:24

by Ron Murray

[permalink] [raw]
Subject: [Bluez-users] Ambicom BT-2000CF doesn't want to work with kernel 2.6.11.8

I'm running Debian sarge on a Sony PCG-505FX laptop, using a
home-built kernel (currently 2.6.11.8 with current bluez patches). I've
had trouble getting SCO working with another dongle, so I thought I'd
try it with the Ambicom card, using the CF <--> PCMCIA adapter that
comes with it.

The card had been working with 2.4 kernels (using the bt950 driver),
but I'd never tried it on a 2.6 kernel before. First thing I discovered
was that I needed the serial_cs module compiled into the kernel, and I
didn't have it (might it not be a good idea to have the hci_uart module
depend on it?). I built a new kernel, and was able to load drivers anyway.

When I plugged the card into the PCMCIA slot, I got this in my syslog:

> May 22 16:01:26 cleopatra cardmgr[5721]: initializing socket 0
> May 22 16:01:26 cleopatra cardmgr[5721]: socket 0: AmbiCom BT2000E
Bluetooth Card
> May 22 16:01:26 cleopatra cardmgr[5721]: product info:
> "AmbiCom,Inc", "BT2000E", "Bluetooth PC/CF Card"
> May 22 16:01:26 cleopatra cardmgr[5721]: manfid: 0x022d, 0x2000
function: 2 (serial)
> May 22 16:01:26 cleopatra cardmgr[5721]: executing: 'modprobe serial_cs'
> May 22 16:01:27 cleopatra kernel: ttyS3: detected caps 00000700
should be 00000100
> May 22 16:01:27 cleopatra kernel: ttyS3 at I/O 0x2e8 (irq = 11) is a
16C950/954
> May 22 16:01:27 cleopatra cardmgr[5721]: executing: './bluetooth
start ttyS3'
> May 22 16:01:28 cleopatra udev[5758]: removing device node '/dev/ttyS3'
> May 22 16:01:29 cleopatra udev[5785]: creating device node '/dev/ttyS3'
> May 22 16:01:35 cleopatra cardmgr[5721]: + Initialization timed out.
> May 22 16:01:51 cleopatra kernel: Bluetooth: HCI UART driver ver 2.1
> May 22 16:01:51 cleopatra kernel: Bluetooth: HCI H4 protocol initialized
> May 22 16:01:51 cleopatra kernel: Bluetooth: HCI BCSP protocol
initialized
> May 22 16:01:51 cleopatra hcid[5727]: HCI dev 0 registered

Attempts to use 'hciattach ttyS3 ericsson' resulted eventually in:

> May 22 16:02:01 cleopatra hcid[5817]: Can't init device hci0:
> Connection timed out (110)

... and 'hciconfig -a' tells me the hci0 interface is down. It had
00:00:00:00:00:00 for the MAC address.

From my work with the bt950 driver, I think that the Ericsson
chipset defaults to a baud rate of 57600. So I tried:

hciattach ttyS3 ericsson 57600

and got:

> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 00
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 00
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 78
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 00
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 00
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type c0
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 00
> May 22 16:50:08 cleopatra kernel: h4_recv: Unknown HCI packet type 80
> May 22 16:50:08 cleopatra hcid[4922]: HCI dev 0 registered
> May 22 16:50:18 cleopatra hcid[7658]: Can't init device hci0:
> Connection timed out (110)

It does appear that the serial ports on the card and the radio
section are not set to the same baud rate. Does this sound likely? Any
suggestions for getting it working?

Thanks,

.....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 Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-05-24 09:25:23

by Mathias Adam

[permalink] [raw]
Subject: Re: [Bluez-users] Ambicom BT-2000CF doesn't want to work with kernel 2.6.11.8

Hi Ron,

On 23.05.05 21:43:16, Ron Murray wrote:
...
> >>I don't know, if it is exactly your problem, but some bluetooth
> >>PCMCIA (CF) cards have problems with kernel 2.6. Specially
> >>New SOCKET or Billionton card.
> >>There exists patch for kernel 2.6.11, which resolve problems with
> >>these cards. Look at this page for instruction:
> >>http://www.summet.com/x31/socket.html
> >>
> >>Find in archive mail with subject "Billionton(?) CF card - success".
...
> Anyway, thanks for the help, folks, but it still doesn't work.=20
> Doesn't seem to have made any difference as far as I can see. If=20
> nobody's got any more ideas, I'll trace the bt950 driver through and=20
> compare it to the current one. Perhaps that'll give me a handle on=20
> what's happening.

don't know if this can help you, but when I made the patch mentioned
above (to get my Socket CF bluetooth card working - it worked under 2.4
but not 2.6, like yours) I compared the serial_cs modules in both kernel
versions and found that in 2.6, some code is missing which was present
in 2.4, especially everything regarding high-speed UART chips. Don't know
why all this was removed though...
Because of the missing init code the UART chip didn't get initialized
with the baud rate which hciattach supplied to the serial driver.

Regards

Mathias




--=20
Nichts auf der Welt ist so gerecht verteilt wie der Verstand.
Denn jedermann ist =FCberzeugt, da=DF er genug davon habe.
(Rene Descartes, frz. Mathematiker u. Philosoph, 1596-1650)


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-05-24 01:43:16

by Ron Murray

[permalink] [raw]
Subject: Re: [Bluez-users] Ambicom BT-2000CF doesn't want to work with kernel 2.6.11.8

Marcel Holtmann wrote:
> Hi Pavel,
>
>
>>I don't know, if it is exactly your problem, but some bluetooth
>>PCMCIA (CF) cards have problems with kernel 2.6. Specially
>>New SOCKET or Billionton card.
>>There exists patch for kernel 2.6.11, which resolve problems with
>>these cards. Look at this page for instruction:
>>http://www.summet.com/x31/socket.html
>>
>>Find in archive mail with subject "Billionton(?) CF card - success".
>
>
> Pavel Machek posted the commands to get the Billionton card working to
> the LKML. I verified it and maybe the same will work the Ambicom.
>
> And depending on if it is a 2000C or 2000E it has a CSR or an Ericsson
> chip inside. Guess who is who.

It's a 2000E, with an Ericsson chip in it. I found that out a year
ago when I was playing around with the bt950 driver on my Zaurus.

Anyway, thanks for the help, folks, but it still doesn't work.
Doesn't seem to have made any difference as far as I can see. If
nobody's got any more ideas, I'll trace the bt950 driver through and
compare it to the current one. Perhaps that'll give me a handle on
what's happening.

Thanks,

.....Ron


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

2005-05-23 10:15:58

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Ambicom BT-2000CF doesn't want to work with kernel 2.6.11.8

Hi Pavel,

> I don't know, if it is exactly your problem, but some bluetooth
> PCMCIA (CF) cards have problems with kernel 2.6. Specially
> New SOCKET or Billionton card.
> There exists patch for kernel 2.6.11, which resolve problems with
> these cards. Look at this page for instruction:
> http://www.summet.com/x31/socket.html
>
> Find in archive mail with subject "Billionton(?) CF card - success".

Pavel Machek posted the commands to get the Billionton card working to
the LKML. I verified it and maybe the same will work the Ambicom.

And depending on if it is a 2000C or 2000E it has a CSR or an Ericsson
chip inside. Guess who is who.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-05-23 07:49:01

by Pavel Ruzicka

[permalink] [raw]
Subject: Re: [Bluez-users] Ambicom BT-2000CF doesn't want to work with kernel 2.6.11.8

Hello,

I don't know, if it is exactly your problem, but some bluetooth
PCMCIA (CF) cards have problems with kernel 2.6. Specially
New SOCKET or Billionton card.
There exists patch for kernel 2.6.11, which resolve problems with
these cards. Look at this page for instruction:
http://www.summet.com/x31/socket.html

Find in archive mail with subject "Billionton(?) CF card - success".

> I'm running Debian sarge on a Sony PCG-505FX laptop, using a
> home-built kernel (currently 2.6.11.8 with current bluez patches). I've

Best regards,

Pavel Ruzicka


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users