OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Accessories => Topic started by: tumnus on January 11, 2004, 08:06:03 pm

Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 11, 2004, 08:06:03 pm
I\'ve release another package that replaces /etc/pcmcia/serial with a hacked version. The upshot of this is with the latest BlueZ packages, the Socket Rev G card should work out of the box, fingers crossed. For other CSR UART based cards see further down.

To summarize; uninstall any previous BlueZ packages and install the following packages:

http://www.cpinkney.org.uk/susp-resume_0.9-3.1.ipk (http://www.cpinkney.org.uk/susp-resume_0.9-3.1.ipk)
http://zaurus.newkirk.us/sudo_0.1_arm.ipk (http://zaurus.newkirk.us/sudo_0.1_arm.ipk)
http://community.zaurus.com/download.php/5...2.4.18d_arm.ipk (http://community.zaurus.com/download.php/516/bluez-zaurus_2.3-2.4.18d_arm.ipk) (or http://community.zaurus.com/download.php/5...preempt_arm.ipk (http://community.zaurus.com/download.php/517/bluez-zaurus_2.3-2.4.18d-preempt_arm.ipk) if you are using a pre-emptive patched kernel)
http://community.zaurus.com/download.php/4...z_0.9.1_arm.ipk (http://community.zaurus.com/download.php/449/susp-resume-bluez_0.9.1_arm.ipk)
http://community.zaurus.com/download.php/5...ial_0.1_arm.ipk (http://community.zaurus.com/download.php/518/bluez-csr-serial_0.1_arm.ipk) (NOTE: This replaces /etc/pcmcia/serial so you will lose any changes you have made to it and it is restored to the Sharp default if you uninstall this package)

Then follow this howto:
http://www.zaurususergroup.com/modules.php...ename=Bluetooth (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Bluetooth)

This may make it easier to get other CSR UART based cards working too that are awkward like the Socket Rev G card (such as the Mavin, Brain Box, Billionton and Bluetake cards). With these cards you should only have to install the packages above, add a line to /etc/bluetooth/uart in the same format as the existing line and follow the howto above.

The format of /etc/bluetooth/uart is:

Code: [Select]
:

Where <Product_Info> is the product info text given by the command \'cardctl ident\' with the CF card plugged in.

It is done like this as different CSR based cards seem to require different hciattach parameters, although all of them should start with \"/dev/ttyS3\" and some may only require that. You might have to search around a bit and play to find the correct hciattach parameters.

Please let me know if you get the Socket Rev G card working ok with these packages and if any other cards work with this.

One of these days I am going to get my finger out and finish my Bluetooth GUI so that all of this can be done with a nice graphical interface.

Enjoy
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: doublec on January 11, 2004, 09:22:35 pm
Some of these links seem to have \'..\' in them and they don\'t work as a result.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 12, 2004, 03:19:10 am
Oops. It was late and I copied and pasted my post from the DevNet forums. Thanks for pointing that out. I\'ve fixed the post above.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 13, 2004, 01:12:28 am
Quote
The format of /etc/bluetooth/uart is: 

Code: 
<Product_Info>:<hciattach parameters> 


Where <Product_Info> is the product info text given by the command \'cardctl ident\' with the CF card plugged in. 

It is done like this as different CSR based cards seem to require different hciattach parameters, although all of them should start with \"/dev/ttyS3\" and some may only require that. You might have to search around a bit and play to find the correct hciattach parameters.

tumnus - I hate to admit it, but I may need the \"for dummies\" version of this.  I do realize that you have better things to do, but humor me please

My results of $ cardctl ident:
# cardctl ident
Socket 0:
  product info: \"AmbiCom BT2000C\", \"Bluetooth PC/CF Card
  manfid: 0x022d, 0x2000
  function: 2 (serial)
Socket 1:
  no product info available
#

So, I would have to presume that the code that I would put in /etc/bluetooth/uart would be:

\"AmbiCom BT2000C\", \"Bluetooth PC/CF Card\":/dev/ttyS3 bcsp 230400

Then, for the first time ever, the following statement returned something:

# hciattach /dev/ttyS3 bcsp 230400

BCSP initialization timed out
#

Wow.  Too bad it wasn\'t something better

I then started trying some additional points in the following thread:
http://www.zaurus.com/dev/board/index.php?...=5175&hl=socket (http://www.zaurus.com/dev/board/index.php?showtopic=5175&hl=socket) (which you suggested checking out earlier)

