打印

蓝牙适配器

[复制链接]
872|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
gzweiyan|  楼主 | 2008-10-9 16:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
伟研科技,蓝牙适配器
参数:
兼容Bluetooth V1.2/2.0;
支持Bluetooth V2.0+EDR;
内置天线;
有效通讯距离20米;
支持S3C2440/S3C2410/PXA270/PXA300平台;

使用样例:

开发板通过蓝牙手机联网:
[root@WEIYAN /]$ hciconfig hci0 up
[root@WEIYAN /]$ hciconfig 
hci0:   Type: USB
        BD Address: 2C:3D:4F:04:10:60 ACL MTU: 339:6 SCO MTU: 180:1
        UP RUNNING PSCAN ISCAN 
        RX bytes:637 acl:0 sco:0 events:16 errors:0
        TX bytes:60 acl:0 sco:0 commands:13 errors:0

[root@WEIYAN /]$ hcitool scan
Scanning ...
        00:1D:28:27:F7:C8       2008.

[root@WEIYAN /]$ rfcomm connect hci0 00:1D:28:27:F7:C8 7

[root@WEIYAN /]$ pppd call gprs
Initializing modem
Setting APN
Dialing...
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x76d171f4> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <auth chap MD5> <accomp> <pcomp> <asyncmap 0x0> <magic 

0xca0427c4>]
sent [LCP ConfAck id=0x2 <auth chap MD5> <accomp> <pcomp> <asyncmap 0x0> <magic 

0xca0427c4>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x76d171f4> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0x0 

<c4ade27330a92ecf5c653aeb48e106c7f41d92636019debf8cd5eadb7851b6b7248d425390898eafbc459a

cba8c1>, name = "Kermit"]
sent [CHAP Response id=0x0 <870e6184c4f1f1fd3336bc8e94a567ed>, name = "wap"]
rcvd [CHAP Success id=0x0 "Congratulations!"]
CHAP authentication succeeded: Congratulations!
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1]
sent [IPCP ConfNak id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 10.55.47.86>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.55.47.86>]
rcvd [IPCP ConfReq id=0x2]
sent [IPCP ConfAck id=0x2]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.55.47.86>]
Could not determine remote IP address: defaulting to 10.64.64.64
local  IP address 10.55.47.86
remote IP address 10.64.64.64
login[496]: root login on 'pts/1'

[root@WEIYAN /]$ ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.55.42.248  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:34 (34.0 B)  TX bytes:46 (46.0 B)

[root@WEIYAN /]$ ping www.google.com
PING www.google.com (66.249.89.104): 56 data bytes
64 bytes from 66.249.89.104: seq=0 ttl=243 time=646.8 ms
64 bytes from 66.249.89.104: seq=1 ttl=243 time=500.9 ms
64 bytes from 66.249.89.104: seq=2 ttl=243 time=877.5 ms
64 bytes from 66.249.89.104: seq=3 ttl=243 time=453.6 ms
64 bytes from 66.249.89.104: seq=4 ttl=243 time=469.1 ms
64 bytes from 66.249.89.104: seq=5 ttl=243 time=483.5 ms
64 bytes from 66.249.89.104: seq=6 ttl=243 time=498.8 ms
64 bytes from 66.249.89.104: seq=7 ttl=243 time=454.2 ms
64 bytes from 66.249.89.104: seq=8 ttl=243 time=1129.0 ms
64 bytes from 66.249.89.104: seq=9 ttl=243 time=665.2 ms
64 bytes from 66.249.89.104: seq=10 ttl=243 time=577.4 ms

--- www.google.com ping statistics ---
11 packets transmitted, 11 packets received, 0% packet loss
round-trip min/avg/max = 453.6/614.1/1129.0 ms

[root@WEIYAN /]$ time wget http://www.google.com/index.html
Connecting to www.google.com (66.249.89.104:80)
index.html           100% |*****************************|  5916    00:00:00 ETA
real    0m 4.61s
user    0m 0.01s
sys     0m 0.05s
[root@sunny /]$ ll index.html 
-rw-r--r--    1 root     root         5916 Oct  7 12:15 index.html

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

52

主题

146

帖子

0

粉丝