AsusForum.NET -- WL500g

Go Back   AsusForum.NET -- WL500g > Asus WL-500g > WL-500g Custom Development
User Name
Password
Register FAQ Members List Search Recent posts Mark Forums Read
Firmware Wizard Donate

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-12-2004, 19:18
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Bluez drivers compilation: done and PAN working!

Hi,

I've been trying to get my bluetooth CSR dongle to work on the Asus Wl-HDD (I know this is not the right forum, but this is of interest for any user of this firmware) and I'm using uclibc to make it work on Oleg's latest firmware (1.8.1.7-3)

I have already compiled libusb, and the necessary package for bluez (lib and tools). Programs are working, but I need to get hci_usb.o module to compile.

I've been enabling Bluez=m and USB_bluetooth=m in .config for the kernel. The only file I get in return is bluetooth.o which is not working for CSR. I don't find any option to get the ..../linux/drivers/bluetooth/hci_usb.c to compile. Of course, I might try to use a hand made build command, but I never compiled kernel modules without a full makefile.

This is the last stone to get this stack working. Applying the kernel patch for 2.4.20 kernel from bluez website give some errors, including in the hci_usb.c file, so I decided not to use them.

Could anybody give me the last push to make this working? I think the PAN profile could be working with this stack. I just need the hci_usb.o file and the necessary instruction to get it.

Thanks


EDIT: Done it. I'll post the Wiki page later on. Here is the tarball for bluez. a sample bluez script is at root, but it's not fully working. Just need to change a few thinks. Any PAN how to will show you how to end this script. I(ve been testing succesfully with my Ipaq, and i'll post more on this later.
Attached Files
File Type: rar bluez.part1.rar (976.6 KB, 341 views)
File Type: rar bluez.part2.rar (486.9 KB, 314 views)

Last edited by hugo; 10-12-2004 at 19:25..
Reply With Quote
  #1  
Old 08-12-2004, 19:18
AsusForum hugo is offline
Member
 
Join Date: Nov 2003
Location: Netherlands
Posts: 344
  #2  
Old 08-12-2004, 20:33
Dex Dex is offline
Junior Member
 
Join Date: Jun 2004
Posts: 12
Hi Hugo,

I have already compiled the tools and modules for bluez. Take a look at
this thread.

http://wl500g.info/showthread.php?t=749

Dex
Reply With Quote
  #3  
Old 08-12-2004, 22:02
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Thanks dex for your binary. It was the missing link. May I ask you how you managed to compile the kernel modules? I think I'll create a wiki page for the tutorial because this is an interesting project.

I'll post my binary also, because I've been compiling all the other tools from bluez, so it can be of interest for some.

My purpose was at the begining to get hid2hci working for my dongle, to use affix stack. But it ended up to be compiled wholly.
Reply With Quote
  #4  
Old 08-12-2004, 23:10
Dex Dex is offline
Junior Member
 
Join Date: Jun 2004
Posts: 12
Hello hugo,

to compile the bluez module hci_usb.o you have to use the kernel option:

Bluetooth Support -> Bluetooth device drivers -> <M> HCI USB driver (-> hci_usb.o)

The option USB Support -> USB Bluetooth Support must be disabled. The module bluetooth.o
can't be used with the bluez protocol stack.

I got an error message after applying the latest bluez kernel patch too. Therefore I build
the modules from the original WL-HDD GPL v1.1.2.6 and until now my applications using
the bluez protocol stack are running fine. The only problem I recognize is that the WL-HDD
does not recognize the USB Bluetooth dongle (Acer BT 600) at all. I don't know what the
problem is, but I realized that this situation only happens after 10 minutes the WL-HDD is
running and when the device is warm. I assume it's an hardware problem.

Dex

Last edited by Dex; 08-12-2004 at 23:16..
Reply With Quote
  #5  
Old 09-12-2004, 08:17
Styno Styno is offline
Moderator & Financial forum supporter :)
 
Join Date: Apr 2004
Location: Netherlands
Posts: 1,307
Quote:
Originally Posted by hugo
I think I'll create a wiki page for the tutorial because this is an interesting project.
That would be a terrific contribution, thanks in advance.
Reply With Quote
  #6  