I did the following:

# cd bluetooth
# ls
bluecard_cs.o  bt950_cs.o     dtl1_cs.o      hci_vhci.o
bt3c_cs.o      btuart_cs.o    hci_uart.o
# cp /mnt/card/Documents/hci_bcsp.o .
# ls
bluecard_cs.o  bt950_cs.o     dtl1_cs.o      hci_uart.o
bt3c_cs.o      btuart_cs.o    hci_bcsp.o     hci_vhci.o
# depmod -a
# hciattach /dev/ttS3 bcsp 230400
Can\'t open serial port: No such file or directory
Can\'t initialize device: No such file or directory
#

You note the following in one of the posts in that thread:
\"Oh, and remember to ensure that it uses the hci_uart driver too. That will probably require adding an entry to /etc/pcmcia/bluetooth.conf and a restart of pcmcia.\"

In /etc/pcmcia/bluetooth.conf, I found the following entry:
device \"hci_uart\"
  class \"bluetooth\" module \"hci_uart\"

Is that sufficient for what you were getting at in that post?

I also tried the following:
# hciattach /dev/ttyS3 csr
Initialization timed out.
#

Also, when I restarted my Z, I got the following lines in my dmesg:

# dmesg
<cut most of output>
BlueZ Core ver 2.3 Copyright © 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
BlueZ L2CAP ver 2.3 Copyright © 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
BlueZ RFCOMM ver 1.0
Copyright © 2002 Maxim Krasnyansky <maxk@qualcomm.com>
Copyright © 2002 Marcel Holtmann <marcel@holtmann.org>
This function is not support     411c
#

Don\'t know what that last comment was about!?!

Again, I was surprised that I received a response at all from hciattach, but now I am again stumped... Anything additional?  Could the problem be my hciattach parameters?  Thanks much again for any help.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: doublec on January 13, 2004, 03:59:17 am
]# depmod -a
]# hciattach /dev/ttS3 bcsp 230400
]Can\'t open serial port: No such file or directory
]Can\'t initialize device: No such file or directory
 
In the above you\'ve got the device wrong. It should be /dev/ttyS3 and this is probably why it is saying no such file or directory. Maybe it was a typo when entering it into the forum but thought I\'d better run it by you. I hope you get it working. I\'ve got a billionton card which has the same manfid as yours so if you get yours working there\'s hope for me too.

Chris.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 13, 2004, 04:04:00 am
I\'m not even sure the Ambicom BT2000C card uses the CSR chipset, but it was just something to try. \'cardctl ident\' does say it is a serial card, which is promising. You got the format of /etc/bluetooth/uart correct, but it\'s simply a case of playing around with the hciattach paramters.

A lot of the stuff from that DevNet thread is old. I was just guessing at things for people to try. What you might need to do is remove the Ambicom entry (not the hci_uart entry) from /etc/pcmcia/bluetooth.conf and then run the following command as root and see if \'hciconfig\' prints out anything:

/etc/rc.d/init.d/bluetooth restart

Maybe we need to ask Ambicom which chipset the BT2000C uses and if it does use CSR then what protocol it uses etc
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 13, 2004, 06:29:48 am
Actually, I just realised there isn\'t an entry for the Ambicom BT2000C model in the current bluetooth.conf. So it should be registering as a serial CF card. You just need to search the web a bit or try different hciattach parameters like \'/dev/ttyS3\' on its own etc.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: Anonymous on January 13, 2004, 12:35:46 pm
I also have one of these BT2000C cards, which I haven\'t yet got working.  I have been following the recent threads and think I have tried most of what is here.  I thought that I had struck gold when I managed to get a response from hciconfig but I don\'t seem to be quite there yet.

Here\'s what I have done:

1.  emailed support@ambicom.com asking for technical info on the BT2000C, waiting for reply.

2.  installed all the packages suggested by tumnus earlier in this thread.

3.  discovered that something interestingly different happens if I

# modprobe hci_uart

     before trying to use hciattach

4.  run through all the different (are they?) protocols listed by

# hciattach -l

    the results of this are as follows:
    bcsp, csr, texas, bboxes, comone - all report a timeout
    zircom - reports unknow device type or id
    swave - reports failed to write init command: Success; can\'t initialize device: Success
    any, digi, picocard, ericsson, inventel - all report nothing

    and then when I do

5.
# hciconfig

    I get some results:-

