Author Topic: Support for BlueTooth Dongle  (Read 15806 times)

May 28, 2009, 07:07:26 AM
Read 15806 times

powerleakin

  • Newbie

  • Offline
  • *

  • 35
Has anyone been working on this?

I'm not a programmer but perhaps it's possible to load up the drivers(or the pid) into WDTV,so that we can play MP3 from our phones...I think that would be really really neat!
Especially when the price of the dongle is so cheap nowadays.

Anyone working on this? Zorander? rezmus? b-rad? anyone? redindian?

please say yes!

May 28, 2009, 08:59:25 PM
Reply #1

eagles

  • Newbie

  • Offline
  • *

  • 36
Try plugging in the dongle and seeing what happens.  You do not have to be a programmer to use a computer operating system :-)
Assuming you have network access, you can see if the hardware was identified and check if the drivers loaded.
« Last Edit: May 28, 2009, 09:06:50 PM by eagles »

May 29, 2009, 03:34:32 PM
Reply #2

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
Has anyone been working on this?

I'm not a programmer but perhaps it's possible to load up the drivers(or the pid) into WDTV,so that we can play MP3 from our phones...I think that would be really really neat!
Especially when the price of the dongle is so cheap nowadays.

Anyone working on this? Zorander? rezmus? b-rad? anyone? redindian?

Working would be overstating it, but at least having a strong interest because I'd really do some experiments with the Wii Remote to control the WDTV.  Just imagine navigation by flipping and rotating your hand =)

I did not try it yet because I could not find my Bluetooth Dongle and haven't gone around to ordering a new one.

If anyone wants to try this, I can compile and supply the necessary kernel modules. The bluez utils are available via optware.

ciao,
elm

May 29, 2009, 09:06:43 PM
Reply #3

powerleakin

  • Newbie

  • Offline
  • *

  • 35
ok,in that case,i'll order a dongle..but.i'm quite a noob, so i hope you guys can help me.

will post back once i get my dongle.

May 29, 2009, 10:24:54 PM
Reply #4

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
elmar: i have a few dongles here, some of them works with regular windows drivers, i don;t know much about bt on linux but should also work with generic linux driver, so i can make some tests. do u need vids/pids?
« Last Edit: May 29, 2009, 11:21:10 PM by rezmus »

June 04, 2009, 05:06:40 AM
Reply #5

powerleakin

  • Newbie

  • Offline
  • *

  • 35
ok guys. i've got my bluetooth dongle.

TEST 1: "plug it in and see what it says"
RESULT: here's the messages.txt

please give me some feedback.
thanks


June 04, 2009, 07:16:50 AM
Reply #6

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
Hi,

I can't find anything in the log file related to the USB device, probably because the driver modules are not there. I compiled every module and device driver in the kernel that is available and put them in an archive. You can install them with the following commands:

Code: [Select]
wget http://wdtv.elmarweber.org/temp/bt.tar.gz
tar xvZ bt.tar
sh insert.sh
If you get no error message the modules are inserted.

After the modules are inserted you can connect the bluetooth dongle and a dmesg | tail -n 20 should give you some messages.
After installing the bluez stack:

Code: [Select]
ipkg install bluez2-utils
a call of

Code: [Select]
hcitool scan
should give you a list of bluetooth devices in your vicinity.

ciao,
elm

« Last Edit: June 04, 2009, 07:32:50 AM by elmarweber »

June 04, 2009, 08:41:37 AM
Reply #7

powerleakin

  • Newbie

  • Offline
  • *

  • 35
thanks a lot elmer for the fast reply.

unfortunately i'm staying over at a friends house(its night now at here) and wil get back to you by tomorr afternoon.

thanks again. :)

June 04, 2009, 09:00:41 AM
Reply #8

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
i;ve tested it with my 4 bluetooth dongles and none of them seem recognized. i've checked vids/pids and it seems all should be supported by hci_usb module.

edit:

Code: [Select]
# hcitool scan
Scanning ...
        00:0E:07:B3:07:A2       W800i
# hcitool info 00:0E:07:B3:07:A2
Requesting information ...
        BD Address:  00:0E:07:B3:07:A2
        Device Name: W800i
        LMP Version: 1.2 (0x2) LMP Subversion: 0x31a
        Manufacturer: Philips Semiconductors (37)
        Features: 0xff 0xed 0x8d 0xf8 0x1a 0x08 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <park state> <channel quality> <SCO link> <HV3 packets>
                <u-law log> <A-law log> <CVSD> <power control>
                <transparent SCO> <broadcast encrypt> <enhanced iscan>
                <interlaced iscan> <interlaced pscan> <inquiry with RSSI>
                <extended SCO> <EV5 packets> <AFH cap. slave>
                <AFH class. slave> <AFH cap. master>

tx to elmar ;)
« Last Edit: June 04, 2009, 10:33:19 AM by rezmus »

June 04, 2009, 03:48:48 PM
Reply #9

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
With the help of rezmus its now working. I just found my usb dongle too and hacked together a quick application that can be used to control the WDTV from the Wiimote, here is a video of it:

http://www.youtube.com/watch?v=UL2Lk3anG9Q

But its not really a "cool" feeling because the WDTV UI is very slow when you scroll faster. Anyway, works =)
I'm not sure if the performance is related to the UI, I'll try it again with a faster one where all stuff is cached in RAM.

ciao,
elm

June 04, 2009, 04:54:12 PM
Reply #10

powerleakin

  • Newbie

  • Offline
  • *

  • 35
oops, "wget: can't open 'bt.tar.gz': Read-only file system"

:(
« Last Edit: June 05, 2009, 05:40:27 AM by powerleakin »

June 05, 2009, 12:38:27 AM
Reply #11

redindian

  • Hero Member

  • Offline
  • *****

  • 643
    • True Font Family - Any font, any website, any browser
Nice demo elmarweber! Now I don't have to lean over to get another remote if I'm still holding my Wiimote, haha. :D

June 05, 2009, 05:40:39 AM
Reply #12

powerleakin

  • Newbie

  • Offline
  • *

  • 35
it seems i can't get wget to dl any files..all giving the same read-only msg as above.
so, i manually downloaded it, put it into tmp/media folder.
then,cd to there and ran insert.sh. no error msgs now.

plugged in the bt dongle and and installed bluez2-utils. here's the dmesg | tail -n 20 and messages.txt

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

maybe i haven't properly put in the drivers/modules?

June 05, 2009, 06:20:22 AM
Reply #13

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
what does "hciconfig -a" shows? my bt device is down by default, u have to wake it up (hciconfig hci0 up).

June 05, 2009, 06:33:15 AM
Reply #14

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
it seems i can't get wget to dl any files..all giving the same read-only msg as above.

Do you use WDLXTV? Because it mounts the root filesystem as readonly. You can download it somewhere to /opt/


After you've tried rezmus' tips, here maybe another way:

Does it work if you start the bluetooth service? /opt/etc/init.d/S75bluetooth start (or was it S75hcid, something like it)

ciao,
elm