[maemo-developers] [maemo-developers] Network using PC BT Network Access Point

From: Ilkka Urtamo ilkka at urtamo.com
Date: Wed Oct 26 23:20:45 EEST 2005
Hello

I have been trying to get net access via USB BT in my home PC.
(due 2 reasons, BT does not need so much power and I dont have WLAN atm )

First tries with DUN was unsuccessfull, for some reason device refuses to
see my DUN in the PC and complains that "phone does not have services".

router PC> sdptool browse local
Service Name: Dial-Up Networking
Service RecHandle: 0x10002
Service Class ID List:
   "Dialup Networking" (0x1103)
   "Generic Networking" (0x1201)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 1
Profile Descriptor List:
   "Dialup Networking" (0x1103)
     Version: 0x0100
Weard.. huh?

Anyway... So I started making NAP connection.
Set up pand to listen in PC side, gained root to dev, executed in it:
pand -c <PC bdaddr> --role NAP -z
ifconfig bnep0 192.168.2.2 netmask 255.255.255.0
route add default gw 192.168.2.1
(havent checked for dns yet...)

After this I can ping the dev from the host side. dev dont have ping
command so i cannot test that direction but I would say it works also.

Problem now is, that even i have bnap0 on ifconfig in the dev and everything is fine
(it even made small green gobe on top of the cellphone icon in status bar)
each app whants to have the connection made (starts connection dialogs).

My question is, how does the osso system (or dbus or what ever is responcible)
determines when net connection is available?

Any toughts?

PS. It seems normaly connections are made by btcond and  I would modify
that but I cant find source code for btcond anywhere.


Greets, Ilkka


More information about the maemo-developers mailing list