hci0:   Type: UART
BD Address: 00:00:00:...:00 ACL MTU:0:0 SCO MTU:0:0
DOWN
RX: bytes:0 acl:0 sco:0 events:0 errors:0
TX: bytes:4 acl:0 sco:0 commands:1 errors:0

    which looks like the card is not replying with anything sensible

6.
# hciconfig hci0 up

    gives: Can\'t init device hci0.  Connection timed out (110)

This seems to be a step forward from \"device doesn\'t exist\" that I got with this command previously.

7.  Now the truth is that I don\'t really understand what\'s going on, I\'m just trying things, but maybe someone with a better understanding can offer some further suggestions.

QUESTION:

Is hci_uart the correct kernel module to be using?  It looks like it is, but I wouldn\'t know.

Tony
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: ajaustin on January 13, 2004, 12:37:33 pm
Sorry, I forgot to login for previous post.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 13, 2004, 05:05:01 pm
I don\'t know quite what is going on there, but you almost certainly need a BlueZ driver loaded to use any BT CF card. Whether the Ambicom BT2000C needs the hci_uart module and with what hciattach parameters I do not know. It is clearly a UART based card and there is only one other UART BlueZ driver, btuart, but that works like the rest of the BlueZ drivers and I thought had been tried.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: doublec on January 13, 2004, 05:31:25 pm
When I insert the Billionton card (same manfid as the BT2000C) demsg has a log note saying that the uart is a 16C950/954. If I run \'setserial /dev/ttyS3\' it reports the uart is unknown. Trying \'setserial /dev/ttyS3 uart 16950\' gives an error the it doesn\'t know what a 16950 is. Looking at the options for setserial it only knows up to 16750. Could this be causing a problem? Is a newer version of setserial (or related functions) available?

BTW, if you try the different hciattach options and then do a \'dmesg\' you\'ll see a stream of errors for those that seems to work.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 13, 2004, 06:00:46 pm
I don\'t know if it makes any difference, but the Billionton card will be recognised as a serial CF card, which means /etc/pcmcia/serial will be executed for it and that does some setserial stuff.

On another note, in the following two DevNet threads, the poster gurj seems to suggest the Bluetake card will work just by adding an entry for it to \'/etc/bluetooth/uart\' with the hciattach parameters \'/dev/ttyS3 bcsp\':

http://www.zaurus.com/dev/board/index.php?...?showtopic=4752 (http://www.zaurus.com/dev/board/index.php?showtopic=4752)
http://www.zaurus.com/dev/board/index.php?...?showtopic=4274 (http://www.zaurus.com/dev/board/index.php?showtopic=4274)
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 13, 2004, 07:03:22 pm
As confirmation before I start to delve into all of the posts today, for the latest AmbiCom BT2000-CF © card, technical support confirmed that the chipset is CSR, which uses the standard 1.1 protocol.

I\'m going to try to play around with the hciattach parameters now to see if I can achieve any different results.

tumnus - I definitely noticed that the DevNet posts were old, but it was certainly worth a try and with every additional attempt I\'m learning a little more about the intricacies of devices on the Zaurus/Linux.  

Cheers
Nate
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 14, 2004, 12:02:00 am
Quote
In the above you\'ve got the device wrong. It should be /dev/ttyS3 and this is probably why it is saying no such file or directory. Maybe it was a typo when entering it into the forum but thought I\'d better run it by you. I hope you get it working. I\'ve got a billionton card which has the same manfid as yours so if you get yours working there\'s hope for me too.
Thanks, Chris - That was a command line error, and defn the reason that I got that different error message.  I just tried it again (just in case) and got the following expected result:

# hciconfig
#
and
# hciattach /dev/ttyS3 bcsp 230400
BCSP initialization timed out
#
arrgh!!
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 14, 2004, 12:52:26 am
Quote
I\'m not even sure the Ambicom BT2000C card uses the CSR chipset, but it was just something to try. \'cardctl ident\' does say it is a serial card, which is promising. You got the format of /etc/bluetooth/uart correct, but it\'s simply a case of playing around with the hciattach paramters.

I confirmed with AmbiCom that the BT2000C card uses the CSR chipset.  What would some additional parameters be that I could try?  I have little experience with hciattach and the -h does not reveal much.

Quote
A lot of the stuff from that DevNet thread is old. I was just guessing at things for people to try. What you might need to do is remove the Ambicom entry (not the hci_uart entry) from /etc/pcmcia/bluetooth.conf and then run the following command as root and see if \'hciconfig\' prints out anything:

