Difference between revisions of "TCP/IP with Bluetooth"
From ArmadeusWiki
(creation) |
m (→Installation) |
||
Line 6: | Line 6: | ||
$ sudo apt-get install bluez-compat | $ sudo apt-get install bluez-compat | ||
</pre> | </pre> | ||
− | ''BlueZ 3.x compatibility binaries | + | ''BlueZ 3.x compatibility binaries. This package provides the legacy binaries that were reminiscent of the BlueZ 3.x pairing methods...''<br> |
− | This package provides the legacy binaries that were reminiscent of the BlueZ 3.x pairing methods...The provided binaries are: | + | ''The provided binaries are: hidd dund pand'' |
− | hidd dund pand'' | + | |
− | + | ||
==Usage== | ==Usage== |
Revision as of 15:39, 10 May 2010
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