Tuesday, July 24, 2007

Nokia N800 - Cingular Blackjack BT Internet Setup

Here is how I got the Bluetooth setup working on my N800.

Connect to the internet sharing on the Blackjack (I use the search to look for 'intshr' in all files)

Installed xterm via application manager
Open xterm and run the following commands

#ssh root@localhost

At password prompt enter 'rootme' or whatever password you have setup for root
#password: rootme

#hcitool scan

In the X's below enter your phone's bluetooth MAC address
#pand --role PANU --service NAP --connect XX:XX:XX:XX:XX:XX --nodetach

Get an ip address
#udhcpc -i bnep0

Setup a DUMMY connection for the connection manager
#gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY

Go to tools/connection manager and select the connection for DEFAULT

Verify you have connection by
#ping www.google.com

You should now be connected.

20 comments:

factoring knowledge base said...

I use the PPC6700 with a hacked ROM, which works perfectly, for all other purposes. I followed your instructions, precisely. However, when I do the #pand command, with all the parameters typed correctly, I get a "Host is down (112)" error, even though Internet Sharing is turn on on my phone. I know it's not a Blackjack, but the principal should be the same.
Any ideas?
Thanks for any help

slipstick said...

Please be sure to double check what you type in at the command line. I believe I came across this error also. I just rechecked the command and it worked. Sometimes I need to run all the scripts and then connect the DUMMY in the available connection labeled as DEFAULT. Post back. We'll get this going for you.

factoring knowledge base said...

I made certain I typed all commands correctly and still got the same error: Host is down (112).

slipstick said...

Please send the complete command that you are using. Are you sure you are paired with your device and the internet connection sharing via BT is enabled?

factoring knowledge base said...

When I do #hcitool scan, it finds my phone because the phone's device name appears: pccgeeks

However, when I do this command, I get the "Host is down (112)" error:

#pand --role PANU --service NAP --connect 00:09:2D:65:0E:42 --nodetach

slipstick said...

Also, did you try to do this after a reboot of the phone? I sometimes have to do it with my Blackjack.

navy05 said...

hi thanks for the tutorial...however, it seems that after the next day, i can not connect. do i need to repeat the same steps for each time i like to connect? or do i just select default for the connection manager? thanks

slipstick said...

Yes, you will need to select 'internet sharing' on the blackjack each time. I would suggest doing this first.

2 Connect to the DEFAULT connection in the connection manager.

3.In the X's below enter your phone's bluetooth MAC address
#pand --role PANU --service NAP --connect XX:XX:XX:XX:XX:XX --nodetach

Get an ip address
#udhcpc -i bnep0

Ping google to verify
#ping www.google.com

You should then be all set. Let me know if it doesn't work,

rk said...

Excellent work!! After trying to get something on my Wing to work, this finally did the trick. Thank you so much! My N800 is super useful now. Thanks again!!

slipstick said...

Thanks. Glad it worked for you. We should just write a quick script or icon for the N800. I like the icon idea better. I'll have to look into and will post back with an update when I start to get some feedback.

Unknown said...

Can you write a script and whenever I want to get to the internet via blackjack, just click on it? Please also include instructions as I am a dummy to linux thanks!

Unknown said...

I have a question, I'm a complete newbie at linux.. well when i try to input the first few commands and i hit the enter button nothing comes up except a new line? I am completely lost here. Some help would be appreciated

Unknown said...

Peter, don't write the # at the beginning of the command. It's just there showing that this is a command line of the xterm.

slipstick said...

Sorry I haven't been active lately, I've recently moved and haven't had internet access at home. Unfortunately, the internet access I signed up with, AT&T DSL, is terrible. It is slow, slow and slower. Fortunately, Comcast is coming out on Tuesday to hook me back up. I should never have left them in the first place. I'm traveling for the next week so I'll take a look at writing a script with a connection button/icon for the N800. Just need some time as I have been busy with the house and unpacking.

Riccardo said...

N800 would disconnect immediately from the DEFAULT dummy connection. I have created a dummy ad-hoc connection from the connection manager instead and it works like a charm, thanks a lot.

Sergio Alfredo Adame said...

Thank you for the tip. Please help me, I don't know anything about linux and I don't know how to run the ssh command on my N800. I tried without the # but nothing happens, just a new line. I tried all the other commans and got the same result. Can somebody help me please? Thank you in advance!

slipstick said...

Let's start off with the basics. Let us know where you left off in the original procedures.

Did you get past this point?

1. Installed xterm via application manager
2. Open xterm and run the following commands
3. Enter everything after the # sign
#ssh root@localhost

Sergio Alfredo Adame said...

Thank you Slipstick. I upgraded the OS to the 2008. Then the Xterm came with the upgrade. I installed the SSH from the repository and the tried the login with root. Got it. But that's it, I'm not able to run the hcitool neither the pand or udhcpc commands.

slipstick said...

It looks like the OS 2008 upgrade is the issue. The bluez-utils package does not include any binary except hcid. Everything is now done via d-bus. Check out this link and if you can get through this step you may be all set.

http://lists.maemo.org/pipermail/maemo-developers/2007-December/013507.html
Post back with your success or frustrations. Unfortunatley, I haven't worked with OS 2008 so I can't be much of a help.

Sergio Alfredo Adame said...

Hi slipstick, everyone. I have tried that approach for OS 2008. It actually tries to connect to the Bluetooth in the other device (in my case, my Samsung Blackjack). I appears to be connected but then it show a message saying that it's disconected. I tried to edit the script (not sure what did because I'm not expert in linux) to comment the lines about the disconnection:
${BASEDIR}/kbdd ${KBDDFLAGS} -t ${KBTYPE} -p /dev/${PORT}
infoprint "Keyboard disconnected")
but it apparently is not working. Any idea or suggestion? Thank you..