/etc/rc.d/init.d/bluetooth restart

Did this and got the usual result:

# /etc/rc.d/init.d/bluetooth restart
Shutting down Bluetooth... Done.
Starting Bluetooth... Done.
# hciconfig
# hciattach /dev/ttyS3 bcsp 230400
BCSP initialization timed out
# hciattach -h

Quote
Maybe we need to ask Ambicom which chipset the BT2000C uses and if it does use CSR then what protocol it uses etc

BT2000C uses CSR chipset with the standard 1.1 protocol.  Unfortunately, that means a lot more to you than me!

It seems that CSR was a later chipset that replaced older (Z compatible) chipsets, and that it requires some special tweaks... at least that\'s what I\'m learning.  Any idea why Socket/AmbiCom and others are using that chipset rather than the old chipsets?  Just curious.

I will try some more tweaks, but as usual if there is anything that you can think of, please let me know.  Thanks-
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: ajaustin on January 14, 2004, 03:12:56 am
I just got the following response from Ambicom:
Quote
All I know is BT2000C has CSI chipset and BT2000E has Ericsson chipset.
Best Regards,
William Lee
AmbiCom Support Team
Do you think he is confirming the CSR chipset?

Tony
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 14, 2004, 03:13:25 am
Try:

hciattach /dev/ttyS3 bcsp

But we could do with knowing the UART protocol (bcsp, h4, etc) and the UART initialisation parameters.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: ajaustin on January 14, 2004, 04:32:43 am
Tumnus,
Quote
Try:

hciattach /dev/ttyS3 bcsp
Sorry, I did not make it clear that I have already tried that with same results as others (ie BCSP initialization timed out).

I am emailing William Lee for answers to your addition questions.

Tony
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 16, 2004, 04:44:50 pm
Quote
I am emailing William Lee for answers to your addition questions. 

I know William, too

Any luck with getting the card working, ajaustin?  I haven\'t time to try getting this working... I\'m considering a return for the old bt CF card very strongly now, but let me know if you have a chance to try it out.

Nate
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 18, 2004, 07:35:15 pm
I have just uploaded the latest BlueZ driver package to the ZUG Downloads (in the driver package section). When they appear I will update the BlueZ Bluetooth Howto.

I have done away with the extra CSR UART package and with any luck the Socket Rev G card should still work out of the box.

If I\'m on a roll even the Ambicom BT2000C card may work out of the box (I realised I was being stupid and forgot to try something obvious)

Let me know how it goes. I\'m off to bed, so I\'ll probably update the howto tomorrow.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: doublec on January 19, 2004, 01:04:25 am
What was the change to try and get the BT2000C to work?
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 19, 2004, 03:18:54 am
As a real quick note, I tried the latest bluez drivers loaded to ZUG, and the results with my AmbiCom BT2000C were noticeable.  When I did the ipkg install, the card LED immediately started to blink as bluetooth was turned on.  I performed a BT restart, and for the first time, hciconfig returned something:

Code: [Select]
# hciconfig

hci0:  Type: PCCARD

         BD Adress: 00:00:00:00:00:00 ACL MTU: 0:0   SCO MTU: 0:0

         DOWN

         RX bytes:0 acl:0 sco:0 events:0 errors:0

         TX bytes:0 acl:0 sco:0 commands:1 errors:0



#


But, same ol\' with the hciattach and hciconfig hci0 up commands:

Code: [Select]
# depmod -a

# hciconfig hci0 up

Can\'t init device hci0.  Connection timed out(110)

# hciattach /dev/ttyS3 bcsp 230400

Can\'t get port settings: Input/output error

Can\'t initialize device: Input/output error

#


When I perform a lsmod, it shows that the bt950_cs driver is being used for bluez.  I have to perform all of the other settings/edits I believe, but it\'s too late for me to try it tonight...
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 19, 2004, 04:02:07 am
I don\'t think anyone actually tried the bt950 driver, unless I missed a post. The bt950.conf from Holtmann\'s site doesn\'t include the BT2000C entry so I added it to bluetooth.conf

If it is working with the bt950 driver then you do not need hciattach. Although the fact that it starts with the HCI device down is a bit worrying.

