Skip to contentSkip to conversation

ipaq 1945

Bluez-users Nigel Magnay 5 participants 15 messages Sep 25, 2004 – Oct 1, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi there

I'm having a bit of trouble. I'm using kernel 2.6.8.1, and I'm trying to get my iPaq 1945 to be able to connect via bluetooth to the internet, though to start with I'm just trying to get it to connect to the host computer.

I think everything is working correctly - I have the stack up and running, I can get my bnep0 interface up, and assign it an ip address
- e.g. 192.168.1.56. I can then ping that address from linux, and I can browse it as an internet connection on my ipaq, and connect to it.

Problem is, neither IE nor Pocket puTTY can use the connection (I try to ssh to 192.168.1.55, my linux box). I don't know if I'm just missing something, but I've read all the guides and I'm just confused as to whether I'm trying something that isn't possible.

Has anyone got some pointers for me?

tia,
Nigel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Nigel,

Quoted 10 lines

I'm having a bit of trouble. I'm using kernel 2.6.8.1, and I'm trying to get my iPaq 1945 to be able to connect via bluetooth to the internet, though to start with I'm just trying to get it to connect to the host computer.

I think everything is working correctly - I have the stack up and running, I can get my bnep0 interface up, and assign it an ip address
- e.g. 192.168.1.56. I can then ping that address from linux, and I can browse it as an internet connection on my ipaq, and connect to it.

Quoted 4 lines

Problem is, neither IE nor Pocket puTTY can use the connection (I try to ssh to 192.168.1.55, my linux box). I don't know if I'm just missing something, but I've read all the guides and I'm just confused as to whether I'm trying something that isn't possible.

what kernel version do you use on your Linux machine?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

it's 2.6.8.1, built on FC2

Quoted 26 lines · Marcel Holtmann

Hi Nigel,

Quoted 10 lines

I'm having a bit of trouble. I'm using kernel 2.6.8.1, and I'm trying to get my iPaq 1945 to be able to connect via bluetooth to the internet, though to start with I'm just trying to get it to connect to the host computer.

I think everything is working correctly - I have the stack up and running, I can get my bnep0 interface up, and assign it an ip address
- e.g. 192.168.1.56. I can then ping that address from linux, and I can browse it as an internet connection on my ipaq, and connect to it.

Quoted 4 lines

Problem is, neither IE nor Pocket puTTY can use the connection (I try to ssh to 192.168.1.55, my linux box). I don't know if I'm just missing something, but I've read all the guides and I'm just confused as to whether I'm trying something that isn't possible.

what kernel version do you use on your Linux machine?

Regards

Marcel

maintainer
#3 lore raw

Hi Nigel,

Quoted 1 line

it's 2.6.8.1, built on FC2

my bad, was too late yesterday. What operating system is on the iPAQ 1945? Run a "hcidump -x" as root on your Linux machine. Did a previous kernel worked?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw
In reply to Nigel Magnay

Just a non-technical idea:

It took me two nights to find out that SuSE has a running firewall and every new interface like bnep0 *is* protected.....

Wood

----- Original Message -----
From: "Nigel Magnay" <[email protected]>
To: "Marcel Holtmann" <[email protected]>;
<[email protected]>
Sent: Sunday, September 26, 2004 10:12 AM
Subject: Re: [Bluez-users] ipaq 1945

Quoted 4 lines

it's 2.6.8.1, built on FC2

On Sun, 26 Sep 2004 01:09:18 +0200, Marcel Holtmann <[email protected]>

Quoted 28 lines · wrote:
Quoted 19 lines

Hi Nigel,

Quoted 10 lines

I'm having a bit of trouble. I'm using kernel 2.6.8.1, and I'm trying to get my iPaq 1945 to be able to connect via bluetooth to the internet, though to start with I'm just trying to get it to connect to the host computer.

I think everything is working correctly - I have the stack up and running, I can get my bnep0 interface up, and assign it an ip address
- e.g. 192.168.1.56. I can then ping that address from linux, and I can browse it as an internet connection on my ipaq, and connect to it.

Quoted 4 lines

Problem is, neither IE nor Pocket puTTY can use the connection (I try to ssh to 192.168.1.55, my linux box). I don't know if I'm just missing something, but I've read all the guides and I'm just confused as to whether I'm trying something that isn't possible.

Quoted 7 lines

