Author Topic: Bluetooth, Irda, And Usb Host Questions  (Read 4195 times)

kakos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Bluetooth, Irda, And Usb Host Questions
« on: June 20, 2005, 01:53:32 am »
I just flashed OpenZaurus 3.5.3 on my Zaurus C860.  I currently have three major issues which hopefully you can help me resolve (or at least tell me that it can't be done at this time).

1) I have an Anycom CF-300 Bluetooth Compact Flash Card (LSE139 Bluetooth Card) and I cannot get it to work.  I'm not sure which kernel modules I need to get this to work or what I"m supposed to do to get it to work.  Any help here would be greatly apprecaited.

2) I also have a Ratoc CFU1 USB Host card.  Does this work under OpenZaurus?  If so, how do I get it to work?  I have unable to do so.

3) I'm trying to connect to my cell phone through IRDA.  I set up a PPP connection with the right phone number and created a device using /dev/ircomm0.  However, when I try to start the PPP connection, it just displays the error "Unable to open modem."  Any idea what is happening here and how I can fix it?

Thank you very much to anyone who can help me with any (or all) of these questions.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Bluetooth, Irda, And Usb Host Questions
« Reply #1 on: June 20, 2005, 05:29:31 am »
Quote
1) I have an Anycom CF-300 Bluetooth Compact Flash Card (LSE139 Bluetooth Card) and I cannot get it to work. I'm not sure which kernel modules I need to get this to work or what I"m supposed to do to get it to work. Any help here would be greatly apprecaited.

Post the output of 'cardctl status' and 'cardctl info' and lsmod.

Quote
2) I also have a Ratoc CFU1 USB Host card. Does this work under OpenZaurus? If so, how do I get it to work? I have unable to do so.

Yes it does.

You need b0ti's drivers cfu1-driver and hc811 (iirc) module.

Quote
3) I'm trying to connect to my cell phone through IRDA. I set up a PPP connection with the right phone number and created a device using /dev/ircomm0. However, when I try to start the PPP connection, it just displays the error "Unable to open modem." Any idea what is happening here and how I can fix it?

Post some debugging output - you'll need to edit the chatscript.



Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

kakos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Bluetooth, Irda, And Usb Host Questions
« Reply #2 on: June 20, 2005, 02:20:43 pm »
Quote
Quote
1) I have an Anycom CF-300 Bluetooth Compact Flash Card (LSE139 Bluetooth Card) and I cannot get it to work. I'm not sure which kernel modules I need to get this to work or what I"m supposed to do to get it to work. Any help here would be greatly apprecaited.

Post the output of 'cardctl status' and 'cardctl info' and lsmod.

As per your request:

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

`cardctl info`:
PRODID_1="AmbiCom"
PRODID_2="WL1100C 802.11b CF-Card"
PRODID_3="2.2"
PRODID_4=""
MANFID=d601,0002
FUNCID=6

`lsmod`:
Module                  Size  Used by    Not tainted
bluecard_cs 9988 0 - Live 0xbf04e000
rfcomm 37020 0 - Live 0xbf043000
l2cap 23652 3 rfcomm, Live 0xbf03c000
bluetooth 48260 3 bluecard_cs,rfcomm,l2cap, Live 0xbf02f000
hostap_crypt_wep 5536 0 - Live 0xbf02c000
hostap_cs 56728 3 - Live 0xbf01d000
hostap 114408 2 hostap_crypt_wep,hostap_cs, Live 0xbf000000


Quote
Quote
2) I also have a Ratoc CFU1 USB Host card. Does this work under OpenZaurus? If so, how do I get it to work? I have unable to do so.

Yes it does.

You need b0ti's drivers cfu1-driver and hc811 (iirc) module.

Thank you very much for the pointer.  Do you by chance have a URL handy?  Thanks.

Quote
Quote
3) I'm trying to connect to my cell phone through IRDA. I set up a PPP connection with the right phone number and created a device using /dev/ircomm0. However, when I try to start the PPP connection, it just displays the error "Unable to open modem." Any idea what is happening here and how I can fix it?

Post some debugging output - you'll need to edit the chatscript.

Where would I find debugging output?  The only thing I can see is the "Unable to open modem" error message.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Bluetooth, Irda, And Usb Host Questions
« Reply #3 on: June 21, 2005, 07:10:43 am »
Quote
`cardctl info`:
PRODID_1="AmbiCom"
PRODID_2="WL1100C 802.11b CF-Card"
PRODID_3="2.2"
PRODID_4=""
MANFID=d601,0002
FUNCID=6

`lsmod`:
Module Size Used by Not tainted
bluecard_cs 9988 0 - Live 0xbf04e000
rfcomm 37020 0 - Live 0xbf043000
l2cap 23652 3 rfcomm, Live 0xbf03c000
bluetooth 48260 3 bluecard_cs,rfcomm,l2cap, Live 0xbf02f000
hostap_crypt_wep 5536 0 - Live 0xbf02c000
hostap_cs 56728 3 - Live 0xbf01d000
hostap 114408 2 hostap_crypt_wep,hostap_cs, Live 0xbf000000

Curious, it's identified as the wrong type of card. That said, the bluetooth drivers appear to be loaded (are they the right ones?). As I don't own either card I can't say which is right - can anyone with a WL1100C 802.11b CF-Card comment on the MANFID data?

Quote
Thank you very much for the pointer. Do you by chance have a URL handy? Thanks.