Old 10-12-2004, 19:25
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Bluez drivers compilation: done and PAN working!

First post edited. Is it possible to change the title in today posts?

Last edited by hugo; 10-12-2004 at 19:27..
Reply With Quote
  #7  
Old 10-12-2004, 19:34
Oleg Oleg is offline
Administrator
 
Join Date: Dec 2003
Location: Russian Federation
Posts: 7,835
Hugo, tarball means something produced with tar, not with rar. Your attachments looks like a rarball.
Reply With Quote
  #8  
Old 10-12-2004, 20:14
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Hum, it was a tarball until I realised the upload limit was set to 1 Meg
Reply With Quote
  #9  
Old 11-12-2004, 13:03
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Sorry, my release contains in the bin folder curl and l2send from dex binary. They can be removed if you just need bluez, as they are not a reult from my compilation.
Reply With Quote
  #10  
Old 03-02-2005, 19:56
xlephant xlephant is offline
Member
 
Join Date: Apr 2004
Location: frankfurt
Posts: 83
Thumbs up

@hugo
thx for your answer in the other thread. i think its better to go ahead in this one...

did you already working on a readme for the wiki?
or can you give me just a small tutorial how i have to install the BlueZ stack on my wl500g(fw:1.9.2.7-3b) ?! that will be very nice. thx a lot...
__________________
Athlon XP 2200+ runnig on ECS K7S5A
512 MB DDR
160 GB Samsung
Ati Radeon 9500
System running under Yoper.v2
Router: WL500g
Reply With Quote
  #11  
Old 03-02-2005, 20:41
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Sorry xelephant, I don't have much time tonight

Here is the script I use to set up pan:

Code:
insmod /tmp/hd/conf/lib/bluez.o
insmod /tmp/hd/bluetooth/result/lib/modules/hci_usb.o
insmod /tmp/hd/conf/lib/l2cap.o
insmod /tmp/hd/bluetooth/result/lib/modules/bnep.o
export LD_LIBRARY_PATH='/tmp/hd/conf/usr/lib'
/tmp/hd/bluetooth/result/sbin/sdpd
/tmp/hd/bluetooth/result/sbin/hcid
/tmp/hd/bluetooth/result/bin/sdptool add NAP
/tmp/hd/bluetooth/result/bin/sdptool add DUN
/tmp/hd/bluetooth/result/bin/pand --listen --role NAP
/tmp/hd/bluetooth/result/sbin/hciconfig hci0 up
Please set export line to your lib path (the one for bluetooth in my tarball) and all other line to your path to this files.

You can then take your PPC and go to network settings to set up an ip adress for your PPC. Use 10.0.0.2 and netmask 255.0.0.0 and 10.0.0.1 as gateway and dns server.create a bluetooth network. Once connected, use ifconfig pan0 10.0.0.1 and test pinging 10.0.0.2

Please check using ifconfig the name pan0 as I'm not sure and not enough time to check.

You can make this automatic, using some files, and I'll post more about this later on.
Reply With Quote
  #12  
Old 03-02-2005, 20:44
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
For automatic step ifconfig and all, create a file
/tmp/etc/bluetooth/pan/dev-up

with the following code:
Code:
#!/bin/sh
ifconfig $1 10.0.0.1

Don't forget to set up bluetooth IP adress on pocket pc using settings -network-bluetooth pan driver
Reply With Quote
  #13  
Old 14-03-2005, 14:04
xlephant xlephant is offline
Member
 
Join Date: Apr 2004
Location: frankfurt
Posts: 83
hi hugo,

thx for the answer and help. sorry that i reply so late, but time is rare .

i tried so you describe above but i think it is not working. see yourself:

Quote:
[root@myrouter bluetooth]$ ./bluez
No devices in HCI mode found
Using /tmp/harddisk/bluetooth/result/lib/modules/bluez.o
Using /tmp/harddisk/bluetooth/result/lib/modules/hci_usb.o
Using /tmp/harddisk/bluetooth/result/lib/modules/l2cap.o
Using /tmp/harddisk/bluetooth/result/lib/modules/bnep.o
NAP service registered
interface bnep0 does not exist!
i 'm not a linux genius, but i think i have to setup the interface bnpe0 right(how?)? furthermore i think bluez didn't find my bt stick, because of "no devices in hci...". but i think my device (MSI pc2pc MS-6967) must be supportet. it was running well with suse linux 9.1 and bluez stack.