Try \'hciconfig hci0 up\' and then something like \'sdptool browse\' with another bluetooth device set to discoverable.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: doublec on January 19, 2004, 05:52:08 am
If you do a dmesg I think you\'ll see lots of errors listed. That\'s what I got with the Billionton card when using the bt950_cs driver. If you look at the results of the hciconfig you\'ll see the \'bd address\' is \'00:00:00:00\' which indicates that something hasn\'t worked right I think.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 20, 2004, 10:21:11 am
Well, thanks for the feedback.  FYI- I tried several things to get the AmbiCom BT2000C card to work.

Quote
If it is working with the bt950 driver then you do not need hciattach. Although the fact that it starts with the HCI device down is a bit worrying.  

Try \'hciconfig hci0 up\' and then something like \'sdptool browse\' with another bluetooth device set to discoverable.

I tried the \'hciconfig hci0 up\' command, and the result after about 10 secs was:

Can\'t init device hci0.  Connection timed out(110)

I tried \'sdptool browse\', and the result was an immediate:

Inquiring ...
Inquiry failed

The next thing that I tried was to get the newly created Bluez drivers to use hci_uart instead of bt950_cs.  I edited the file /etc/pcmcia/bluetooth.conf and changed the setting for the BT2000C card as follows:

card “AmbiCom BT2000C Bluetooth CF Card”
   version “AmbiCom BT2000C”, “Bluetooth PC/…”
   bind “bt950_cs”

to

card “AmbiCom BT2000C Bluetooth CF Card”
   version “AmbiCom BT2000C”, “Bluetooth PC/…”
   bind “hci_uart”

After doing that, I did the following:

# depmod –a
# /etc/rc.d/init.d/pcmcia restart
# /etc/rc.d/init.d/bluetooth restart
Shutting down Bluetooth… Done.
Starting Bluetooth… Can’t get port settings: Input/output error
Can’t initialize device: Input/output error
Done.
# cardctl ident
Socket 0:
   no product info available
Socket 1:
   no product info available
#

Thus, after using the latest Bluez drivers that were created, hciconfig was able to return information (albeit erroneous as doublec indicated), and the AmbiCom BT2000C was using the bt950_cs driver based on the bluetooth.conf file.  However, once that setting was changed to use the correct driver, it no longer seemed to work.  Any help/ideas appreciated as usual.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 20, 2004, 11:14:37 am
You needed to run \'cardctl insert\' before \'/etc/rc.d/init.d/bluetooth restart\' but I\'m still not confident it will work.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 20, 2004, 12:40:40 pm
Well, I took your advice and it the results changed – the bluetooth restart caused no errors, and the ‘cardctl ident’ once again was able to determine correctly the device in Socket 0.  

However, I then received the following results:

# hciconfig
# hciconfig hci0 up
Can’t get device info: No such device
# hciattach /dev/ttyS3 bcsp 230400
Can’t get port settings: Input/output error
Can’t initialize device: Input/output error
# sdptool browse
Inquiring ...
Inquiry failed
#

One thing to note – lsmod returns the following results:

<exerpt>
# lsmod
Module   Size   Used   by
Rfcomm   blah   1
…
hci_uart   blah   0   [unused]
…
bluez   blah   1   [rfcomm l2cap hci_uart]
…
l2cap   blah   1   [rfcomm]
#

Any thoughts?  tumnus – have you received the AmbiCom card yet?  Just curious… Thanks again.

Nate
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on January 20, 2004, 02:11:51 pm
Quote
Any thoughts?  tumnus, have you received the AmbiCom card yet?  Just curious Thanks again
No thoughts, but I have just got the card, so I will have a look at it myself tonight.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on January 24, 2004, 04:49:22 am
tumnus, I bought a Socket BT card (Rev. G) on Amazon for $82.  After about 10-15 minutes, I had the card working with my t610 thanks to your latest drivers.  What a joy!  Hopefully, you\'ll get the BT2000C working, but I personally had to either return the card right away or I\'d be stuck with it.  I decided to play it safe, thankfully!

I still had some errors in the process (hciattach /dev/ttyS3 bcsp 230400 always times out), and it took some work before errors did not appear when bluetooth was starting up.  FYI - I first tried getting the card to work with Bluez v18e, but eventually I tried Bluez 18d and got the card working soon after.

Thanks for the help with this-
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: n8a on February 09, 2004, 11:48:26 am
As a quick follow up, I wanted to show how I was able to get the socket bluetooth rev. G card working with the 5500 running tkcROM alpha3 (as it only worked easily with the bluez-zaurus_2[1].3-2.4.18d_arm.ipk package originally referenced in this thread):

