All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] scanning possible, but no l2ping?
@ 2005-01-29  3:25 Franz Coriand
  2005-01-29  3:33 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Franz Coriand @ 2005-01-29  3:25 UTC (permalink / raw)
  To: BlueZ-Mailingliste

[-- Attachment #1: Type: text/plain, Size: 2909 bytes --]

Hi,

My problem with my two bluetooth adapter is, it's possible to scan the
area und I get the right result, but it isn't possible to execute l2ping?
I've a desktop computer and my crappy linux watch ... only with the
desktop i've hcidump yet.
I hope it is something with the config wrong?!

Franz

DESKTOP:
========

[root@dervish root]# hciconfig -a
hci0:   Type: USB
        BD Address: 00:0F:3D:0B:EE:6C ACL MTU: 192:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN AUTH ENCRYPT
        RX bytes:1004 acl:0 sco:0 events:31 errors:0
        TX bytes:379 acl:0 sco:0 commands:21 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: HOLD SNIFF PARK
        Link mode: ACCEPT MASTER
        Name: 'dervish-0'
        Class: 0x120104
        Service Classes: Networking, Object Transfer
        Device Class: Computer, Desktop workstation
        HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver:
0x20d
        Manufacturer: Cambridge Silicon Radio (10)

[root@dervish root]# hcitool scan
Scanning ...
        00:60:57:01:10:AE       WatchPad_15

[root@dervish root]# l2ping 00:60:57:01:10:AE
Can't connect.: Connection timed out

hcidump (desktop) during  try to execute l2ping from desktop to watch:
------------------------------------------------------------------------
[root@dervish sbin]# ./hcidump
HCIDump - HCI packet analyzer ver 1.5
device: hci0 snap_len: 1028 filter: 0xffffffff


< HCI Command: Create Connection(0x01|0x0005) plen 13
 > HCI Event: Command Status(0x0f) plen 4
 > HCI Event: Link Key Request(0x17) plen 6
 > HCI Event: Connect Complete(0x03) plen 11



WATCH:
======

# ./hciconfig -a
hci0:   Type: UART
        BD Address: 00:60:57:01:10:AE ACL MTU: 384:80  SCO MTU: 128:80
        UP RUNNING PSCAN ISCAN
        RX bytes:172 acl:0 sco:0 events:17 errors:0
        TX bytes:80 acl:0 sco:0 commands:17 errors:0
        Features: 0xff 0xff 0x09 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy:
        Link mode: SLAVE ACCEPT
        Name: 'WatchPad_15'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Ver: 1.1 (0x1) HCI Rev: 0xbc LMP Ver: 1.1 (0x1) LMP Subver: 0xbc
        Manufacturer: Cambridge Silicon Radio (10)


# ./hcitool scan
Scanning ...
        00:0F:3D:0B:EE:6C       dervish-0

# ./l2ping 00:0F:3D:0B:EE:6C
Can't connect.: Connection timed out


hcidump (desktop) during  try to execute l2ping from watch to desktop:
------------------------------------------------------------------------
 > HCI Event: Connect Request(0x04) plen 10
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
 > HCI Event: Command Status(0x0f) plen 4
 > HCI Event: Link Key Request(0x17) plen 6
 > HCI Event: Role Change(0x12) plen 8
 > HCI Event: Connect Complete(0x03) plen 11


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] scanning possible, but no l2ping?
  2005-01-29  3:25 [Bluez-users] scanning possible, but no l2ping? Franz Coriand
@ 2005-01-29  3:33 ` Marcel Holtmann
  2005-01-29  3:43   ` Franz Coriand
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2005-01-29  3:33 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Franz,

> My problem with my two bluetooth adapter is, it's possible to scan the
> area und I get the right result, but it isn't possible to execute l2ping?
> I've a desktop computer and my crappy linux watch ... only with the
> desktop i've hcidump yet.
> I hope it is something with the config wrong?!
> 
> Franz
> 
> DESKTOP:
> ========
> 
> [root@dervish root]# hciconfig -a
> hci0:   Type: USB
>         BD Address: 00:0F:3D:0B:EE:6C ACL MTU: 192:8  SCO MTU: 64:8
>         UP RUNNING PSCAN ISCAN AUTH ENCRYPT
>         RX bytes:1004 acl:0 sco:0 events:31 errors:0
>         TX bytes:379 acl:0 sco:0 commands:21 errors:0
>         Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
>         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
>         Link policy: HOLD SNIFF PARK
>         Link mode: ACCEPT MASTER
>         Name: 'dervish-0'
>         Class: 0x120104
>         Service Classes: Networking, Object Transfer
>         Device Class: Computer, Desktop workstation
>         HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver:
> 0x20d
>         Manufacturer: Cambridge Silicon Radio (10)
> 
> [root@dervish root]# hcitool scan
> Scanning ...
>         00:60:57:01:10:AE       WatchPad_15
> 
> [root@dervish root]# l2ping 00:60:57:01:10:AE
> Can't connect.: Connection timed out
> 
> hcidump (desktop) during  try to execute l2ping from desktop to watch:
> ------------------------------------------------------------------------
> [root@dervish sbin]# ./hcidump
> HCIDump - HCI packet analyzer ver 1.5
> device: hci0 snap_len: 1028 filter: 0xffffffff
> 
> 
> < HCI Command: Create Connection(0x01|0x0005) plen 13
>  > HCI Event: Command Status(0x0f) plen 4
>  > HCI Event: Link Key Request(0x17) plen 6
>  > HCI Event: Connect Complete(0x03) plen 11

