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

June 05, 2009, 06:36:12 AM
Reply #15

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
/opt/etc/init.d/S75bluez-utils

June 05, 2009, 08:07:16 AM
Reply #16

powerleakin

  • Newbie

  • Offline
  • *

  • 35
going to give it another try. managed to download to /opt/

1.download rate was only 5kb/s. any reason?? i usually get up to 60kb/s..
2.tar xvZ seems to be unresponsive. is it meant to take a long time?
or should i just extract on my desktop?

EDIT: tar seemed to be taking forever,so i extracted on my pc.

EDIT:beautiful! i love you guys!  ;D  paste2 link

so i guess earlier problem was 1.i didn't load modules correctly, 2.bt donlge was on sleep.

while it seems to be working now, should i be concerned about 2 lines of this(hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb 9161ae14 err -89) during dmesg | tail -n 20?

thanks a lot guys..you all have been very very helpful.
« Last Edit: June 05, 2009, 08:53:39 AM by powerleakin »

June 05, 2009, 11:27:19 AM
Reply #17

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
1.download rate was only 5kb/s. any reason?? i usually get up to 60kb/s..

Random fluke or just a bad connection at that time. Usually the HSP of the page is fast.

while it seems to be working now, should i be concerned about 2 lines of this(hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb 9161ae14 err -89) during dmesg | tail -n 20?

when everything else works just ignore it =)

ciao,
elm

June 05, 2009, 03:06:36 PM
Reply #18

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
I updated the Wiimote article with instructions on how to use the demo program:

http://wdtv.elmarweber.org/index.php/2009/wiidtv-using-the-wiimote-with-the-wdtv

June 05, 2009, 09:52:23 PM
Reply #19

powerleakin

  • Newbie

  • Offline
  • *

  • 35
when i power cycle wdtv, i have to enter sh insert.sh again before it works.

isn't there a way to automatically load the modules during startup?

June 06, 2009, 08:16:15 AM
Reply #20

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
when i power cycle wdtv, i have to enter sh insert.sh again before it works.

isn't there a way to automatically load the modules during startup?

depending on which firmware you use.

ext3-boot:
Code: [Select]
cd PATH/WHERE/INSERT.SH/IS
echo #/bin/sh > /etc/init.d/S20bluetooth
echo cd `pwd` >> /etc/init.d/S20bluetooth
echo sh insert.sh >>  /etc/init.d/S20bluetooth
chmod 755 /etc/init.d/S20bluetooth

WDLXTV: switch to ext3-boot =)
or check the docs, there was something about a user defined start script, you can add the cd and sh insert.sh command to it.

ciao,
elm

June 07, 2009, 03:14:25 AM
Reply #21

powerleakin

  • Newbie

  • Offline
  • *

  • 35
ok,i'll switch to ext3boot then...

my phone doesn't see the dongle, but the dongle sees my phone. how do i get it to play mp3s?

June 07, 2009, 05:06:50 AM
Reply #22

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
ok,i'll switch to ext3boot then...

my phone doesn't see the dongle, but the dongle sees my phone. how do i get it to play mp3s?

