PDA

View Full Version : Personal Area Network bluetooth profile


phi
10-30-2006, 03:03 PM
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.

fanoush
10-30-2006, 03:19 PM
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.

runestone
10-30-2006, 03:42 PM
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.

phi
10-30-2006, 10:51 PM
fanoush, do you have a script I can copy off of? :)

fanoush
10-31-2006, 04:38 AM
up script

#!/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
BTADDR='xx:xx:xx:xx:xx:xx'
IP=192.168.2.2
GW=192.168.2.1
NS=192.168.2.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

down script

#!/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


you need to open dummy connection before executing 'up' script or DNS details wil get overwritten in /tmp/resolv/conf.lo

phi
11-01-2006, 07:20 PM
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.

fanoush
11-02-2006, 03:04 AM
Did you have to enable R&D mode so the script would work correctly?

Yes either that or after you become root by other ways you can modify /sbin/gainroot as described here (step 4) http://maemo.org/maemowiki/HowDoiBecomeRoot2

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.

aflegg
11-02-2006, 04:07 AM
fanoush: agreed entirely. Is there an email address for the author somewhere?

fanoush
11-02-2006, 05:17 AM
found this http://eko.one.pl/index.php?page=Nokia770_software , mailed him

cjackiewicz
11-02-2006, 05:45 AM
found this http://eko.one.pl/index.php?page=Nokia770_software , mailed him
Why not. Probably this is good idea.
--
Cezary

phi
11-02-2006, 03:12 PM
everything worked out. Thanks guys. Wish Nokia would incorporate something more elegant in the update but this will do.

cjackiewicz
11-03-2006, 01:29 PM
Done. Only changed in gainroot, not sudoers.
http://eko.one.pl/index.php?page=Nokia770_software#becomeroot
--
Cezary

fanoush
11-03-2006, 02:22 PM
Thanks. That will make life easier for people creating/using scripts which need root.

Luna
12-18-2006, 10:17 AM
#!/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


I get a segmentation fault with this part active. Anyone else have a problem with using this technique to gainroot from a user script?


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)

pcman
01-06-2007, 05:35 PM
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.

phi
01-06-2007, 05:57 PM
Did you connect to the DEFAULT setting before you ran the up script?

pcman
01-06-2007, 06:59 PM
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.

phi
01-06-2007, 10:39 PM
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

pcman
01-06-2007, 11:01 PM
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.

phi
01-06-2007, 11:07 PM
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?

pcman
01-06-2007, 11:25 PM
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....

pcman
01-06-2007, 11:34 PM
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?

phi
01-07-2007, 10:12 AM
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.

pcman
01-07-2007, 10:21 AM
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

phi
01-07-2007, 10:36 AM
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

pcman
01-07-2007, 10:44 AM
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'.

phi
01-07-2007, 11:11 AM
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.

pcman
01-07-2007, 11:28 AM
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?

pcman
01-07-2007, 11:54 AM
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.

pcman
01-07-2007, 12:32 PM
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!

