Difference between revisions of "TCP/IP with Bluetooth"
From ArmadeusWiki
m (→Installation) |
(→Links) |
||
Line 74: | Line 74: | ||
* http://bluez.sourceforge.net/contrib/HOWTO-PAN | * http://bluez.sourceforge.net/contrib/HOWTO-PAN | ||
* http://www.elinux.org/Bluetooth_Network | * http://www.elinux.org/Bluetooth_Network | ||
+ | |||
+ | [[Category:Bluetooth]] |
Latest revision as of 17:02, 29 March 2011
Page under construction... Informations on this page are not guaranteed !!
Installation
As we use BlueZ 3.x you will need to install the following package: bluez-compat
$ sudo apt-get install bluez-compat
BlueZ 3.x compatibility binaries. This package provides the legacy binaries that were reminiscent of the BlueZ 3.x pairing methods...
The provided binaries are: hidd dund pand
Usage
- Configure APF as "server":
# modprobe bnep ... # pand --listen --role NAP
- Connect Host PC:
$ modprobe bnep $ hcitool scan Scanning ... 00:19:88:xx:xx:xx APF $ pand --connect 00:19:88:xx:xx:xx
- Check connection is done on APF
# hcitool con Connections: > ACL 00:19:0E:06:44:45 handle 42 state 1 lm SLAVE # ifconfig bnep0 bnep0 Link encap:Ethernet HWaddr 00:19:88:xx:xx:xx BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- Fix IP adresses on APF and on PC:
# ifconfig bnep0 10.1.0.1
$ ifconfig bnep0 10.1.0.2
- Check it is working:
$ ping 10.1.0.1 PING 10.1.0.1 (10.1.0.1) 56(84) bytes of data. 64 bytes from 10.1.0.1: icmp_seq=1 ttl=64 time=43.9 ms 64 bytes from 10.1.0.1: icmp_seq=2 ttl=64 time=13.2 ms ...
# ifconfig bnep0 bnep0 Link encap:Ethernet HWaddr 00:19:88:2B:56:3D inet addr:10.1.0.1 Bcast:10.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::219:88ff:fe2b:563d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:826 (826.0 B) TX bytes:1022 (1022.0 B)
- If you have sshd running on the APF and created the guest account then you can try:
$ ssh guest@10.1.0.1