# cd /mnt/card/Documents/ipkg/new_bluez
# ls
bluez-csr-serial_0[1].1_arm.ipk
bluez-zaurus_2[1].3-2.4.18d_arm.ipk
bluez-zaurus_2[1].3-2.4.18e_arm.ipk
sudo_0.1_arm.ipk
susp-resume-bluez_0[1].9.1_arm.ipk
susp-resume_0.9-3.1.ipk
# ipkg install susp-resume_0.9-3.1.ipk
Unpacking susp-resume...Done.
Configuring susp-resume...Done.
# ipkg install bluez-zaurus_2[1].3-2.4.18d_arm.ipk
Unpacking bluez-zaurus...Done.
Configuring bluez-zaurus...Starting Bluetooth... Can\'t get port settings: Input/output error
Can\'t initialize device: Input/output error
Done.
Done.
# ipkg install bluez-csr-serial_0[1].1_arm.ipk
Unpacking bluez-csr-serial...Done.
Configuring bluez-csr-serial...Done.
# hciconfig
# cardctl ident
Socket 0:
  product info: \"Socket\", \"CF+ Personal Network Card Rev 2.5\"
  manfid: 0x0104, 0x0096
  function: 2 (serial)
Socket 1:
  no product info available
# /etc/rc.d/init.d/pcmcia restart
# cardctl ident
Socket 0:
  no product info available
Socket 1:
  no product info available
# cardctl insert
# cardctl ident
Socket 0:
  product info: \"Socket\", \"CF+ Personal Network Card Rev 2.5\"
  manfid: 0x0104, 0x0096
  function: 2 (serial)
Socket 1:
  no product info available
# /etc/rc.d/init.d/bluetooth restart
Shutting down Bluetooth... Done.
Starting Bluetooth... Done.
# hciconfig
hci0:   Type: UART
        BD Address: 00:02:C7:1C:D0:2A ACL MTU: 340:4  SCO MTU: 64:10
        UP RUNNING PSCAN ISCAN
        RX bytes:264 acl:0 sco:0 events:13 errors:0
        TX bytes:448 acl:0 sco:0 commands:12 errors:0

# hciconfig hci0 up
# depmod -a
# hciattach /dev/ttyS3 bcsp 230400
BCSP initialization timed out
# sdptool browse
Inquiring ...
Browsing xx:xx:xx:xx:xx:xx ... <<replaced mac address>>
Service Name: Dial-up Networking
Service RecHandle: 0x10000
Service Class ID List:
  \"Dialup Networking\" (0x1103)
  \"Generic Networking\" (0x1201)
Protocol Descriptor List:
  \"L2CAP\" (0x0100)
  \"RFCOMM\" (0x0003)
    Channel: 1
Profile Descriptor List:
  \"Dialup Networking\" (0x1103)
    Version: 0x0100

<< the rest of output cut>>
#
# cd /etc/bluetooth
# ls
givepin      hcid.conf    pin          rfcomm.conf  uart
# vi rfcomm.conf

#
# RFCOMM configuration file.
#
# $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $
#

rfcomm0 {
        # Automatically bind the device at startup
        bind yes;

        # Bluetooth address of the device
        device xx:xx:xx:xx:xx:xx;   <<replaced mac address>>

        # RFCOMM channel for the connection
        channel 1;

        # Description of the connection
        comment \"t610 dial-up bluetooth connection\";
}


~
~
Wrote \"rfcomm.conf\"  21 lines, 354 characters
#
# /etc/rc.d/init.d/bluetooth restart
Shutting down Bluetooth... Done.
Starting Bluetooth... Done.
# hciattach /dev/ttyS3 bcsp 230400
BCSP initialization timed out
#

By doing that, my bt card is identified as a \"serial or modem\" and it works just fine for connecting to my t610 and providing a pretty quick connection to the web.  I was not able to get the socket bt card working with the bluez-zaurus_2[1].3-2.4.18e_arm.ipk, which identified my card correctly as the Socket Bluetooth Rev. G card, although I didn\'t try much after this worked.
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: Anonymous on February 25, 2004, 06:09:55 am
Tumnus, any progress on the BT2000C Ambicom card yet?
Title: Socket Bluetooth Rev G working with BlueZ out of the box
Post by: tumnus on February 25, 2004, 06:22:15 am
Not much sorry. Looks like a new driver is required. Still working on it.