phi
01-07-2007, 04:30 PM
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 :(

azule
01-15-2007, 12:16 PM
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...

pcman
01-15-2007, 09:47 PM
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.

azule
01-16-2007, 11:08 AM
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?

azule
01-16-2007, 05:09 PM
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!

azule
01-16-2007, 05:45 PM
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???

phi
01-16-2007, 10:22 PM
wish i could help. i wish nokia would just integrate it into the OS already.

azule
01-17-2007, 09:46 AM
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.

bobpaul
01-29-2007, 06:02 PM
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.

expediter
02-24-2007, 06:31 PM
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.


Does it work with Opera? Just got my N800 a few days ago and finally got it paired with my Blackjack. Opera doesn't work with bt PAN however Minimo does. This was noted in another post so I'm wondering does anybody have Opera working with bt PAN? Personally I prefer it to Minimo.

phi
04-02-2007, 11:29 AM
I submitted a bug for this on maemo, although I doubt they'll fix it on the 770, hopefully, they'll do it on the n800 by the time I get around to purchasing it.

https://maemo.org/bugzilla/show_bug.cgi?id=1195

mlindholm
04-04-2007, 02:24 AM
Does it work with Opera?....Opera doesn't work with bt PAN however Minimo does. This was noted in another post so I'm wondering does anybody have Opera working with bt PAN?

Yes, I have an HTC S620, aka a non-T-Mobile, T-Mobile Dash. Unfortunately, it has the PAN profile, but not DUN. Following the guide, I am able to get my N800 talking through it and online, but I don't yet know how to make it pretty and integrated into the GUI. I have created the dummy AP, connected to it, then run a variation of the BT UP script from maemo.org (w/o the insmod bnep.ko), then when I'm done, I run the BT Disco script (w/o rmmod bnep.ko).

The other difference I've found, is that the instructions on maemo.org talk about using the dbus-s program, which doesn't seem correct for the N800. My system seems to work fine when I don't run the other scripts, just the connect and disco scripts.

And to actually answer your question, yes, Opera does work when I get everything connected.

stevenf
04-06-2007, 01:21 AM
I've been fiddling with this some more tonight. I have a T-Mobile Dash and an N800.

It is almost working, except for DNS, which for some reason, works only in Xterm.

I can do nslookups in Xterm all day long, and get valid addresses back.

Opera and the email client however can't connect to anything.

I've tried everything I can think of. I have "nameserver 192.168.0.1" in /etc/resolv.conf as well as /tmp/resolv.conf.lo and /tmp/resolv.conf.bnep0

And, as I mentioned, it works fine in the Xterm, using 127.0.0.1 as the server.

Oddly, Opera can't even connect by IP. If I enter http://64.233.167.99/, I should get Google, but it just spins at "Connecting..."

Meanwhile, I can flip over to Xterm and "nslookup google.com" and get three addresses.

Any ideas? This is the closest I've ever gotten to having this work.

stevenf
04-06-2007, 01:58 AM
Update to the above: As one of the other posters mentioned, Minimo can resolve names, but Opera can't.

I'm confused.

stevenf
04-09-2007, 08:50 PM
This is going to drive me batty. How can SOME apps see the network connection but not ALL?

Any Nokia insiders willing to shed some light on why the stock apps would fail to see the network in this configuration? I'm open to any suggestions at this point.

luketoh
04-09-2007, 11:19 PM
As a work around, would installing Privoxy help? Privoxy is a proxy, so maybe having that and pointing your browser and email app to the proxy will work?


Luke

stevenf
04-10-2007, 09:51 PM
Privoxy was a clever idea, but unfortunately resulted in the same behavior. No Opera, etc. Man this is baffling. Nobody knew on maemo-developers either.

luketoh
04-10-2007, 11:45 PM
is there any clue in the opera.conf file? Perhaps some setting?

stevenf
04-12-2007, 04:41 PM
Well, it's not just Opera that's affected. None of the built in apps see the connection. But xterm and Minimo are fine somehow.

I guess I'm going to need a DUN capable phone if I want this to work any time soon. :/

obra
04-12-2007, 06:45 PM
I keep getting the following error on my N800 when trying to run the scripts provided by fanoush. Any ideas?

Syntax error: "fi" unexpected (expecting "then")

luketoh
05-06-2007, 10:17 PM
check the scripts..

looks like some typo with the IF statements or something therein

phi
06-02-2007, 05:09 PM
I've been fiddling with this some more tonight. I have a T-Mobile Dash and an N800.

It is almost working, except for DNS, which for some reason, works only in Xterm.

I can do nslookups in Xterm all day long, and get valid addresses back.

Opera and the email client however can't connect to anything.

I've tried everything I can think of. I have "nameserver 192.168.0.1" in /etc/resolv.conf as well as /tmp/resolv.conf.lo and /tmp/resolv.conf.bnep0

And, as I mentioned, it works fine in the Xterm, using 127.0.0.1 as the server.

Oddly, Opera can't even connect by IP. If I enter http://64.233.167.99/, I should get Google, but it just spins at "Connecting..."

Meanwhile, I can flip over to Xterm and "nslookup google.com" and get three addresses.

Any ideas? This is the closest I've ever gotten to having this work.

I have the same issue too. Any resolution or did you give up?

nepali_boi
06-30-2007, 08:59 PM
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!

I just got my n770 from woot, and i'm just amazed by this device. I installed the OS2007 hacker edition, later to find out that no one has got BT PAN working on it (or has someone ?).

So, i reflashed my 770 to OS2006. I followed the instructions for setting up PAN, but the n770 just keeps on searching for a phone for 60 seconds and cannot find it. I have deleted all references to the n770, from the phone, that might have been created due to earlier attempts of pairing. I have also used numerous IP addresses, but still, it just can't connect.

Is there something else that I might have overlooked ?

Thanks in advance.

BigFNDeal
07-09-2007, 12:28 PM
OK, so being a complete linux noob, I see the instructions above and I am still lost. For instance, step 1 says...

1. Create the following 'bluetooth connection up' script (I called this 'btup') in the directory of your choosing, I used /home/user

And I'm sure thats more than enough guidance for some people, but for me, not so much. How do I do this? In other words, how do I get to /home/user? Thats the type of thing I need to be guided thru.

I know I'm going to likely get flamed for this, but I am very anxious to get this to work and I can't seem to get anywhere right now.

EDIT: OK, so I figured out some of the steps above, using the newbie tutorial put together in post #11 of this thread

http://www.internettablettalk.com/forums/showthread.php?t=6739&page=2&highlight=guide

Thanx Jeffus!

MY new ? is when I create the btup ad btdown connection scripts, what so I save them as? In other words, in Windows I would save them as btup.bat, but what about in linux, do I save them as btup.txt? WHat format?

Thanx.

BigFNDeal
07-18-2007, 02:35 AM
Can I get some help, or not? I really need to get this figured out soon.

pcman
07-23-2007, 10:00 PM
Hi, I hope I can help. All you need to do is save the file as btup. No extension is required. Same for btdown. You don't have to use these names although they are easy to remember. It is much easier if you ssh into your device and use your pc keyboard. You will have a lot less mistakes. Trust me on this one. Just use vim or vi or maemopad or whatever text file editor of your choosing. At the command prompt you can do:
#vim btup
Hit enter and then hit 'i' to insert. Then type in the file info. Once you are done, hit 'Esc' ':wq' to save the file. Now repeat for vim btdown.

Post back if/when you get stuck.

I just got the N800 so I am going to try out the same thing. I haven't checked to see if this works on the N800. I need to get ssh installed but the maemo site is currently down.

rotero
07-24-2007, 12:23 AM
I also got my 770 from Woot and wanted to pair it with my Dash. I read this thread and got a bit overwhelmed. Finally I did some more searching and found a file that adds the DUN profile to Windows Mobile 6. It worked fine for me. Now I can use my Dash data connection whenever there is no WIFI around. So if that is all you are trying to do, I recommend using the file.

I attached the file that I used.

pcman
07-24-2007, 06:24 AM
Thanks for the file. Unfortunately, I have WM5 (Blackjack). I'll post back when I confirm the internet connection through the Blackjack for the N800.

pcman
07-24-2007, 08:34 PM
Check out my how to for the Nokia N800 at my blogspot, Linux Gadgets (http://linuxgadgets.blogspot.com/).

ilovenicotine
07-27-2007, 09:04 PM
pcman's guide on page 3 worked perfectly for me! Thank you to fanoush, phi, and pcman for putting it all together.

phi
07-27-2007, 11:11 PM
I also got my 770 from Woot and wanted to pair it with my Dash. I read this thread and got a bit overwhelmed. Finally I did some more searching and found a file that adds the DUN profile to Windows Mobile 6. It worked fine for me. Now I can use my Dash data connection whenever there is no WIFI around. So if that is all you are trying to do, I recommend using the file.

I attached the file that I used.

rotero, what device are you using? I can't get his to work for my T-mobile dash.

tnanh
08-03-2007, 06:22 PM
hi there, I was wondering if you can help me phi or pacman?
I have copy the script for btup and btdn, but when I try to run it, it error out saying something about wait for 60 sec. also , how do I fing my bt Mac addr. I have a tmb Dash. Here is how I run my script. can u tell me if i'm doing it right. first I connect using the default connection then I turn on the panning on my Dash, then I go back to my 770 and run the btup script by user the follow syntax.
sudo gainroot and then sh btup. can u guys tell me if the sh command is correct. i'm a totally noob just my 770 a fews days away. i've been pulling my hair out just trying to find the command to run the script. any help would be apprecitive. thanks

pcman
08-03-2007, 10:40 PM
Let me see if I can help.

Where did you save the file. Make sure you navigate to the folder where you saved it. As mentioned in the how to, I saved it in /home/user/. I would run the script with:
#/home/user/./btup

You can find your BT mac address by going into the settings on your phone or searching for nearby BT devices with:

#hcitool scan

The scan will come up with all BT devices in the range that allow devices to see them so you may need to find it on your phone.

Try the ./btup instead and post back with any issues. We are here to help. I have an N800 now so I can't help you trouble-shoot but may be able to lead you into the right direction. Trust me, I had a heck of a time getting it figured out on my old N770 but once I did, WALA!

tnanh
08-04-2007, 01:11 AM
thanks for getting back so quick. ok I have the bt mac.
when I use the ./btup command I get assess denied. also I am currently us the 2007 hach os. will this script work with the os?. a funny thing happen though, when I use the #sh btup command, I get a prompt from my dash asking for the key, after I input the key for the dash, my 770 also prompted me for a key, but when I try to input the key into the 770 my dash time out and give me an connection error but on my 770 it said I had establish a bt connect. but I could now surf with the connection. so I disconnected everything and again to if I can beat the time out error. but I could not get the dash or the 770 to prompt me again.

tnanh
08-04-2007, 03:54 AM
ok, I got it to pair with each other, but i am still unable to surf the net. again I am using the 2007 hack os. when I use the # ./btup command it return permission denied, but when I use the #sh btup, it seem to work. is that a valid command?

pcman
08-04-2007, 12:34 PM
You may need to change the file permissions to make it executable. Try this:

#chmod +x /path/to/btupfile/btup
#chmod +x /path/to/btdownfile/btdown

Are you running these commands as a regular user or as root?

Also, when you get it to pair with each user using 'sh btup', can you ping a website? What is the output from this?

#ping www.google.com

If you get a response you are on your way.

Post back and we'll see what is going on.

Also, take a look at what I use for my N800.

http://linuxgadgets.blogspot.com/

tnanh
08-05-2007, 01:29 AM
ok I finally got it to work. the reason it didn't work the first couple of time was because I was using the ip,gw and ns info from pg 1. when I switch to yours pacman, it just work instanctly. thanks a lot for your help pacman, for getting back to me on the problem, I really appreciated. and thanks to all that help put together these script.

pcman
08-05-2007, 10:09 AM
Glad to help and glad to hear you got it working. Enjoy!

phi
08-05-2007, 11:55 AM
pcman, your instructions don't seem to work in the 770 with OS2007HE. When I run the pand command, it says "Failed to open control socket: Protocol not supported" maybe it might be a shortcoming of the HE though.

pcman
08-05-2007, 01:10 PM
Phi, wish I could help but I am currently using the N800. I sold my N770 about 5 months ago.

I assume this error is when the script hits the pand section. Are you root when you do this? Can you just run the pand -l command? What is the output?

Just for kicks, try the how to I have on one of my blogs. Here is a link to how I set it up on my Nokia N800. As long as you have the bnep.ko module you should be o.k. Try this out and let me know how far you get.

http://linuxgadgets.blogspot.com/

You can also try out this other post from fanoush. The title is N800 PAN workaround so I am not sure if it will work for the N770.

http://www.internettablettalk.com/forums/showpost.php?p=52174&postcount=5

Post back with the sequential steps with the commands you are using. We'll help you figure it out.

phi
08-05-2007, 06:14 PM
honestly, I think i'm slowly giving up on hacking pan to work on the n770 with os2007HE. I was happy with it under OS2006 but i just don't have the time or energy to figure it out these days. I might just have to track down a new phone or just wait for the maemo roadmap to play out.

tnanh
08-06-2007, 02:38 PM
hey pacman, ok, I am able to pair the 770 and the dash but, some times it let me surf the internet and some times it doesn't, did u have that problem when u were using the 770?. also do I have to delete the 770 info on the dash everytime I use the btup script?

pcman
08-06-2007, 09:14 PM
Great. You've got it working (most of the time). You are a step in the right direction. Actually, I only had to delete the phone/nokia BT pairing once, which was before I had it working. After I paired it again per the instructions, I did not have to delete again.

Please post your output of pand -l bnep0 after you lost your internet connection.

Is there a certain time, after you connect, that you lose connection? I don't have the dash so I don't know if it is a time out feature of the phone, cell service, etc.

Are you getting full bars during your connection?

Any info is appreciated to trouble-shoot.

tnanh
08-07-2007, 11:06 PM
ok, after I was unsuccessful connecting to any web site, I tried the pand command and it output my bt mac address. is that right?

jblebrun
08-16-2007, 02:58 AM
pcman, your instructions don't seem to work in the 770 with OS2007HE. When I run the pand command, it says "Failed to open control socket: Protocol not supported" maybe it might be a shortcoming of the HE though.

Did you insert the BNEP module?

insmod /mnt/initfs/lib/modules/current/bnep.ko

DeekDeek
09-05-2007, 11:05 PM
Wow, i just got reading this thread. IM GONNA TRY THIS TOMMOROW! On my n800 per pcman's blog site. i'll post my results in the am.

VERy excited to get this working.

L0cutus
10-27-2007, 10:44 AM
Did you insert the BNEP module?
insmod /mnt/initfs/lib/modules/current/bnep.ko

i haven't' bnep.ko module on my n800 :(
someone can send it to me ?
i've the latest nokia firmware

thanks !

bengati
12-14-2007, 10:32 AM
How do i use down script?