if i try to send a file to the router, my ppc found it but i can't send any files.
do i have to send up the profiles (e.g. pan, pim etc ?)

thx for your help...
__________________
Athlon XP 2200+ runnig on ECS K7S5A
512 MB DDR
160 GB Samsung
Ati Radeon 9500
System running under Yoper.v2
Router: WL500g
Reply With Quote
  #14  
Old 14-03-2005, 14:49
xlephant xlephant is offline
Member
 
Join Date: Apr 2004
Location: frankfurt
Posts: 83
the router interface tells me the following:
Quote:
Mar 14 15:52:56 kernel: BlueZ Core ver 2.2 Copyright (C) 2000,2001 Qualcomm Inc
Mar 14 15:52:56 kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Mar 14 15:52:56 kernel: BlueZ HCI USB driver ver 2.1 Copyright (C) 2000,2001 Qualcomm Inc
Mar 14 15:52:56 kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Mar 14 15:52:56 kernel: usb.c: registered new driver hci_usb
Mar 14 15:52:56 kernel: BlueZ L2CAP ver 2.1 Copyright (C) 2000,2001 Qualcomm Inc
Mar 14 15:52:56 kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Mar 14 15:52:56 kernel: BNEP: BNEP2 ver 1.0
Mar 14 15:52:56 kernel: BNEP: Copyright (C) 2002 Inventel
Mar 14 15:52:56 kernel: BNEP: Written 2001,2002 by
Mar 14 15:52:56 kernel: BNEP: ^IClement Moreau <clement.moreau@inventel.fr> David Libault <david.libault@inventel.fr>
Mar 14 15:52:56 kernel: BNEP: Copyright (C) 2002 Maxim Krasnyanskiy <maxk@qualcomm.com>
Mar 14 15:52:57 sdpd[165]: Bluetooth SDP daemon
Mar 14 15:52:57 hcid[167]: Bluetooth HCI daemon
Mar 14 15:52:57 hcid[167]: Can not open /etc/bluetooth/hcid.conf
Mar 14 15:52:57 hcid[167]: Config load failed
Mar 14 15:52:57 hcid[167]: Can't open PIN file /etc/bluetooth/pin. No such file or directory(2)
Mar 14 15:52:57 pand[170]: Bluetooth PAN daemon
Mar 14 15:52:57 hcid[167]: HCI dev 0 up
do i have to copy the etc files to the root/etc/bluetooth folder?
__________________
Athlon XP 2200+ runnig on ECS K7S5A
512 MB DDR
160 GB Samsung
Ati Radeon 9500
System running under Yoper.v2
Router: WL500g
Reply With Quote
  #14  
Old 14-03-2005, 14:49
AsusForum xlephant is offline
Member
 
Join Date: Nov 2003
Location: Netherlands
Posts: 83
  #15  
Old 14-03-2005, 15:54
hugo hugo is offline
Senior Member
 
Join Date: Oct 2004
Posts: 344
Don't worry for the HCI not found, this is a special trick to make my Dlink work, as it boot up in HID mode.

You can even remove this line.

Your problem is in the syslog: the hcid.conf config file must exist in /etc/bluetooth

It should then run fine. The bnep0 interface is created when you connect using your BT device. It won't exist before that. But the error you get is because the hcid is not running.

After the initial connection, the ppp script is readen to set up the ip.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation HOWTO for modules useful? Styno WL-500g Q&A 10 01-09-2008 16:08
help with bluez kvborg WL-500g Q&A 0 28-08-2005 16:35
ntop compilation David07 WL-500g Custom Development 0 05-07-2005 22:53
web cam drivers ela002 WL-500g Q&A 4 07-04-2005 18:21
libstdc++.so.5 and c++ compilation on unified firmware hugo WL-500g Custom Development 1 22-12-2004 08:32


All times are GMT +1. The time now is 22:21.


Copyright ©2003 - 2008, van Boekel Networks