what kernel version do you use on your Linux machine?

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw
In reply to Marcel Holtmann

I get this when the iPAQ connects - this is before I assign an IP to the bnep0 interface though

HCIDump - HCI packet analyzer ver 1.12
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

79 AF 80 3E 04 00 10 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
79 AF 80 3E 04 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

79 AF 80 3E 04 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
79 AF 80 3E 04 00 C2 A3 81 7E E7 06 52 8D 9D 8F 91 5C FF 3A 90 8A

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

00 79 AF 80 3E 04 00 00

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 00 79 AF 80 3E 04 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

00 28 00 79 AF 80 3E 04 00 01 01
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
28 00 0F 00

Quoted 1 line

HCI Event: Page Scan Repetition Mode Change (0x20) plen 7

79 AF 80 3E 04 00 01

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 6

01 0D 08 00 28 00
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
28 00 18 CC

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

28 00 05

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 0F 04

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d) plen 5

00 28 00 18 CC

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0040
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 20

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 8
    MTU 512 FlushTO 65535
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 17

    L2CAP(d): cid 0x0040 len 13 [psm 1]
        SDP SS Req: tid 0x0 len 0x8
          pat uuid-16 0x1116 (NAP)
          max 0x14
          cont 00
< ACL data: handle 0x0028 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 1]
        SDP SS Rsp: tid 0x0 len 0x9
          tot 0x1 cur 0x1 hndl 0x804db38
          cont 00
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 23

    L2CAP(d): cid 0x0040 len 19 [psm 1]
        SDP SA Req: tid 0x1 len 0xe
          hndl 0x804db38
          max 0x1f0
          aid(s) 0x0000 - 0xffff
          cont 00
< ACL data: handle 0x0028 flags 0x02 dlen 106
    L2CAP(d): cid 0x0040 len 102 [psm 1]
        SDP SA Rsp: tid 0x1 len 0x61
          cnt 0x5e
          aid 0x0000 (SrvRecHndl)
             uint 0x804db38
          aid 0x0001 (SrvClassIDList)
             < uuid-16 0x1116 (NAP) >
          aid 0x0004 (ProtocolDescList)
             < < uuid-16 0x0100 (L2CAP) uint 0xf > <
             uuid-16 0x000f (BNEP) uint 0x100 < uint 0x800 uint 0x806 > > >
          aid 0x0005 (BrwGrpList)
             < uuid-16 0x1002 (PubBrwsGrp) >
          aid 0x0009 (BTProfileDescList)
             < < uuid-16 0x1116 (NAP) uint 0x100 > >
          aid 0x0100 (SrvName)
             str "Network Access Point"

          cont 00
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0041
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0041 result 0 status 0
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 20

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 8
    MTU 1691 FlushTO 65535
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 4
    MTU 1691
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 11

    L2CAP(d): cid 0x0040 len 7 [psm 15]
      BNEP: Control(0x01|0)
        Setup Req(0x01) size 0x02 dst 0x1116(NAP) src 0x1115(PANU)
