³]©w³s½uµ{¦¡
¤U¦C¥Îªk¥u¬O¥Ü½d¥Î¡A¨Ò¦p PIN code ¬OÄÝ©ó¦Û©wªº¼ÆÈ¡A¥un server ºÝ¤Î client ºÝ³]©w¦¨¤@¼Ëªº´N¥i¥H
PS. ¥Ø«eªº¤èªk¡A¦b«Ø¥ß ppp ³s½u®É¡Aserver ºÝ¨Ã¤£·|µ¥¤Ó¤[¡A©Ò¥H«ØÄ³
/usr/sbin/pppd /dev/bty0 & °õ¦æ¤§«á¡A¾¨§Ö°õ¦æ client ºÝªº
/usr/sbin/pppd /dev/bty0 115200 192.168.0.1:192.168.0.2 &
¥ý¨Ï¥Î btctl addpin default
PS. ¦b bind /dev/bty* ªº®ÉÔ¡Aaffix ¦b iPAQ ¸ò¤@¯ë PC ¤Wªº³B²z¤èªk²¤¦³¤£¦P¡A
¦b iPAQ ¤W¬O¥ý bind /dev/bty0¡A¦ý¦b¤@¯ë PC ¤W¡A¬O¥ý bind /dev/bty1
(¦Ü¤Ö¦b§Úªº notebook ¤W¬O¥ý bind /dev/bty1)
°õ¦æµ²ªG:
|
sh-2.03# btctl addpin default 1457 sh-2.03# btsrv -d btsrv: main: btsrv Affix 1.2.4-pre1 started!!! GUI is not available... PIN helper disabled btsrv: main: SDP server is used Affix Bluetooth RFCOMM Protocol loaded (affix_rfcomm) Copyright (C) 2001, 2002 Nokia Corporation Written by Dmitry Kasatkin btsrv: start_service: Bound service Serial Port to server channel 1 btsrv: start_service: Bound service Dialup Networking to server channel 2 btsrv: start_service: Bound service LAN Access to server channel 3 btsrv: start_service: Bound service OBEX File Transfer to server channel 4 btsrv: start_service: Bound service OBEX Object Push to server channel 5 sh-2.03# /usr/sbin/pppd /dev/bty0 & sh-2.03# CSLIP: code copyright 1989 Regents of the University of California PPP generic driver version 2.4.1 devfs_register(ppp): could not append to parent, err: -17 Using interface ppp0 Connect: ppp0 <--> /dev/bty0 local IP address 192.168.0.2 remote IP address 192.168.0.1 |
For Example:
|
sh-2.03# btctl discovery 4 Searching 4 sec ... Searching done. Resolving names ... done. +1: Address: 01:02:03:04:05:06, Class: 0x820110, Key: "no", Name: "familiar" Computer (Handheld PC/PDA) [Networking,Information] +2: Address: 01:02:03:04:05:07, Class: 0x00010C, Key: "no", Name: "Justin's R32 Bluetooth" Computer (Laptop) ] sh-2.03# btctl addpin 1 1457 sh-2.03# btctl pair 1 sh-2.03# btctl connect 1 SERial Connecting to host 01:02:03:04:05:06 ... Service found on channel 1 Connecting to channel 1 ... Affix Bluetooth RFCOMM Protocol loaded (affix_rfcomm) Copyright (C) 2001, 2002 Nokia Corporation Written by Dmitry Kasatkin Connected. Bound to line 0 [/dev/bty0]. sh-2.03# /usr/sbin/pppd /dev/bty0 115200 192.168.0.1:192.168.0.2 & sh-2.03# CSLIP: code copyright 1989 Regents of the University of California PPP generic driver version 2.4.1 devfs_register(ppp): could not append to parent, err: -17 Using interface ppp0 Connect: ppp0 <--> /dev/bty0 local IP address 192.168.0.1 remote IP address 192.168.0.2 |
Reference: