![]() |
Personal Area Network bluetooth profile
So, does anyone know if the Tablet can use this profile and if so, can it used to access the interweb?
Someone else has posted a question about the T-mobile Dash (that has the PAN profile but not the DUN profile) here, but I figure this is the root of the problem. |
current system does not support it officially but since it is linux and debian it can be made to work. Instructions are in maemo wiki. Something has been mentioned also here, just use the search. You need dummy IAP connection configured and setup script in shell which starts pand daemon and sets up dns and IP address. Works for me with my notebook with conection sharing over Bluetooth LAN Access Server (part of widcomm bt stack) in Windows XP.
|
But the other way around...
I was wondering how to configure the 770 to share a WiFi connection over BT PAN, or even a BT 3G connection that could be shared over PAN. Is this doable, any hints, links etc :)
I have a Sony Ericsson M600i that supports surfing over BT PAN, but since I have a free 3G (WCDMA) access with my other cellphone (corporate), it would be cool to share that connection from the 770 to the M600i, or even an active WLAN connection. |
fanoush, do you have a script I can copy off of? :)
|
up script
Code:
#!/bin/sh Code:
#!/bin/sh |
sweet! that worked. Thanks!
Did you have to enable R&D mode so the script would work correctly? I have becomeroot installed as well as dropbear as well but I'm trying to figure out how to streamline connecting so its less painful. |
Quote:
IMO becomeroot should modify /sbin/gainroot to be compatible with R&D mode and not play with /etc/sudoers and invent another way of becoming root. |
fanoush: agreed entirely. Is there an email address for the author somewhere?
|
found this http://eko.one.pl/index.php?page=Nokia770_software , mailed him
|
Quote:
-- Cezary |
everything worked out. Thanks guys. Wish Nokia would incorporate something more elegant in the update but this will do.
|
Done. Only changed in gainroot, not sudoers.
http://eko.one.pl/index.php?page=Nok...are#becomeroot -- Cezary |
Thanks. That will make life easier for people creating/using scripts which need root.
|
Code:
FYI: I have a samsumg blackjack on cingular and the following ip setup was necessary IP=192.168.0.170 GW=192.168.0.1 NS=192.168.0.1 www.dslreports.com/mspeed give 365kbps one the 770. (laptop usb tethered 1mbps, BT on laptop is about the same as the 770) |
Re: Personal Area Network bluetooth profile
I used the scripts and ran the "up script" as root and tried to pair my Cingular Blackjack with the Nokia but I still get the following error "Selected phone does not have services tha can be used. Select another phone." Although, on the Blackjack, it says "INFO Your Smartphone has connected with n770". Any helpful hints?
Thanks in advance. |
Re: Personal Area Network bluetooth profile
Did you connect to the DEFAULT setting before you ran the up script?
|
Re: Personal Area Network bluetooth profile
I am not sure what you mean by DEFAULT.
ON the N770: Tools/Connection Manager/Menu/Tools/Phone/New/Selected my phone 'SGH-i60'/Select 'ok' when prompted for 'pair with phone'/entered N770 passcode on phone when prompted/ and then had the above ERROR. TIA. |
Re: Personal Area Network bluetooth profile
The UP and DOWN script is only half of the battle, you have to configure some other stuff before you even run the scripts. Read the How-To on maemo. Skip all the setting up stuff on your linux/PC server side since you don't need that.
http://maemo.org/maemowiki/HOWTO-BluetoothNetworking |
Re: Personal Area Network bluetooth profile
I tried to setup the "dummy access point" at http://maemo.org/maemowiki/DummyIAP with the command
gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY but I am missing /system on the N770. I only have /sys. I must be missing something. |
Re: Personal Area Network bluetooth profile
hmm...I don't remember how I got mine working since its been a couple months. maybe you have to run that command as root perhaps?
|
Re: Personal Area Network bluetooth profile
OK. I was a little lazy on this one. I always use 'tab' for the paths and I just went ahead and issued the command gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY and it worked. I now have a DEFAULT listed in the 'connection manager'. Now, I tried to pair the phone again but I still get the same error message. I also went back to run the 'btup' script from the earlier post and I get a permission denied as 'user' and 'root'. Maybe a chmod? Strange because I didn't get a permission denied before....
|
Re: Personal Area Network bluetooth profile
Update -- $btup = my up script -- did a chmod 777 btup and reissued the script and
Nokia770-39:/home/user# chmod 777 btup Nokia770-39:/home/user# ./btup ./btup: 2: use: not found Using /mnt/initfs/lib/modules/current/bnep.ko Waiting 60 secs for bnep0............................................. .......... ..... Error: bnep0 not available. Nokia770-39:/home/user# pand -Q10 Nokia770-39:/home/user# pand -l Nokia770-39:/home/user# udhcpc -i bnep0 Nokia770-39:/home/user# ifconfig bnep0 ifconfig: bnep0: error fetching interface information: Device not found Any ideas? |
Re: Personal Area Network bluetooth profile
You don't need to be paired to the phone from what I recall. Also, the script has to be run as root, so when I run the script, it automatically SUDOs to root.
All I do is -connect to the Dummy IAP -Open up Internet Sharing on my phone and hit Connect which sets my bluetooth to be discoverable -run the UP script. |
Re: Personal Area Network bluetooth profile
I tried the following:
1. gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY "gives error "No value to set for key: 'DUMMY' 2. Ran ./btup Error: bnep0 not available. I'll keep trying. I must need to setup a network interface for bnep0? Seems like the script may not be setting it up properly. Maybe I need to change this? # real script follows BTADDR='xx:xx:xx:xx:xx:xx' IP=192.168.2.2 GW=192.168.2.1 NS=192.168.2.1 IFACE=bnep0 |
Re: Personal Area Network bluetooth profile
Oh, right, yes. You need ot change the BT ADDR, otherwise, its not going to know where to look. I originally connected my T-mobile Dash via PAN to an WinXP machine and did an ipconfig for the other stuff, but I think you need to run
somthing to find out the BTADDR but its not pand -l since I can't seem to get that to work on my 770 |
Re: Personal Area Network bluetooth profile
I did have the BTADDR set to the N770 BT address which I found from the /tools/control panel/Device.
I'll change to the phone BTADDR. Also, when I pand -l it returns to a prompt. I tried I again and no luck although I know the N770 is 'pinging' the phone because the phone will briefly lightup when I run the script. What about changing these values as memeber Luna did? I'll give it a try. IP=192.168.0.170 GW=192.168.0.1 NS=192.168.0.1 UPDATE I changed to these values and still no go. On the phone I have 'PC Connection:' set to 'BT PAN and is 'connected'. |
Re: Personal Area Network bluetooth profile
I have
IP=192.168.0.2 GW=192.168.0.1 NS=192.168.0.1 IFACE=bnep0 If your phone says its connected, then you're halfway there. sounds like your having forwarding issues. sorry I'm not of much help but I configured this thing 2 and a half months ago and haven't had to touch it since. |
Re: Personal Area Network bluetooth profile
I appreciate the help.
When I mean 'connected' I mean the phone is set to share the internet via BT Pan. Although, I have used the phone as a modem for a laptop which works great. Just doesn't seem like the N770 is getting an IP. I tried the settings you listed but no luck. I'm going to try the other IP,GW, etc. again. I also note there are no settings in the DEFAULT connection. Is that the same as yours? |
Re: Personal Area Network bluetooth profile
All I have to say is Thank You!
I've got it working. What I had to do was go into the current pairing on my phone and delete the n770 that I was previously trying to pair. When I reran the script on the n770 I was prompted to connect/enter a password on the phone, entered 1234, the N770 then prompted for a password, entered 1234, tried to connect to my website and voila, it worked. Thanks again. Now to check out the speed. Update - 330 kbps! Nice. I plan on putting together a guide for this to post. I spent many hours trying to get this working. |
Re: Personal Area Network bluetooth profile
Here is a summary of how I got it working.
Date: January 7, 2007 Subject: How to connect Nokia 770 internet tablet with Cingular Blackjack cell phone for internet sharing (Make sure you have a data plan with Cingular first) 1. Create the following 'bluetooth connection up' script (I called this 'btup') in the directory of your choosing, I used /home/user Script was taken from the internettablettalk.com/forums - Thanks fanoush, phi, et al #!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi # real script follows # enter your cell phone BT address below BTADDR='xx:xx:xx:xx:xx:xx' IP=192.168.0.170 GW=192.168.0.1 NS=192.168.0.1 IFACE=bnep0 #insmod just to be sure insmod /mnt/initfs/lib/modules/current/bnep.ko #start PAN Bluetooth connection pand --connect $BTADDR # wait for the interface created by pand s=60 echo -n "Waiting $s secs for $IFACE" while [ $s -gt 0 ] ; do ifconfig $IFACE >/dev/null 2>&1 && break s=$((s-1)) echo -n "." sleep 1 done echo if ifconfig $IFACE >/dev/null 2>&1 ; then # bring it up echo "OK, bringing $IFACE up" ifconfig $IFACE $IP up route add default gw $GW echo "nameserver $NS" >/tmp/resolv.conf.lo else echo "Error: $IFACE not available." fi 2. Create the following 'bluetooth connection down' script (I called this 'btdn') in the directory of your choosing, I used /home/user Script was taken from the internettablettalk.com/forums - Thanks fanoush, phi, et al #!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi # real script follows echo -n '' >/tmp/resolv.conf.lo pand -K sleep 1 rmmod bnep 3. Run the following command as root on your Nokia 770. gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY This will create a DEFAULT connection for your internet connections on your Nokia 770. 4. Make sure you have deleted any reference to the Nokia 770 bluetooth pairing on the phone. 5. On the Nokia 770 go to Menu/Tools/Connection Manager/Menu/Internet Connection/Change Connection/'select DEFAULT' 6. On the phone and go to Internet Sharing, make sure 'PC Connection' is set to 'Bluetooth PAN' and select 'Connect'. 7. On the Nokia 770 run the 'btup' script as root in the directory you created the script. i.e. /home/user/./btup 8. The phone will now ask if you want to pair with the Nokia 770, select Yes and when prompted enter the password 1234 on the phone. 9. The Nokia 770 will now prompt for the password, enter 1234. 10. Check your internet connection to make sure it works. 11. Check your speed at http://www.dslreports.com/mspeed/ Good luck! |
Re: Personal Area Network bluetooth profile
Great summary, glad you figured it out. There is something on maemo's wiki that streamlines the connection so you don't have to run Xterm to run the scripts everytime you connect, but I haven't figured it out yet. Wish Nokia would just add all this in already.
I'm jealous of your speed! Best I get on T-mobile is 145kbps, then again, we don't have 3G :( |
Re: Personal Area Network bluetooth profile
Hey, has anyone tried this with the N800? My version doesn't have bnep.ko, am I missing something or did all you 770 users just have this?
When I try the scripts it connects... As in the phone says that it has connected, but nothing will happen when I try to visit pages or ping any IPs... |
Re: Personal Area Network bluetooth profile
Take a look here. When I was first tackling this I believe I ran this command. (Note I use a 770)
http://maemo.org/maemowiki/HOWTO-BluetoothNetworking insmod /mnt/initfs/lib/modules/current/bnep.ko Good luck. |
Re: Personal Area Network bluetooth profile
Hmm, I don't have this file.... Which seems odd to me. My little bit of research says that it enables bluetooth networking with PAN in the kernel, but I could be mistaken.
Perhaps it's compiled into the kernel for OS 2007? |
Re: Personal Area Network bluetooth profile
AHHH, I see, apparently bnep.ko IS compiled into the kernel for OS2007... However, there is something weird with my dummy IAP... I can use minimo just fine on the phone connection, but the built in opera doesn't work at all!
|
Re: Personal Area Network bluetooth profile
From what I can see, when I try to use the dummy connection (named "DEFAULT") it never leaves the "connecting" connection status. How a dummy connection connects is beyond me, but apparently the built in apps won't work without it... Using minimo it works just fine...
Anyone have ANY ideas??? |
Re: Personal Area Network bluetooth profile
wish i could help. i wish nokia would just integrate it into the OS already.
|
Re: Personal Area Network bluetooth profile
Yeah, me too. The fact that bnep.ko is now compiled into the kernel makes me think we'll see it in a release soon, but that may or may not be true.
|
Re: Personal Area Network bluetooth profile
bnep.ko being compiled in is probably just because the N800 has more ram than the 770. Leaving it out meant it could be added into running memory if/when needed, and then removed. When it IS loaded, though, it will take up more memory than if it was just compiled in like now. It's a trade off.
I wouldn't expect Nokia to add this to the GUI unless one of us adds it first. |
Re: Personal Area Network bluetooth profile
Quote:
|
All times are GMT. The time now is 09:59. |
vBulletin® Version 3.8.8