< ACL data: handle 0x0028 flags 0x02 dlen 8
    L2CAP(d): cid 0x0041 len 4 [psm 15]
      BNEP: Control(0x01|0)
        Setup Rsp(0x02) res 0x0000
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 28 00 01 00

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 85

    L2CAP(d): cid 0x0040 len 81 [psm 15]
      BNEP: Compressed DestOnly(0x04|0)
        dst 33:33:ff:80:af:79 [proto 0x86dd]
        60 00 00 00 00 20 00 01 00 00 00 00 00 00 00 00 00 00 00 00
        00 00 00 00 FF 02 00 00 00 00 00 00 00 00 00 01 FF 80 AF 79
        3A 00 05 02 00 00 01 00 83 00 20 B0 00 00 00 00 FF 02 00 00
        00 00 00 00 00 00 00 01 FF 80 AF 79
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 61

    L2CAP(d): cid 0x0040 len 57 [psm 15]
      BNEP: Compressed DestOnly(0x04|0)
        dst 33:33:00:00:00:02 [proto 0x86dd]
        60 00 00 00 00 08 3A FF 00 00 00 00 00 00 00 00 00 00 00 00
        00 00 00 00 FF 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02
        85 00 7B B8 00 00 00 00
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 77

    L2CAP(d): cid 0x0040 len 73 [psm 15]
      BNEP: Compressed DestOnly(0x04|0)
        dst 33:33:ff:80:af:79 [proto 0x86dd]
        60 00 00 00 00 18 3A FF 00 00 00 00 00 00 00 00 00 00 00 00
        00 00 00 00 FF 02 00 00 00 00 00 00 00 00 00 01 FF 80 AF 79
        87 00 DD 2F 00 00 00 00 FE 80 00 00 00 00 00 00 02 04 3E FF
        FE 80 AF 79
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 69

    L2CAP(d): cid 0x0040 len 65 [psm 15]
      BNEP: Compressed DestOnly(0x04|0)
        dst 33:33:00:00:00:02 [proto 0x86dd]
        60 00 00 00 00 10 3A FF FE 80 00 00 00 00 00 00 02 04 3E FF
        FE 80 AF 79 FF 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02
        85 00 9F 32 00 00 00 00 01 01 00 04 3E 80 AF 79
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 85

    L2CAP(d): cid 0x0040 len 81 [psm 15]
      BNEP: Compressed DestOnly(0x04|0)
        dst 33:33:ff:80:af:79 [proto 0x86dd]
        60 00 00 00 00 20 00 01 FE 80 00 00 00 00 00 00 02 04 3E FF
        FE 80 AF 79 FF 02 00 00 00 00 00 00 00 00 00 01 FF 80 AF 79
        3A 00 05 02 00 00 01 00 83 00 33 31 00 00 00 00 FF 02 00 00
        00 00 00 00 00 00 00 01 FF 80 AF 79
#6 lore raw
In reply to Wolfgang

Hm - don't think its that; I turned off all the firewall options when installing because I am behind a router.

It's odd because it all looks like it's working (in that it connects and information seems to flow), just that the ipaq doesn't seem to be able to talk to the linux box

Unless I've missed some additional step - I'm not running bridging or anything since I just wanted to try and talk to the host linux box - perhaps I should install those modules and give that a go.

Quoted 18 lines · Wolfgang

Just a non-technical idea:

It took me two nights to find out that SuSE has a running firewall and every new interface like bnep0 *is* protected.....

Wood

----- Original Message -----
From: "Nigel Magnay" <[email protected]>
To: "Marcel Holtmann" <[email protected]>; <[email protected]>
Sent: Sunday, September 26, 2004 10:12 AM
Subject: Re: [Bluez-users] ipaq 1945

Quoted 45 lines
Quoted 4 lines

it's 2.6.8.1, built on FC2

On Sun, 26 Sep 2004 01:09:18 +0200, Marcel Holtmann <[email protected]>

Quoted 38 lines · wrote:
Quoted 19 lines

Hi Nigel,

Quoted 10 lines

I'm having a bit of trouble. I'm using kernel 2.6.8.1, and I'm trying to get my iPaq 1945 to be able to connect via bluetooth to the internet, though to start with I'm just trying to get it to connect to the host computer.

I think everything is working correctly - I have the stack up and running, I can get my bnep0 interface up, and assign it an ip address
- e.g. 192.168.1.56. I can then ping that address from linux, and I can browse it as an internet connection on my ipaq, and connect to it.

Quoted 4 lines

Problem is, neither IE nor Pocket puTTY can use the connection (I try to ssh to 192.168.1.55, my linux box). I don't know if I'm just missing something, but I've read all the guides and I'm just confused as to whether I'm trying something that isn't possible.

Quoted 7 lines

what kernel version do you use on your Linux machine?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#7 lore raw

Hi Nigel,

Quoted 10 lines

Hm - don't think its that; I turned off all the firewall options when installing because I am behind a router.

It's odd because it all looks like it's working (in that it connects and information seems to flow), just that the ipaq doesn't seem to be able to talk to the linux box

Unless I've missed some additional step - I'm not running bridging or anything since I just wanted to try and talk to the host linux box - perhaps I should install those modules and give that a go.

please try some older kernel versions and see if one of them works, because the default filter setting has some side effects I haven't thought of so far.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#8 lore raw

I got a lot further, I can connect to my server now; I am just left with trying to understand why I can't get bridging to work.

I have:
- router (Internet, DHCP serving 192.168.1.{100-200}) (255.255.255.0)
- linux box, eth0 = 192.168.1.55 (fixed), bnep0 for bluetooth
- iPaq connecting to bluetooth