You have to configure your dongle and the bluetooth services accordingly so that your phone can find the dongle.
Read up on Linux and bluetooth for that and take a look at /opt/etc/bluetooth/*.
To play the MP3's from your phone from the WDTV you'd need a setup with obex to transfer the files. THe packages are in optware. Depending on which phone and which phone OS you have you can setup your phone to offer your MP3s as kind of a network share (Windows Mobile does this out-of-the-box) and mount this on the device somewhere in /tmp/media/usb and then browse it with the WDTV GUI.


ciao,
elm

June 07, 2009, 07:42:46 AM
Reply #23

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
yep there is obexfs, fuse filesystem which uses obexftp to provide files from phone using obex proto. i tried obexftp with my w800i and it worked

Code: [Select]
# obexftp -b 00:0E:07:B3:07:A2 -c 'Memory Stick/DCIM/100MSDCF' -g DSC00303.JPG
Browsing 00:0E:07:B3:07:A2 ...
Connecting...done
Sending "Memory Stick"... Sending "DCIM"... Sending "100MSDCF"... done
Receiving "DSC00303.JPG"...|done
Disconnecting...done

obexfs is not in optware feed so probably someone would need to compile it for wdtv.

http://dev.zuckschwerdt.org/openobex/wiki/ObexFs
http://dfn.dl.sourceforge.net/sourceforge/openobex/obexfs-0.12.tar.gz
« Last Edit: June 07, 2009, 08:41:39 AM by rezmus »

June 07, 2009, 09:29:48 PM
Reply #24

rezmus

  • Sr. Member

  • Offline
  • ****

  • 418
tx to elmar who compiled obexfs yesterday i was able to make some tests. generally it works, i was able to listen to music and watch photos from my phone, but there are still some probs:

- bt stack itself (i think) - it hangs a lot, on my se w800i every command send via obexftp which fails (dir does not exist, etc.) makes bt stack hang, the commands that are correct does not have such probs on w800i. on my nokia 6300 even the good command makes bt stack hang (command is executed ok, but i can;t send another one). i will check it more later today, try to exchange dongles and use usb cable to check if really bt stack cause this.

- speed - on w800i i was able to get only arround 80-100kbit/s which is to slow for mp3 playback, n6300 was arround 300kbit/s which should be fine for most.

i think some changes in fuse are also required to adjust it to dmaosd reallity (now it tries to load whole mp3 before playback and all photos in dir even in list mode).

October 30, 2009, 04:20:48 PM
Reply #25

MK14HAK

  • Newbie

  • Offline
  • *

  • 11
I am following Elmas BTooth module compile tutorial and have a problem at the stage copying the compiled modules to the WDTV.
From VMplayer the command:
 # scp -r ~/bluetooth root@wdtv1.home:/tmp/
fails with " not found".
I am using WDLXTV with Dropbear.
Am I missing scp command in Dropbear or Busybox or where?
WDLXTV 0.5.8.1;NFS;dropbear;pure-ftpd;webserver.addons;btutils

October 30, 2009, 06:01:47 PM
Reply #26

elmarweber

  • Hero Member

  • Offline
  • *****

  • 500
    • WDTV Tools
I am following Elmas BTooth module compile tutorial and have a problem at the stage copying the compiled modules to the WDTV.
From VMplayer the command:
 # scp -r ~/bluetooth root@wdtv1.home:/tmp/
fails with " not found".
I am using WDLXTV with Dropbear.
Am I missing scp command in Dropbear or Busybox or where?

Maybe, did you check if you have scp in your path on the WDTV? I had the same problem and just linked the scp command from optware to /bin because apparently that is the default path where the remote scp just looks. scp has the -S command line option, although I'm not sure whether it is for the local or remote site, you might try it.

ciao,
elm

November 01, 2009, 12:02:03 AM
Reply #27

MK14HAK

  • Newbie

  • Offline
  • *

  • 11
Thanks for the reply elm
/apps/nfs/bin:/apps/dropbear-ssh/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
is my path. I dont no how to change it?
Is scp an opt package?
Should the path have apps/bluetooth-modules as well ?

After a re read of your tutorial I opted for FTP and installed WinSCP and using my NFS share was able to transfer all the files to WDTV.
Modules load ok if I run S10bluetooth-modules manually. ( two of my modules are a different size to yours ? )
Will box on and get them to load at pwr on and see whats involved with the BT stack next.
WDLXTV 0.5.8.1;NFS;dropbear;pure-ftpd;webserver.addons;btutils

June 13, 2011, 02:25:30 PM
Reply #28

Ron[NL]

  • Sr. Member

  • Offline
  • ****

  • 425
    • WDTV Movie Sheet Generator
Followed the tutorial over at : http://sourceforge.net/apps/trac/wdtvtools/wiki/Tutorials/CompileKernelModulesForTheWDTV
and after some struggling, I got modules compiled and app.bin created  ;D My very first app.bin and my very first .ko's . Hurray.

At first it didn't work; lsmod didn't show any bluetooth modules to be loaded.
When I started the S10bluetooth-modules manually, they got loaded ok, so the executable bit was not set.  :P

Giving a :
Code: [Select]
sudo chmod a+x S10bluetooth-modulesbefore creating app.bin did the trick.
WDLXTV 0.5.8.1 + Showcase v2 OSD Mod

Philips 40PFL8605H, Sitecom WL-351

Trust HU-5440 USB Hub
WDTV MSG 1.7.0,  TheTvDBv3.0 TVSheetGenerator - rev 5.4.1

February 22, 2013, 10:03:39 PM
Reply #29

shadowncs

  • Newbie

  • Offline
  • *

  • 4
...You can install them with the following commands:

Code: [Select]
wget http://wdtv.elmarweber.org/temp/bt.tar.gz
...

A warning for anyone that needs BT serial - the rfcomm.ko in this package is not compiled with TTL serial support.
I've been able to compile a rfcomm.ko with serial enabled following instructions at http://sourceforge.net/apps/trac/wdtvtools/wiki/Tutorials/CompileKernelModulesForTheWDTV - pay attention to the kernel config selection. In the end for kernel 2.6.15 I have a rfcomm.ko of 73,787 bytes as opposed to original of 5x,xxx bytes.

Attaching the new rfcomm.ko.zip

elm, when u have a moment please update your package.

BTW thanks for this thread!
shadowncs