maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Personal Area Network bluetooth profile (https://talk.maemo.org/showthread.php?t=3402)

phi 2006-10-30 20:03

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.

fanoush 2006-10-30 20:19

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 2006-10-30 20:42

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.

phi 2006-10-31 03:51

fanoush, do you have a script I can copy off of? :)

fanoush 2006-10-31 09:38

up script
Code:

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

Code:

#!/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 2006-11-02 00:20

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 2006-11-02 08:04

Quote:

Originally Posted by phi
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 2006-11-02 09:07

fanoush: agreed entirely. Is there an email address for the author somewhere?

fanoush 2006-11-02 10:17

found this http://eko.one.pl/index.php?page=Nokia770_software , mailed him

cjackiewicz 2006-11-02 10:45

Quote:

Originally Posted by fanoush

Why not. Probably this is good idea.
--
Cezary


All times are GMT. The time now is 05:12.

vBulletin® Version 3.8.8