Skip to contentSkip to conversation

Ambicom BT2000E card, can't get hciattach to work

Bluez-users Eran 2 participants 4 messages Apr 21, 2004 – Apr 22, 2004 Bluetooth drivers

lore
Share & tools
lore

Eran

author
#0 lore raw

Hello,
I recently purchased at BT2000E card and tried making it work with bluez.
I have installed bluetooth drivers and according to the instructions from this page (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Bluetooth) and I had to mess around a bit with the /etc/init.d/bluetooth file in order to make things work. I can get an RFCOMM to work, but when trying to work with hci I fail:
1) on /etc/init.d/bluetooth I have a line that does hciattach:

root@thumper:/etc/pcmcia# /usr/sbin/hciattach /dev/ttyS3 bcsp 57600
Can't get port settings: Input/output error
Can't initialize device: Input/output error

2) hcitool scan and cc <phone> works, but hci lq fails:

root@thumper:/etc/pcmcia# hcitool lq 00:80:37:D6:93:D5
HCI get_link_quality cmd failed (0x01)

This command worked for me with another bluetooth card (those cheap mavin cards) and I assume it has something to do with the hciattach failing.

Extra info:
I'm on sharp zarusu SL-5500 with OZ 3.3.5 and kernel 2.4.18-rmk7-pxa3-embedix (default OZ). cardctl ident output:

root@thumper:/etc/pcmcia# cardctl ident
Socket 0:
 product info: "AmbiCom,Inc", "BT2000E", "Bluetooth PC/CF Card"
 manfid: 0x022d, 0x2000
 function: 2 (serial)
dmesg of bluez drivers doesn't show anything special, And before I installed bluetooth drivers the card showed as serial device on /dev/ttyS3.

Thank you all and keep up the good work,
ERan

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Hello,

Quoted 5 lines

I can get an RFCOMM to work, but when trying to work with hci I fail:
1) on /etc/init.d/bluetooth I have a line that does hciattach:

root@thumper:/etc/pcmcia# /usr/sbin/hciattach /dev/ttyS3 bcsp 57600
Can't get port settings: Input/output error
Can't initialize device: Input/output error

I have this card (Pretec BT2000E) with Sharp Zaurus SL-C860 with Cacko rom. For this card exists now 3 drivers.

1. bt950_cs
This driver is probably from Marcel Holtmann and is part of BlueZ. hciattach is not needed for this driver.
http://www.holtmann.org/linux/bluetooth/

2. bt2000e_cs
I use mometally this driver, because it works for me and it is part of Cacko rom installation. There are some fixes with suspend/resume problems and uart speed.
hciattach is not needed for this driver too.
http://www.iral.com/~albertr/linux/bt2000e/

3. serial_cs
This path is preferred, but I can't find right parameters for hciattach. I've tried many combinations like this:
hciattach /dev/ttyS3 ericsson 460800
But all without success.
If somebody run card with this driver please write to the list!

Quoted 3 lines

2) hcitool scan and cc <phone> works, but hci lq fails:

root@thumper:/etc/pcmcia# hcitool lq 00:80:37:D6:93:D5
HCI get_link_quality cmd failed (0x01)

If this works, you must have corretly runned hciattach... What shows "hciconfig"?

Quoted 5 lines
root@thumper:/etc/pcmcia# cardctl ident
Socket 0:
  product info: "AmbiCom,Inc", "BT2000E", "Bluetooth PC/CF Card"
  manfid: 0x022d, 0x2000
  function: 2 (serial)

This is my cardctl ident:
Socket 0:
product info: "Pretec", "BT2000E", "Bluetooth PC/CF Card"
manfid: 0x022d, 0x2000
function: 2 (serial)

Quoted 2 lines

dmesg of bluez drivers doesn't show anything special, And before I installed bluetooth drivers the card showed as serial device on /dev/ttyS3.

Yes card is identified as UART.

I have this config file: /etc/pcmcia/bt2000e.conf
-----------------------------------------------------------------------------
device "bt2000e_cs"
class "bluetooth" module "bt2000e_cs"

card "AmbiCom BT2000E Bluetooth Card"
version "AmbiCom,Inc", "BT2000E"
bind "bt2000e_cs"

