OpenWrt Forum Archive

Topic: OpenWrt & BlueZ

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Can somebody help with BlueZ in OpenWrt, please?
Whole day I'm trying to connect my NOKIA phone over bluetooth (using MSI MS-6967 bluetooth USB stick) to my ASUS WL-500g (with OpenWrt RC5 firmware). I want to use internet connection in my phone.

Problem I have is when I connect my phone to ASUS, I get this message:
pppd is unable to open the /dev/ppp device. You need to create the /dev/ppp device node by executing the following command as root: ^Imknod /dev/ppp c 108 0

But when I type "mknod /dev/ppp c 108 0" I got reply "-ash: mknod: not found".
I try everything, but nothing works. Please, help me, I think this is last what I must resolve.

Thanks for answers,
Cooper, Czech Republic

(Last edited by cooper.zl on 8 May 2006, 20:23)

Please DO NOT post questions apparently not related to development to developers forum.

Seems like you have not loaded ppp modules. Here is my script to setup bt comm with P900 (Symbian 7.0).
If your Nokia is also symbian phone I hope it helps.

#insert bluetooth and usb modules
insmod usbcore
insmod usb-ohci
# or insmod usb-uhci #depends on your router hw
insmod bluez
insmod hci_usb
#insmod sco #needed only for handset/handsfree profiles
insmod l2cap
insmod rfcomm
 
# ppp stuff
insmod slhc
insmod ppp_generic
insmod ppp_async

#pppd creates locks here
mkdir /var/lock

#storage for bluetooth keys
mkdir /var/lib
 
#start hcid (otherwise 'hcitool dev' does not find devices)
hcid
 
sdpd
 
#advertise some services
sdptool add --channel=1 SP
sdptool add --channel=2 OPUSH

#allow forwarding from the phone to anywhere
iptables -A forwarding_rule -i ppp0 -j ACCEPT

#allow forwarding from the local lan to the phone
iptables -A forwarding_rule -i br0 -o ppp0 -j ACCEPT

dund --listen --channel 1 --msdun call p900-dund

You also need
- setup /etc/ppp/peers/p900-dund
- set  mrouter domain as local in dnsmasq
- enter ip for wsockhost.mrouter to /etc/hosts
Find more on http://gnubox.dnsalias.org/gnubox/

I want to thank you Samot.
Your post was great, everything what I need was there. I made some changes and now is everything working.

And to the your first sentence: Sorry for posting in 'Development', this was accident. In future I'll be more careful.

The discussion might have continued from here.