I can talk to the server by making bnep0 192.168.*2*.254 and fixing the IP address in the ipaq (or running a dchp server on linux as well), but it would be nice to not have to have another dchp server.

I had thought I could bridge the interfaces, but I have tried lots of things like
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 bnep0

but that just leads to aggravating things like the linux box dropping off the network altogether ..

Quoted 22 lines · Marcel Holtmann

Hi Nigel,

Quoted 10 lines

Hm - don't think its that; I turned off all the firewall options when installing because I am behind a router.

It's odd because it all looks like it's working (in that it connects and information seems to flow), just that the ipaq doesn't seem to be able to talk to the linux box

Unless I've missed some additional step - I'm not running bridging or anything since I just wanted to try and talk to the host linux box - perhaps I should install those modules and give that a go.

please try some older kernel versions and see if one of them works, because the default filter setting has some side effects I haven't thought of so far.

Regards

Marcel

maintainer
#9 lore raw

Hi Nigel,

Quoted 12 lines

I got a lot further, I can connect to my server now; I am just left with trying to understand why I can't get bridging to work.

I have:
- router (Internet, DHCP serving 192.168.1.{100-200}) (255.255.255.0)
- linux box, eth0 = 192.168.1.55 (fixed), bnep0 for bluetooth
- iPaq connecting to bluetooth

I can talk to the server by making bnep0 192.168.*2*.254 and fixing the IP address in the ipaq (or running a dchp server on linux as well), but it would be nice to not have to have another dchp server.

Quoted 8 lines

I had thought I could bridge the interfaces, but I have tried lots of things like
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 bnep0

but that just leads to aggravating things like the linux box dropping off the network altogether ..

look at the PAN howto. It has the correct commands to setup a bridge when you are using Bluetooth BNEP.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#10 lore raw
In reply to Nigel Magnay
Quoted 8 lines · Nigel Magnay

I had thought I could bridge the interfaces, but I have tried lots of things like
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 bnep0

but that just leads to aggravating things like the linux box dropping off the network altogether ..

