Changes between Version 2 and Version 3 of HowTo/Bluetooth/UsingCL


Ignore:
Timestamp:
May 9, 2007, 10:55:58 AM (17 years ago)
Author:
harisk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/Bluetooth/UsingCL

    v2 v3  
    11= Using Bluetooth from the command line =
     2
     3== pand ==
     4
     5The daemon responsible for Personal Area Networks. Example:
     6
     7Set infrastructure mode: node1-1 as the master and node1-2 as the slave:
     8
     9{{{
     10node1-1:~# pand --listen -role NAP --master --autozap
     11node1-1:~# ifconfig bnep0 192.168.1.1
     12node1-1:~# ping 192.168.1.2
     13PING 192.168.1.2 (192.168.1.2): 56 data bytes
     1464 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=53.0 ms
     15}}}
     16
     17{{{
     18node1-2:~# pand --connect 00:0A:3A:53:D4:82 --service NAP --autozap
     19node1-2:~# ifconfig bnep0 192.168.1.2
     20node1-2:~# ping 192.168.1.1
     21PING 192.168.1.1 (192.168.1.1): 56 data bytes
     2264 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=74.9 ms
     2364 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=39.6 ms
     24}}}
     25
     26Useful link:
     27
     28http://bluez.sourceforge.net/contrib/HOWTO-PAN
    229
    330== hci, hciconfig, and hcitool ==
     
    4269To Do.
    4370
    44 == pand ==
    45 
    46 The daemon responsible for Personal Area Networks. Example:
    47 
    48 Set infrastructure mode: node1-1 as the master and node1-2 as the slave:
    49 
    50 {{{
    51 node1-1:~# pand --listen -role NAP --master --autozap
    52 node1-1:~# ifconfig bnep0 192.168.1.1
    53 node1-1:~# ping 192.168.1.2
    54 PING 192.168.1.2 (192.168.1.2): 56 data bytes
    55 64 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=53.0 ms
    56 }}}
    57 
    58 {{{
    59 node1-2:~# pand --connect 00:0A:3A:53:D4:82 --service NAP --autozap
    60 node1-2:~# ifconfig bnep0 192.168.1.2
    61 node1-2:~# ping 192.168.1.1
    62 PING 192.168.1.1 (192.168.1.1): 56 data bytes
    63 64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=74.9 ms
    64 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=39.6 ms
    65 }}}
    66 
    67 == A usefull link ==
    68 
    69 http://bluez.sourceforge.net/contrib/HOWTO-PAN