View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#16
Originally Posted by sicelo View Post
Strange that regular DUN gives you issues @sulu. It worked for me just fine max 2 years ago.
[..]
Perhaps you have something unusual going on in your N900 bluetooth config? e.g. bluez from -devel? attempts to use BT keyboards or play with bt audio sinking? (at least i know i've played with all those at some point)
I've never done anything bluetooth-related, except for the DUN tethering years ago.


Originally Posted by Halftux View Post
This is not needed when this is set "Accept connection from local lan = y".
And when it should be LAN not WAN sorry forgot to tell.
I set this up because that's what I thought was this advice about:
Originally Posted by Halftux View Post
Then you need to open port53 tcp (local-ports tab) for dnsmasq requests from bnep0.
If that isn't the case, then I'm missing whatever I should have done here instead.

Originally Posted by Halftux View Post
Do you connect with your pc as "panu" or as "nap" you need to connect as nap...
I have no idea. I'm just following your how-to.

Originally Posted by Halftux View Post
(for example test-nap script sounds good but would be bad).
I didn't call that.

Originally Posted by Halftux View Post
Maybe also not fast enoug with the start button but I wonder why your PC has a bnep device.
Is within 10 seconds fast enough?
But frankly, if I'm on a clock here, that's nothing I'd like to use for production.

Originally Posted by Halftux View Post
Please click the stop button on the route-bt tab and try again.
Did that multiple times.

Originally Posted by Halftux View Post
And btw maybe it helps the script in /opt/genwall/bt_on.sh will be initiated by the start button, the off button would be bt_off.sh script.
This is what I got in the terminal when calling those scripts manually:
Code:
$ sudo /opt/genwall/bt_on.sh
CONFIG=/home/user/.genwall/network.ini                                 
sed -n s/btip=//gp /home/user/.genwall/network.ini                     
IP_ADDR=192.168.8.2                                     
sed -n s/btnetm=//gp /home/user/.genwall/network.ini
NETMASK=255.255.255.0                                     
sed -n s/btdhcp1=//gp /home/user/.genwall/network.ini
DHCP_RANGE1=192.168.8.100                                  
sed -n s/btdhcp2=//gp /home/user/.genwall/network.ini
DHCP_RANGE2=192.168.8.127                                  
RUNFILE=/var/run/bt_tethering.pid                          
DNSMASQ=/usr/sbin/dnsmasq                                  
ifconfig bnep0 192.168.8.2 netmask 255.255.255.0 up  
[ -f /var/run/bt_tethering.pid ]                           
[  = lan ]                                             
[  = for ]                                           
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:Bluetooth PAN Activated
$ sudo /opt/genwall/bt_off.sh                                                                                                                                                                 
cat: can't open '/var/run/bt_tethering.pid': No such file or directory                                                                                                                        
sh: you need to specify whom to kill                                                                                                                                                          
rm: can't remove '/var/run/bt_tethering.pid': No such file or directory
To get these lines off my N900 I had to reboot it again.
 

The Following User Says Thank You to sulu For This Useful Post: