2004-08-30 11:19:36

by blookk -

[permalink] [raw]
Subject: [Bluez-devel] PAN profile of bluetooth

Hello

I want to connect 2 pc using the PAN profile. I do this things:

- In server and client:

insmod rfcomm
insmod l2cap
insmod bnep

hcid -n &
sdpd -n &
sdptool add LAN

- In the server:
The file hcid.conf : lm accept,master;
in the console : pand --listen --role GN

- In the client:
The file hcid.conf : lm accept,master;
in the console : pand --connect 00:11:22:33:44:55

After i do this things, the virtual interfaz "Bnep0" doesn't create.

I execute ifconfig and only appears:

eth0 Link encap:Ethernet HWaddr 00:0A:9B:4D:75:W3
inet addr:192.161.56.171 Bcast:192.161.56.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22602 errors:0 dropped:0 overruns:0 frame:0
TX packets:17295 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:17913250 (17.0 Mb) TX bytes:2621877 (2.5 Mb)
Interrupt:5 Base address:0x1c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:116487 errors:0 dropped:0 overruns:0 frame:0
TX packets:116487 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7500466 (7.1 Mb) TX bytes:7500466 (7.1 Mb)

In the messages of kernel appears:
in server:
Aug 30 09:54:39 clavijo hcid[4819]: Bluetooth HCI daemon
Aug 30 09:54:39 clavijo hcid[4819]: HCI dev 0 up
Aug 30 09:54:49 clavijo sdpd[4822]: Bluetooth SDP daemon
Aug 30 10:14:30 clavijo pand[4836]: Bluetooth PAN daemon
Aug 30 10:14:36 clavijo pand[4837]: New connection from 00:80:5A:20:6E:26
bnep0
Aug 30 10:14:36 clavijo /etc/hotplug/net.agent: invoke ifup bnep0

in client:
Bluetooth HCI daemon
HCI dev 0 up
Bluetooth SDP daemon
Bluetooth PAN daemon
connecting to 00:11:22:33:44:55
bnep0 connected
/etc/hotplug/net.agent: invoke ifup bnep0

I don't know if i do something wrong.


thanks and regards

_________________________________________________________________
?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras en
MSN Motor. http://motor.msn.es/researchcentre/



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2004-08-30 11:30:52

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] PAN profile of bluetooth

Hi,

> I want to connect 2 pc using the PAN profile. I do this things:
>
> - In server and client:
>
> insmod rfcomm
> insmod l2cap
> insmod bnep
>
> hcid -n &
> sdpd -n &
> sdptool add LAN

there is no "sdptool add", because pand can do this by itself. And btw
you said you wanted PAN and not LAN access using PPP.

> - In the server:
> The file hcid.conf : lm accept,master;
> in the console : pand --listen --role GN
>
> - In the client:
> The file hcid.conf : lm accept,master;
> in the console : pand --connect 00:11:22:33:44:55

This will never work, because only one can be the master. Don't use the
hcid.conf for setting the master role. Use --master on the server side
call of pand.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-09-06 14:59:34

by blookk -

[permalink] [raw]
Subject: RE: [Bluez-devel] PAN profile of bluetooth


Hello Rich

I haven't got the /etc/bluetooth/pan/dev-up file, but I make a ping
192.168.40.1 and it works correctly.

regards



>From: "Williams, Richard"
<[email protected]>
>To: "blookk -"
<[email protected]>,<[email protected]>
>Subject: RE: [Bluez-devel] PAN profile of bluetooth
>Date: Mon, 30 Aug 2004 11:51:08 -0400
>
>Hello,
>
>Did you make sure the /etc/bluetooth/pan/dev-up file is correct and
present
>on both your devices, master and slave ? If this file isn't there, you
won't
>get the bnep process started.
>
>Regard,
>
>Rich
>

_________________________________________________________________
Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos
incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis.
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel