View Full Version : Bluetooth on the WL500g? Yes!
We (Philips Semiconductors) are using the WL500g as test vehicle for our MIPS systems to verify code. During these exercises we ported the Affix Bluetooth stack to the WL500g. The actual code is too big to fit in the current firmware (above 4MB), so you need an external flash disk. Since also a USB Bluetooth dongle is needed, you need a compatible USB hub.
For more information go to:
Affix on WL500g (http://www.inside-gsm.com/Wireless/Accesspoints/Asus_WL500g/Bluetooth_on_WL500g/bluetooth_on_wl500g.html)
Please read the limitations:
Binaries are statically compiled, so larger than actually needed.
A specific libc.so.6 file is needed simply because the WL500g version is too limited
PAN interface seems not to be routed through the WL500g. As a BT PAN client it is possible to access the internal webpage of the WL500g. When a tcpdump is made the box claims that “source route failed”. I have no clue yet what is causing this problem.
The last problem is causing me headaches. I haven't found a solution yet.
Last remark, the code is based on affix version 2.1.2 .
Good work. Just checked this. The code could be easily be stripped to 2.5MB by removing debug info and development libraries/headers. Also, try replacing glibc with uclibc.
Good tips,
I will compile a new version with --nodebug enabled.
You should also use
strip --strip-unneeded for kernel modules &
strip --remove-section=.note --remove-section=.comment for libraries/apps
Originally posted by Oleg
You should also use
strip --strip-unneeded for kernel modules &
strip --remove-section=.note --remove-section=.comment for libraries/apps
Gee, I didn't know this would save so much space. Thanks Oleg!
Originally posted by Oleg
You should also use
strip --strip-unneeded for kernel modules &
strip --remove-section=.note --remove-section=.comment for libraries/apps
I am sorry Oleg, but stripping the kernel modules results in many "unresolved symbols"
Stripping the libs + apps is OK!
Wow, soon the wl500g is going to be so nice.
wlan, router, bluetooth, packet shaping :)
Hope you guys solve the PAN-issue.
justwords
30-03-2004, 11:18
AVM (Berlin) has managed to include a mrouter software in its bluefritz dsl bluetooth accesspoint so you can use standard symbian phones like nokia 3650 or Sony Ericsson P900 for browsing the web without using gprs or using a pc as a software router. this would be great to do with the wl-500g as well! mrouter is the software that makes a ppp/ tcp/ip connection with a pc or mac when syncing contacts etc. and can also be used to access internet for browsers and email etc.
xlephant
23-04-2004, 12:52
see also:
http://wl500g.info/showthread.php?s=&threadid=314
I noticed that the file you can download from my site causes "segmentation errors" with the latest version of Oleg's firmware. Therefore an update can be found on the page. Also, a very pleasant side-effect, libc has been replaced by ulibc in the package making it much smaller (still the wl500g build-in libc is not compatible with affix). In fact the /affix-release/lib directory only has to contain libc.so.6 since the binaries are compiled statically.
Attached you can find the new version.
PS can someone copy this to the wiki pages, I do not understand it how to use it, I am just a simple "ing" ;) .
It is possible to run Bluetooth on the WL500g! This can be done via
the USB interface in combination with a USB dongle running the Affix stack.
The following dongles have been tested:
* MSI
* 3COM
* TDK
For enabling Bluetooth on the WL500g the following is needed:
* a WL500g ;-)
* Precompiled binary, see attachement
* A USB flash disk
* A USB BT dongle
* A USB Hub (to be able to connect the USB BT & flashdisk simultaneously
to the WL500g)
Extract the affix-release.zip file and be sure to preserve the paths, it will
look as follows:
/affix-release
├───bin
│ └───kernel
│ ├───drivers
│ │ └───affix
│ └───net
│ └───affix
├───etc
│ ├───affix
│ ├───devfs
│ │ └───conf.d
│ ├───modutils
│ └───pcmcia
├───include
│ └───openobex
├───lib
├───share
│ └───aclocal
└───usr
└───include
└───affix
On the USB disk make a directory for incoming and outgoing Obex file transfer
files:
mkdir /incoming
Be shure to insert a USB BT dongle in the box and start bluetooth services via
telnet (see chupa forum how to enable telnet), by issuing the following
command:
/mnt/usbfs/affix-release/bin/start_bt
Everything should start up now. Test the affix stack by entering the following
command in a Telnet session:
btctl discovery
Known limitations:
* Binaries are statically compiled, so larger than actually needed.
* A specific libc.so.6 file is needed simply because the WL500g version is
too limited
* PAN interface seems not to be routed through the WL500g. As a BT PAN
client it is possible to access the internal webpage of the WL500g. When
a tcpdump is made the box claimes that “source route failed”. I have no
clue yet what is causing this problem
PS can someone copy this to the wiki pages, I do not understand it how to use it, I am just a simple "ing" ;) .
Hehe, I've submitted all pages in the Packages (until now) and I'm also a simple "ing". So that should not be a problem.
But I will make a page for you this evening :)
I have a few questions:
What protocols are supported? Printing, filetransfer, voice, etc..
Can you describe what can be possible with this additional package? Use a mobile phone or PDA for ....? I mean: what is the added value of this package for WL-500g owners?
I am confused...
I noticed that the file you can download from my site causes "segmentation errors" with the latest version of Oleg's firmware. Therefore an update can be found on the page. Also, a very pleasant side-effect, libc has been replaced by ulibc in the package making it much smaller (still the wl500g build-in libc is not compatible with affix). In fact the /affix-release/lib directory only has to contain libc.so.6 since the binaries are compiled statically.
Try recompiling with dynamically linked uclibc. My latest firmwares contains it's fully, i.e. it's not optimized.
Speaking of Bluetooth -
Why use Affix (http://affix.sourceforge.net/) and not the "official" BlueZ (http://www.bluez.org/) stack?
And, yes, I'd welcome Bluetooth on the router ;-)
Hehe, I've submitted all pages in the Packages (until now) and I'm also a simple "ing". So that should not be a problem.
But I will make a page for you this evening :)
I have a few questions:
What protocols are supported? Printing, filetransfer, voice, etc..
Can you describe what can be possible with this additional package? Use a mobile phone or PDA for ....? I mean: what is the added value of this package for WL-500g owners?
I am confused...
In fact all profiles supported by affix are included, however the wl500g has no audio so a headset profile is not very usefull. ;)
With the obex file transefer profile you can transfer files from and to your mobile (such as pictures) to an attached USB storage device. I also included a script which sends a message to a bluetooth phone (once a day). The script is called bluejack, and is just included to show the possibilities. You should provide a message in the "incoming" directory (see btsrv.conf file in ./etc)
Also the Pan profile is included, you will get a pan0 ethernet interface so you can use TCP/IP over bluetooth. However I can't get it to do the routing properly so you can browse the internet on your mobile phone via Bluetooth. You can browse the wl500g internal server though.
Speaking of Bluetooth -
Why use Affix (http://affix.sourceforge.net/) and not the "official" BlueZ (http://www.bluez.org/) stack?
And, yes, I'd welcome Bluetooth on the router ;-)
To be honest this is a historical thing. When we started to use bluetooth for our ARM based devices we needed the PAN profile. At that time only affix supported the PAN profile. A second reason is that the affix stack compiles much easier for embedded systems.
I've added a WIKI page for the Affix Bluetooth stack here: PackageAffix
If you have more info (or remarks) for this page, please add it to the page. If you don't have the time or knowledge on howto edit WIKI pages, please PM the info to me and I'll post it there.
chipanzee
21-09-2004, 08:57
great.
Just wondering if it is possible to do it in a 'reverse' way about audio profile. That is, using my t68i as the mic/speaker for linux. Then I can find a voip port to mipsel and turn my wireless cellphone to a indoor wireless phone for voip :-)
I just bought a WL500G because of its usb port as I can attach a usb sound device(with mic/headset port) so I can run speakfreely on it to have a closed circuit 'broadcast' system through IP.
would you like to post your config.mk from the affix-kernel package and Makefile so I can try to make the affix for latest firmwares?
TIA
xlephant
03-02-2005, 14:28
hi guys,
does anybody know if there is a way to use the bluetooth function as a internet ap for a pocket pc?
thx a lot
hi guys,
does anybody know if there is a way to use the bluetooth function as a internet ap for a pocket pc?
thx a lot
My bluez stack does this using the PAN profile.
I'm trying to do the same using RFcomm, so that phones could use it too. Look for my blez stack, it will work for pan
xlephant
08-04-2005, 13:02
hi guys,
is anybody here who can precompile the affix stack for the new firmware?
im not so good in linux.
or how you run affix stack on the new oleq firmware?
see my problem here:
http://wl500g.info/showthread.php?t=1914&highlight=affix
would be so nice if someone could help me. thx a lot....
spekanet
23-04-2005, 18:49
The bt toolsuite seems to be using the /lib/ld.so.1 which is not present in the firmware from wl500g.dyndns.org. How did you do to use the affix binary stack with it ?
By the way, the usb flash drive mounts under /tmp/harddisk and not /mnt/usbfs on my wl500g.
Good work. Just checked this. The code could be easily be stripped to 2.5MB by removing debug info and development libraries/headers. Also, try replacing glibc with uclibc.
fastclick
27-06-2005, 14:51
Hi Folks,
I'm trying to get bluetooth to work for several days.
I have the precompiled affix stack and don't get futher.
Can somebody post a link to a precompiled bluez-Stack.
(Or share his expericence in compiling affix/Bluez and get it to work)
Thanx in advance.
FastClick
Hi everyone!
Would be interesting to know is there any progress about using BT on WL500g? The most interesting thing would be to make BT devices be able to access WAN. I have USB BT dongle, USB-flash, USB hub, WL500g and PDA – all required hardware and would like to access WAN from my PDA. Maybe I could be useful for doing some tests as well? ;-) I think to have BT support on router would be really great thing, please, everyone, don’t stop working on this case! ;-)
Greetings,
Cunami
brenosabino
09-03-2006, 14:36
hi guys...
i am new on this forum and i have a wl-500g router... i never modified his firmware other than the official... now what i want to know is if is possible to plug a bluetooth dongle in the wl-500g usb port... and if i really need a usb hub and a flash drive. and if its possible i would like to use gnubox with it.. this program can make me use the pc internet connection on my nokia 6630 via bluetooth.. i will post more information later but here is the link to the tutorial and the forum of gnubox.
Tutorial (windows) - http://web.singnet.com.sg/~kinston/Bluetooth%20Internet.htm
Tutorial (linux) - http://arnold.homelinux.com/tiki-read_article.php?articleId=40
Forum - http://www.symbianos.org/yabbse/index.php?board=2
byee!
srry for my bad english
Hi there, the situation is that currently bluetooth is possible on 1.9.2.7-3c and below.
I tried a while back to recomplie the blueZ modules to bring it up to date, as described at this thread.
http://wl500g.info/showthread.php?t=1270&page=3&highlight=bluez
I was suggesful to a degree, but I could not get a connection like I could with -3c, I thought it might be a iptables problem or something but I got stuck and no further help arrived, so unless someone with more expertise than me figures it out, or whatever bug/error stopped me is ironed out by now, then you are stuck with old firmware or without bluetooth.
Remixme, could you post the files you compiled?