They are relatively new (developed after 3.5.3 was released) you'll therefore have to build them yourself using OE, or ask hrw in the upgrades thread to add them to the feed.

Quote
Where would I find debugging output? The only thing I can see is the "Unable to open modem" error message.

Edit the chatscript - /etc/ppp/peers/ and add -V (iirc) to increase the verbosity. Might also be worth altering this script to output the data to a specific file. I'm sorry it's been a long time since I've had to do this (in fact this was the first thing I ever had to do with my Zaurus all those years ago  )


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

kakos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Bluetooth, Irda, And Usb Host Questions
« Reply #4 on: June 21, 2005, 10:53:52 am »
Quote
Quote
`cardctl info`:
IGNORE THIS

`lsmod`:
Module Size Used by Not tainted
bluecard_cs 9988 0 - Live 0xbf04e000
rfcomm 37020 0 - Live 0xbf043000
l2cap 23652 3 rfcomm, Live 0xbf03c000
bluetooth 48260 3 bluecard_cs,rfcomm,l2cap, Live 0xbf02f000
hostap_crypt_wep 5536 0 - Live 0xbf02c000
hostap_cs 56728 3 - Live 0xbf01d000
hostap 114408 2 hostap_crypt_wep,hostap_cs, Live 0xbf000000

Curious, it's identified as the wrong type of card. That said, the bluetooth drivers appear to be loaded (are they the right ones?). As I don't own either card I can't say which is right - can anyone with a WL1100C 802.11b CF-Card comment on the MANFID data?

Ugh.  I just realised I posted the wrong `cardctl info`.  I accidently posted the info for my wifi card, which works perfect.  

Here is the real stuff.  Sorry about this.  I'm not sure how I managed to post the wrong info  

REAL `cardctl info`:
PRODID_1="BTCFCARD"
PRODID_2="LSE139"
PRODID_3=""
PRODID_4=""
MANFID=0264,000b
FUNCID=6

EDIT: When I first installed the Cacko ROM 1.21 on my C860, I had similar problems.  Same symptoms, same behaviour, etc.  Apparently, there was a problem with the old 2.4.x kernel handling the new Bluetooth chip's fast UART rate.  Supposedly, this was fixed in the 2.6 kernel, which OZ 3.5.3 is based on, so it shouldn't be a problem.
« Last Edit: June 21, 2005, 09:09:26 pm by kakos »

kakos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Bluetooth, Irda, And Usb Host Questions
« Reply #5 on: June 21, 2005, 08:56:24 pm »
Quote
Quote
Thank you very much for the pointer. Do you by chance have a URL handy? Thanks.

They are relatively new (developed after 3.5.3 was released) you'll therefore have to build them yourself using OE, or ask hrw in the upgrades thread to add them to the feed.

There wouldn't happen to be a site or text file detailing how to do this, as I have no clue.  If not, I guess I'll just have to wait for hrw to add it to the feed.


Quote
Quote
Where would I find debugging output? The only thing I can see is the "Unable to open modem" error message.

Edit the chatscript - /etc/ppp/peers/ and add -V (iirc) to increase the verbosity. Might also be worth altering this script to output the data to a specific file. I'm sorry it's been a long time since I've had to do this (in fact this was the first thing I ever had to do with my Zaurus all those years ago  )[

So, I looked in /etc/ppp/peers and there are no scripts in there, only two configuration files (called host and opie-kppp).  Both just have what appears to be a list of configuration options.

kakos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Bluetooth, Irda, And Usb Host Questions
« Reply #6 on: June 22, 2005, 12:38:15 am »
So, interesting discovery I made tonight.  If I plug the Bluetooth card in and let the OS boot with the card in, it works.  Otherwise, it doesn't.  Any idea what might cause this?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Bluetooth, Irda, And Usb Host Questions
« Reply #7 on: June 22, 2005, 05:07:37 am »
Quote
There wouldn't happen to be a site or text file detailing how to do this, as I have no clue. If not, I guess I'll just have to wait for hrw to add it to the feed.

http://openembedded.org - download and get bitbake (the build system) and openembedded (the meta data) up and running, then it's as easy as running 'bitbake cfu1-driver'.

There's a getting started page on openembbeded.org, a mailing list and IRC channels (see openembedded.org for details), plus an Openembedded section ot this site.

Quote
So, I looked in /etc/ppp/peers and there are no scripts in there, only two configuration files (called host and opie-kppp). Both just have what appears to be a list of configuration options.

Ah, I was getting confused with the Sharp ROM (which was the one I had to do that messing about with). The files are probably somewhere under your home directory, I'm afraid I don't know where, sorry.

Quote
So, interesting discovery I made tonight. If I plug the Bluetooth card in and let the OS boot with the card in, it works. Otherwise, it doesn't. Any idea what might cause this?

Does it work if you reboot, then insert the card? Some BT CF card drivers have issues under 2.6 (basically they're not happy to suspend). You should be able to get around it in the short term by running "cardctl eject && cardctl insert" when you resume. I think hrw was looking into this more.


Si
« Last Edit: June 22, 2005, 05:10:42 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Bluetooth, Irda, And Usb Host Questions
« Reply #8 on: October 03, 2005, 07:09:10 am »
Quote
PRODID_1="BTCFCARD"
PRODID_2="LSE139"
PRODID_3=""
PRODID_4=""
MANFID=0264,000b
FUNCID=6
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85175\"][{POST_SNAPBACK}][/a][/div]

you need 'bluecard_cs' kernel module
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.