The particular problem I had when I tried this a while ago now was that you need to be careful to use br0 as the interface anywhere you would normally use eth0 or bnep0. So for example if you're using DHCP you need to run it on br0 to give the IP address to that, or packets won't get routed properly (the Ethernet and IP routes aren't consistent). And so on.

This may be completely irrelevant and my memory is a bit faded.

pws

**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#11 lore raw

It seemed to be something similar:

I think I have it solved - The guide tells you you need to

	# brctl addif pan0 eth0
but for me I also need to 
                # ifconfig eth0 0.0.0.0
                # ifconfig pan0 192.168.1.55
                # ifconfig pan0 up
It was quite obvious once I realised how bridging must work!

I have it all woring but unrelatedly my box crashes in the bnep driver when the device disconnects... I get this on the console :

Debug: sleeping function called from invalid context ad include/asm/semaphore.h:119
in_atomic():1, irqs_disabled():0
__night_sleep+
sysfs_hash_and_remove
br_sysfs_removeif
br_del_if
br_device_event
notifier_call_chain

 unregister_netdevice+0x170/0x2ac
 unregister_netdev+0x18/0x30
 bnep_session+0x7ab/0x860 [bnep]
 schedule_tail+0x1e/0x70
 ret_from_fork+0x6/0x14
 default_wake_function+0x0/0x20
 bnep_session+0x0/0x860 [bnep]
 kernel_thread_helper+0x5/0x14

I suspect it's a problem with the bnep module rather than anything specific to the BlueZ stack..

Quoted 36 lines · Peter Stephenson
Quoted 8 lines · Nigel Magnay

I had thought I could bridge the interfaces, but I have tried lots of things like
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 bnep0

but that just leads to aggravating things like the linux box dropping off the network altogether ..

The particular problem I had when I tried this a while ago now was that you need to be careful to use br0 as the interface anywhere you would normally use eth0 or bnep0. So for example if you're using DHCP you need to run it on br0 to give the IP address to that, or packets won't get routed properly (the Ethernet and IP routes aren't consistent). And so on.

This may be completely irrelevant and my memory is a bit faded.

pws

**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#12 lore raw

Hi Nigel,

Quoted 21 lines

I have it all woring but unrelatedly my box crashes in the bnep driver when the device disconnects... I get this on the console :

Debug: sleeping function called from invalid context ad include/asm/semaphore.h:119
in_atomic():1, irqs_disabled():0
__night_sleep+
sysfs_hash_and_remove
br_sysfs_removeif
br_del_if
br_device_event
notifier_call_chain

 unregister_netdevice+0x170/0x2ac
 unregister_netdev+0x18/0x30
 bnep_session+0x7ab/0x860 [bnep]
 schedule_tail+0x1e/0x70
 ret_from_fork+0x6/0x14
 default_wake_function+0x0/0x20
 bnep_session+0x0/0x860 [bnep]
 kernel_thread_helper+0x5/0x14
Quoted 2 lines

I suspect it's a problem with the bnep module rather than anything specific to the BlueZ stack..

maybe a problem in the bridge code. Use the latest 2.6.9-rc2-bk14 and see if this crashes or not.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#13 lore raw
In reply to Nigel Magnay
Quoted 19 lines · Nigel Magnay

Debug: sleeping function called from invalid context ad include/asm/semaphore.h:119
in_atomic():1, irqs_disabled():0
__night_sleep+
sysfs_hash_and_remove
br_sysfs_removeif
br_del_if
br_device_event
notifier_call_chain

 unregister_netdevice+0x170/0x2ac
 unregister_netdev+0x18/0x30
 bnep_session+0x7ab/0x860 [bnep]
 schedule_tail+0x1e/0x70
 ret_from_fork+0x6/0x14
 default_wake_function+0x0/0x20
 bnep_session+0x0/0x860 [bnep]
 kernel_thread_helper+0x5/0x14
Quoted 2 lines

I suspect it's a problem with the bnep module rather than anything specific to the BlueZ stack..

I have exactly the same problem and displays exactly the above Debug messages:

1. My Linux Server hosting BlueZ NAP crashes with blank console and frozen keyboard when a client BlueZ disconnects, reboots, or becomes out-of-range. This happens for clients with Linux or with Windows XP Pro. My server config is similar, namely:

a. bridge-router-firewall-bluez.
b. Linux 2.6.8.1-mm4-mh1 or
c. Linux 2.6.8.1-mm4-mh2 or
d. Linux 2.6.8.1-mh1 or
e. Linux 2.6.8.1-mh2 or
f. Linux 2.6.5 combo

Incidentally, this setup works very well other than this problem. I started running this setup 3 weeks ago with only this problem. My users can surf the net, use email, etc, with no other problem.

I tried using a Linux Server with nobridge-router-nofirewall-bluez and this problem of crashes disappears. But network admin is a bit more tedious without bridging.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#14 lore raw

Hi,

Quoted 53 lines
Quoted 18 lines

Debug: sleeping function called from invalid context ad include/asm/semaphore.h:119
in_atomic():1, irqs_disabled():0
__night_sleep+
sysfs_hash_and_remove
br_sysfs_removeif
br_del_if
br_device_event
notifier_call_chain

 unregister_netdevice+0x170/0x2ac
 unregister_netdev+0x18/0x30
 bnep_session+0x7ab/0x860 [bnep]
 schedule_tail+0x1e/0x70
 ret_from_fork+0x6/0x14
 default_wake_function+0x0/0x20
 bnep_session+0x0/0x860 [bnep]
 kernel_thread_helper+0x5/0x14
Quoted 2 lines

I suspect it's a problem with the bnep module rather than anything specific to the BlueZ stack..

I have exactly the same problem and displays exactly the above Debug messages:

1. My Linux Server hosting BlueZ NAP crashes with blank console and frozen keyboard when a client BlueZ disconnects, reboots, or becomes out-of-range. This happens for clients with Linux or with Windows XP Pro. My server config is similar, namely:

a. bridge-router-firewall-bluez.
b. Linux 2.6.8.1-mm4-mh1 or
c. Linux 2.6.8.1-mm4-mh2 or
d. Linux 2.6.8.1-mh1 or
e. Linux 2.6.8.1-mh2 or
f. Linux 2.6.5 combo

Incidentally, this setup works very well other than this problem. I started running this setup 3 weeks ago with only this problem. My users can surf the net, use email, etc, with no other problem.

I tried using a Linux Server with nobridge-router-nofirewall-bluez and this problem of crashes disappears. But network admin is a bit more tedious without bridging.

Quoted 9 lines

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users