card "Pretec BT2000E Bluetooth Card"
version "Pretec", "BT2000E"
bind "bt2000e_cs"
------------------------------------------------------------------------------

This card works good for me.

Best regards,

Pavel Ruzicka

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

Sorry I forgot to mention it - but hciconfig shows a fully 'up and running' interface. I use the bt950_cs driver.
I further checked and most hcitool commands work except the link quality.
I Have tried removing the bluetooth.conf from my pcmcia/ directory and use hciattach with /dev/ttyS03, but no success here as well (could not find correct parameters). Why is it the preferred way?

Quoted 91 lines · Pavel Ruzicka

Hello,

Quoted 7 lines

I can get an RFCOMM to work, but when trying to work with hci I fail:
1) on /etc/init.d/bluetooth I have a line that does hciattach:

root@thumper:/etc/pcmcia# /usr/sbin/hciattach /dev/ttyS3 bcsp 57600
Can't get port settings: Input/output error
Can't initialize device: Input/output error

I have this card (Pretec BT2000E) with Sharp Zaurus SL-C860 with Cacko rom. For this card exists now 3 drivers.

1. bt950_cs
This driver is probably from Marcel Holtmann and is part of BlueZ. hciattach is not needed for this driver.
http://www.holtmann.org/linux/bluetooth/

2. bt2000e_cs
I use mometally this driver, because it works for me and it is part of Cacko rom installation. There are some fixes with suspend/resume problems and uart speed.
hciattach is not needed for this driver too.
http://www.iral.com/~albertr/linux/bt2000e/

3. serial_cs
This path is preferred, but I can't find right parameters for hciattach. I've tried many combinations like this:
hciattach /dev/ttyS3 ericsson 460800
But all without success.
If somebody run card with this driver please write to the list!

Quoted 5 lines

2) hcitool scan and cc <phone> works, but hci lq fails:

root@thumper:/etc/pcmcia# hcitool lq 00:80:37:D6:93:D5
HCI get_link_quality cmd failed (0x01)

If this works, you must have corretly runned hciattach... What shows "hciconfig"?

Quoted 7 lines
root@thumper:/etc/pcmcia# cardctl ident
Socket 0:
 product info: "AmbiCom,Inc", "BT2000E", "Bluetooth PC/CF Card"
 manfid: 0x022d, 0x2000
 function: 2 (serial)

This is my cardctl ident:
Socket 0:
product info: "Pretec", "BT2000E", "Bluetooth PC/CF Card"
manfid: 0x022d, 0x2000
function: 2 (serial)

Quoted 4 lines

dmesg of bluez drivers doesn't show anything special, And before I installed bluetooth drivers the card showed as serial device on /dev/ttyS3.

Yes card is identified as UART.

I have this config file: /etc/pcmcia/bt2000e.conf
-----------------------------------------------------------------------------
device "bt2000e_cs"
class "bluetooth" module "bt2000e_cs"

card "AmbiCom BT2000E Bluetooth Card"
version "AmbiCom,Inc", "BT2000E"
bind "bt2000e_cs"

card "Pretec BT2000E Bluetooth Card"
version "Pretec", "BT2000E"
bind "bt2000e_cs"
------------------------------------------------------------------------------

This card works good for me.

Best regards,

Pavel Ruzicka

Quoted 11 lines

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw

Hello,

Quoted 3 lines

Sorry I forgot to mention it - but hciconfig shows a fully 'up and running' interface. I use the bt950_cs driver.
I further checked and most hcitool commands work except the link quality.

I don't try link quality. It's possible, that this function doesn't work with this driver or your BT devices doesn't have established connection.

Quoted 3 lines

I Have tried removing the bluetooth.conf from my pcmcia/ directory and use hciattach with /dev/ttyS03, but no success here as well (could not find correct parameters). Why is it the preferred way?

Because there are more BT cards with BT950 uart and ericsson chipset which supposedly works with serial_cs driver and hciattach.
It's better to have for all these cards only one universal driver.

It's possible, that BT2000E requires some special initialization which hciattach doesn't know, but I'am not expert.

Best regards,

Pavel Ruzicka

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users