you set your desktop device into security mode 3. Is this what you
really want?

It seems that hcid is not running, start it.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] scanning possible, but no l2ping?
  2005-01-29  3:33 ` Marcel Holtmann
@ 2005-01-29  3:43   ` Franz Coriand
  2005-01-29  3:50     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Franz Coriand @ 2005-01-29  3:43 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 2300 bytes --]

Marcel Holtmann schrieb:

>>My problem with my two bluetooth adapter is, it's possible to scan the
>>area und I get the right result, but it isn't possible to execute l2ping?
>>I've a desktop computer and my crappy linux watch ... only with the
>>desktop i've hcidump yet.
>>I hope it is something with the config wrong?!
>>
>>Franz
>>
>>DESKTOP:
>>========
>>
>>[root@dervish root]# hciconfig -a
>>hci0:   Type: USB
>>        BD Address: 00:0F:3D:0B:EE:6C ACL MTU: 192:8  SCO MTU: 64:8
>>        UP RUNNING PSCAN ISCAN AUTH ENCRYPT
>>        RX bytes:1004 acl:0 sco:0 events:31 errors:0
>>        TX bytes:379 acl:0 sco:0 commands:21 errors:0
>>        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
>>        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
>>        Link policy: HOLD SNIFF PARK
>>        Link mode: ACCEPT MASTER
>>        Name: 'dervish-0'
>>        Class: 0x120104
>>        Service Classes: Networking, Object Transfer
>>        Device Class: Computer, Desktop workstation
>>        HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver:
>>0x20d
>>        Manufacturer: Cambridge Silicon Radio (10)
>>
>>[root@dervish root]# hcitool scan
>>Scanning ...
>>        00:60:57:01:10:AE       WatchPad_15
>>
>>[root@dervish root]# l2ping 00:60:57:01:10:AE
>>Can't connect.: Connection timed out
>>
>>hcidump (desktop) during  try to execute l2ping from desktop to watch:
>>------------------------------------------------------------------------
>>[root@dervish sbin]# ./hcidump
>>HCIDump - HCI packet analyzer ver 1.5
>>device: hci0 snap_len: 1028 filter: 0xffffffff
>>
>>
>>< HCI Command: Create Connection(0x01|0x0005) plen 13
>> > HCI Event: Command Status(0x0f) plen 4
>> > HCI Event: Link Key Request(0x17) plen 6
>> > HCI Event: Connect Complete(0x03) plen 11
>>
>>
Securty Mode 3 is not safty, isn't it ;) My problem is, I need a f***
connection between Watch and computer for a special live-demo in a
closed lab.
And the next problem is that pairing doesn't work with the watch, so I
turned everything off. So all I need is just a connection to send tcp
packages - I don't care about the secury.

... hcid is running ...

[root@dervish root]# ps -afe | grep -v grep | grep -i hcid
root      2374     1  0 19:46 ?        00:00:00 hcid: processing events

Franz

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] scanning possible, but no l2ping?
  2005-01-29  3:43   ` Franz Coriand
@ 2005-01-29  3:50     ` Marcel Holtmann
  2005-01-29  4:40       ` Franz Coriand
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2005-01-29  3:50 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Franz,

> Securty Mode 3 is not safty, isn't it ;) My problem is, I need a f***
> connection between Watch and computer for a special live-demo in a
> closed lab.

the security mode 3 is not more safe than security mode 2.

> And the next problem is that pairing doesn't work with the watch, so I
> turned everything off. So all I need is just a connection to send tcp
> packages - I don't care about the secury.

You must switch "auth" and "encrypt" off on _both_ sides. If one device
is in security mode 3 than the other must follow. This is how security
mode 1 is definied in the specification.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] scanning possible, but no l2ping?
  2005-01-29  3:50     ` Marcel Holtmann
@ 2005-01-29  4:40       ` Franz Coriand
  0 siblings, 0 replies; 5+ messages in thread
From: Franz Coriand @ 2005-01-29  4:40 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

Thanks for you quick answer ... it seems to working now :)

Franz

Marcel Holtmann schrieb:

>Hi Franz,
>
>
>
>>Securty Mode 3 is not safty, isn't it ;) My problem is, I need a f***
>>connection between Watch and computer for a special live-demo in a
>>closed lab.
>>
>>
>
>the security mode 3 is not more safe than security mode 2.
>
>
>
>>And the next problem is that pairing doesn't work with the watch, so I
>>turned everything off. So all I need is just a connection to send tcp
>>packages - I don't care about the secury.
>>
>>
>
>You must switch "auth" and "encrypt" off on _both_ sides. If one device
>is in security mode 3 than the other must follow. This is how security
>mode 1 is definied in the specification.
>
>Regards
>
>Marcel
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>Tool for open source databases. Create drag-&-drop reports. Save time
>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-29  4:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-29  3:25 [Bluez-users] scanning possible, but no l2ping? Franz Coriand
2005-01-29  3:33 ` Marcel Holtmann
2005-01-29  3:43   ` Franz Coriand
2005-01-29  3:50     ` Marcel Holtmann
2005-01-29  4:40       ` Franz Coriand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.