Author Topic: Bluetooth Help, Please!  (Read 3555 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Bluetooth Help, Please!
« on: January 03, 2009, 10:44:33 pm »
OK, so I've been through all of my old threads on this, and I'm trying to get a Wiimote working with Ubuntu (Using XWii, compiled by me, Angstrom kernel, so there should be all of the bluetooth stuff I need). I've got BlueZ and stuff installed, but I'm really lost here. Can anybody give me some easy-to-follow-and-tell-if-they're working steps to getting my bluetooth working?

I've got Wiimotes, the F8T020 card, and a BT mouse to play/test with.

Thanks.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Bluetooth Help, Please!
« Reply #1 on: January 10, 2009, 06:37:22 pm »
does "hciconfig -a" tell you anything?

you might need to use hciattach, something like this:

hciattach ttyS4  socket 230400

where you specify the protocol to be used with the card; you should then be able to /etc/init.d/bluetooth restart or something
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Bluetooth Help, Please!
« Reply #2 on: January 11, 2009, 12:02:38 am »
"hciconfig -a" gives me nothing.

When running the hciattach command, I get "BCSP initialization timed out"

Dmesg doesn't say anything about BT (some stuff about ttyS4, ttyS0, and serial stuff). I can post the whole thing if it's useful.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Bluetooth Help, Please!
« Reply #3 on: January 11, 2009, 05:13:02 pm »
you'll have to try a different protocol, e.g.

man hciattach tells me
Code: [Select]
              any    Unspecified HCI_UART interface, no vendor specific options

              ericsson
                     Ericsson based modules

              digi   Digianswer based cards

              xircom Xircom PCMCIA cards: Credit Card Adapter and Real Port Adapter

              csr    CSR Casira serial adapter or BrainBoxes serial dongle (BL642)

              bboxes BrainBoxes PCMCIA card (BL620)

              swave  Silicon Wave kits

              bcsp   Serial adapters using CSR chips with BCSP serial protocol
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Bluetooth Help, Please!
« Reply #4 on: January 11, 2009, 09:36:13 pm »
Code: [Select]
hciattach ttyS4 bcsp
worked for me. I'm having fun with a Wiimote now.

Thanks a bunch!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Bluetooth Help, Please!
« Reply #5 on: January 12, 2009, 08:54:07 am »
I've been thinking about buying a wiimote for a while, for both my zaurus and tablet.

how's the Z handling it, does it behave like a mouse as you'd expect?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Bluetooth Help, Please!
« Reply #6 on: January 12, 2009, 05:19:49 pm »
Well, not so far as I can tell, even with the "tilt mouse" setting. My BT mouse works, though. If I use the "IR mouse" setting (without any IR sources to aid it), it will constantly put the cursor in the upper left-hand corner.

I'm guessing it's an issue of telling the Z where the mouse is (I've got it set up as /dev/input/mice, but I suppose it could appear as /dev/input/inputN or something instead). Clicking works fine, as do the arrow keys and stuff.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Bluetooth Help, Please!
« Reply #7 on: January 12, 2009, 06:35:05 pm »
Quote from: Capn_Fish
Well, not so far as I can tell, even with the "tilt mouse" setting. My BT mouse works, though. If I use the "IR mouse" setting (without any IR sources to aid it), it will constantly put the cursor in the upper left-hand corner.

I'm guessing it's an issue of telling the Z where the mouse is (I've got it set up as /dev/input/mice, but I suppose it could appear as /dev/input/inputN or something instead). Clicking works fine, as do the arrow keys and stuff.

might want to search the internettablettalk forum for wiimote as someone had it running, and demonstrated with doom.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Bluetooth Help, Please!
« Reply #8 on: January 12, 2009, 08:15:45 pm »
I'll do that (eventually).

Has there ever been a fix for the "inverted" mouse issue (eg, L-R mouse movement causes U-D cursor movement)?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Bluetooth Help, Please!
« Reply #9 on: January 13, 2009, 06:19:52 pm »
Quote from: Capn_Fish
I'll do that (eventually).

Has there ever been a fix for the "inverted" mouse issue (eg, L-R mouse movement causes U-D cursor movement)?

turn mouse round?
 
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

HRH_H_Crab

  • Newbie
  • *
  • Posts: 37
    • View Profile
Bluetooth Help, Please!
« Reply #10 on: April 02, 2009, 03:05:07 am »
Did you have to "pair" your devices?
I want to be able to use my phone as a gprs modem, but I can't figure out how to pair my phone to the Z!
I used to hardcode a pin in /etc/bluetooth/hcid.conf but that file is missing under newer versions of bluez, which uses bluetoothd.conf - this doesn't seem to have any scope for hardcoding a pin.
To make my question a bit more zubuntu specific, can anyone suggest a gui tool for pairing?
« Last Edit: April 02, 2009, 03:06:45 am by HRH_H_Crab »

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Bluetooth Help, Please!
« Reply #11 on: April 02, 2009, 08:00:45 am »
I think what I ended up doing was "hcid --attach MAC_ADDRESS" or something similar. I wasn't using a PIN.

I can't really say more than that.

HTH
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo