'via Blog this'
*Working with Samsung Galaxy & Linux Mint*
Command
hcitool & friends — _see also_: apropos hcimint@t42 ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:25:45:cd:7c
inet addr:192.168.4.42 Bcast:192.168.4.255 Mask:255.255.255.0
inet6 addr: fe80::211:25ff:fe45:cd7c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17527 errors:0 dropped:0 overruns:0 frame:0
TX packets:18172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2179601 (2.1 MB) TX bytes:8487958 (8.4 MB)
eth1 Link encap:Ethernet HWaddr 00:0e:35:f1:28:94
inet addr:192.168.15.103 Bcast:192.168.15.255 Mask:255.255.255.0
inet6 addr: fe80::20e:35ff:fef1:2894/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:109895 errors:52 dropped:3075 overruns:0 frame:0
TX packets:86753 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114067221 (114.0 MB) TX bytes:11494701 (11.4 MB)
Interrupt:11 Base address:0x8000 Memory:c0210000-c0210fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13127 errors:0 dropped:0 overruns:0 frame:0
TX packets:13127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1255696 (1.2 MB) TX bytes:1255696 (1.2 MB)
pan1 Link encap:Ethernet HWaddr 46:fd:d4:16:43:d5
inet addr:10.87.148.1 Bcast:10.87.148.255 Mask:255.255.255.0
inet6 addr: fe80::44fd:d4ff:fe16:43d5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:13674 (13.6 KB)
mint@t42 ~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.15.1 0.0.0.0 UG 100 0 0 eth1
10.87.148.0 * 255.255.255.0 U 0 0 0 pan1
link-local * 255.255.0.0 U 1000 0 0 eth0
192.168.4.0 * 255.255.255.0 U 0 0 0 eth0
192.168.15.0 * 255.255.255.0 U 0 0 0 eth1
mint@t42 ~ $ hci
hciattach hciconfig hciemu hcitool hcitrace
mint@t42 ~ $ hcitool
hcitool - HCI Tool ver 4.98
Usage:
hcitool [options] [command parameters]
Options:
--help Display help
-i dev HCI device
Commands:
dev Display local devices
inq Inquire remote devices
scan Scan for remote devices
name Get name from remote device
info Get information from remote device
spinq Start periodic inquiry
epinq Exit periodic inquiry
cmd Submit arbitrary HCI commands
con Display active connections
cc Create connection to remote device
dc Disconnect from remote device
sr Switch master/slave role
cpt Change connection packet type
rssi Display connection RSSI
lq Display link quality
tpl Display transmit power level
afh Display AFH channel map
lp Set/display link policy settings
lst Set/display link supervision timeout
auth Request authentication
enc Set connection encryption
key Change connection link key
clkoff Read clock offset
clock Read local or remote clock
lescan Start LE scan
lewladd Add device to LE White List
lewlrm Remove device from LE White List
lewlsz Read size of LE White List
lewlclr Clear LE White list
lecc Create a LE Connection
ledc Disconnect a LE Connection
lecup LE Connection Update
For more information on the usage of each command use:
hcitool --help
mint@t42 ~ $
#NOTE: Issue 1416: Bluetooth DUN/PAN Tethering support
#12 pde...@gmail.com According to this FAQ, it shouldn't be too hard to make it work : http://sites.google.com/a/android.com/opensource/projects/bluetooth-faq $ ls ~/workspace/mydroid/external/bluez/utils/dund/ Android.mk dun.c dund.1 dund.h lib.h main.c Makefile.am Makefile.in msdun.c sdp.c Aug 6, 2009 #13 dola...@gmail.com In the worst case, you can still install this : https://code.google.com/p/android-wifi-tether/ wifi and bluetooth tethering. But I still think it would be great to be integrated in the OS by default :)
Debia Etch Bluetooth PAND How-To