OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: jna on September 05, 2005, 09:55:52 am

Title: Trying To Start Up Bluetooth On Oz
Post by: jna on September 05, 2005, 09:55:52 am
Hi,

I have Billionton CF BlueTooth card and I am trying to get it to work since few days without success
At first I had Cacko and it worked fine, but I have switched to OZ 3.5.3 and I can not start it up. I have tried to follow few HOW-TOs, but no good results.

When I insert card into slot it is automatically discovered in status bar as "Billionton Bluetooth Card" and it blinks. And this is the only positive response.

# sdptool browse
Inquiring ...
Inquiry failed

# hcitool scan
Device is not available.: Address family not supported by protocol

# cardctl status
Socket 0:
  3.3V 16-bit PC Card
  function 0: [ready]

#  setserial /dev/ttyS3 baud_base 921600
/dev/ttyS3: No such device or address

(yes, /dev/ttyS3 exists)

Where is my fault, what should I do? please help,
Jakub
Title: Trying To Start Up Bluetooth On Oz
Post by: jna on September 06, 2005, 10:26:26 am
Does anyone can give me any suggestion what should I do?

I'm just about switching back to Cacko, but OZ seems to run faster so I still would like to have some try...
Title: Trying To Start Up Bluetooth On Oz
Post by: HeavyWeaponDude on September 06, 2005, 07:07:50 pm
Try this way.
First you need to have installed kernel-module-bluecard-cs.
Then you may need to edit /etc/pcmia/bluetooth.conf
Find the following section:

Code: [Select]
card "Billionton Bluetooth Card"
  version "Compact Flash", "Bluetooth Card"
  bind "bt950_cs"

and change the last line to:

Code: [Select]
 bind "serial_cs" class "bluetooth"
Then save and restart your pcmcia deemon: /etc/init.d/pcmcia restart

At this point you can insert your card.
Try issuing the following commands in this order:

Code: [Select]
setserial /dev/ttyS3 baud_base 921600
modprobe hci_uart
hciattach /dev/ttyS3 billionton
hciconfig hci0 up

And here you go. Try to issue a: hcitool scan
just to check everything works fine.

Hope this helps.

I've reach this point but from here on, I've been unable to find a way to ease the bluetooth startup. "/etc/init.d/bluetooth start" doesn't work for me...
Title: Trying To Start Up Bluetooth On Oz
Post by: jna on September 07, 2005, 06:44:20 am
First of all - thank you for your help!

I have done all the steps untill:

Quote
Try issuing the following commands in this order:

Code: [Select]
setserial /dev/ttyS3 baud_base 921600
modprobe hci_uart
hciattach /dev/ttyS3 billionton
hciconfig hci0 up

setserial result is following:

Code: [Select]
# setserial /dev/ttyS3 baud_base 921600
/dev/ttyS3: No such device or address

I guess it is again problem with lack of some modules. It took me long time untill I have realised that OpenZaurus default kernel does not include many modules such us bluetooth etc. They are also not in standard feed, they just have to be downloaded from http://www.rpsys.net/openzaurus/packages/ (http://www.rpsys.net/openzaurus/packages/)

Do you know which modules should I download to have setserial working? I was trying with some, but without any results.
Title: Trying To Start Up Bluetooth On Oz
Post by: HeavyWeaponDude on September 07, 2005, 06:59:47 am
As I have wrote, you have to install "kernel-module-bluecard-cs".
It is in the standard feed (machine section).
You also may have to edit /etc/pcmia/bluetooth.conf.
Check my previous post for details.
Title: Trying To Start Up Bluetooth On Oz
Post by: jna on September 07, 2005, 07:06:34 am
I have done all the steps you have written up to "setserial", including installation of "kernel-module-bluecard-cs" and editing bluetooth.conf.

In the meantime I have found also other modules which are required for setserial to work. But hciattach returns following result:

Code: [Select]
# hciattach /dev/ttyS3 billionton
Unknown device type or id

I have tried also with other parameter:

Code: [Select]
# hciattach /dev/ttyS3 bcsp
Can't get port settings: Input/output error
Can't initialize device: Illegal seek

How can I get hciattach working?
Title: Trying To Start Up Bluetooth On Oz
Post by: HeavyWeaponDude on September 07, 2005, 01:34:03 pm
Try to insert the card, and type from console:

cardctl ident

then compare the results with the content in your /etc/pcmia/bluetooth.conf
file. Maybe your card has a different chip?
Title: Trying To Start Up Bluetooth On Oz
Post by: jna on September 08, 2005, 04:51:56 am
I have following results:

Code: [Select]
# cardctl ident
Socket 0:
  product info: "Compact Flash", "Bluetooth Card", "", ""
  manfid: 0x0279, 0x950b
  function: 2 (serial)

And file /etc/pcmcia/bluetooth.conf contains:

Code: [Select]
card "Billionton Bluetooth Card"
  version "Compact Flash", "Bluetooth Card"
  bind "serial_cs" class "bluetooth"

What else can I do?
Title: Trying To Start Up Bluetooth On Oz
Post by: HeavyWeaponDude on September 08, 2005, 08:07:16 am
Looks exactly as mine...
I'm unable to help you more, unfortunately.
As far as I can see, everything looks ok...
Title: Trying To Start Up Bluetooth On Oz
Post by: Hrw on September 08, 2005, 09:24:41 am
for 2.4 kernel you need bt950_cs module
for 2.6 you have to try all BT modules as bt950_cs is 2.4 only
Title: Trying To Start Up Bluetooth On Oz
Post by: jna on September 09, 2005, 09:29:37 am
Thank you both for your support. I have tried also with BT modules I have found, but still could not get it working. After installing all of these packages my OpenZaurus started to have other problems - I can not suspend it or even switch it off (have to remove battery). Another thing is that setserial hangs up (and even can not be killed -9). TOP shows load average about 2 (before it was about 0).

I am going to check pdaXrom and if I can set it up (with bluetooth etc.) in few days it will be great, if not I will switch back to Cacko (bluetooth was working there "out of the box").

Thanks again, hope one day I can try OZ again