PAN (usb-bluetooth <--> PocketPC)
Aben Siatris
aben na webcom.sk
Středa Duben 7 10:53:13 CEST 2004
vlastnim PocketPC a na svojom linux desktope mam
pripojeny usb-bluetooth dongle. spojenie funguje
bez problemov, napriklad prenasam subory i pomocou
kdebluetooth frameworku.
rad by som vsak pripojil PocketPC pomocou PAN
na internet cez bluetooth.
po chvili snazenia sa mi podarilo rozbehnut pand
dund inicializacnym scriptom /etc/init.d/bluetooth_pan
bash-2.05b# more /etc/init.d/bluetooth_pan
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License, v2 or later
depend() {
need bluetooth
}
start() {
local RETVAL
ebegin "Starting Bluetooth PAN"
[ -x /usr/bin/pand ] && \
start-stop-daemon --start --quiet --exec /usr/bin/pand --\
--listen --role NAP
RETVAL=$?
[ $RETVAL -a -x /usr/bin/dund ] && \
start-stop-daemon --start --quiet --exec /usr/bin/dund --\
--listen --msdun call dun
RETVAL=$?
eend ${RETVAL}
}
stop() {
local RETVAL
ebegin "Shutting down Bluetooth PAN"
[ -x /usr/bin/pand ] && \
start-stop-daemon --stop --quiet --exec /usr/bin/pand
RETVAL=$?
[ -x /usr/bin/dund ] && \
start-stop-daemon --stop --quiet --exec /usr/bin/dund
RETVAL=$?
eend ${RETVAL}
}
connect z PocketPC na PC sa mi dari, vsetko prebieha v poriadku az jednoducho
na to ze pomocou ifconfig nevidim ziadne nove sietove zariadenie :-O
Z pocketPC pristup na internet nemam, iba vo /var/log/messages je hlaska:
Apr 7 10:52:40 gentoo_aben pand[9762]: New connection from 08:00:28:84:C2:E4 bnep0
a to je vsetko. teraz skutocne neviem ako dalej, poradi niekto?
Další informace o konferenci Linux