查看“使用蓝牙连接NokiaN70”的源代码
来自Ubuntu中文
←
使用蓝牙连接NokiaN70
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 使用蓝牙连接 Nokia N70 == 原文出处:http://godiane.wordpress.com/2006/07/30/connecting-ubuntu-and-nokia-n70-using-bluetooth-and-obex/ 原文作者:Diane 授权许可: * [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证] 翻译人员:spider5 校正人员: 贡献人员: 适用版本: 文章状态:等待校正 ---- 这是我写的怎样连接我的手机和笔记本上的Ubuntu系统的方法: *. 确信您的Ubuntu已经安装了bluez-utils。您可以使用新立得下载,或者代之以<code><nowiki>sudo apt-get install bluez-utils</nowiki></code>; *. 执行<code><nowiki>sudo /etc/init.d/bluez-utils restart</nowiki></code>重启您的蓝牙服务; *. 执行<code><nowiki>hcitool scan</nowiki></code>检查您的笔记本是否能发现手机设备。在我的上面会提示类似这样的信息: Scanning ... 00:13:B0:32:31:00 Diane Gonzales *. 使用<code><nowiki>sdptool browse <bluetooth-ID>(i.e.00:13:B0:32:31:00)</nowiki></code>命令浏览您的电话服务; 提示的信息如下: <pre><nowiki> Service Name: Hands-Free Audio Gateway Service RecHandle: 0x10000 Service Class ID List: "Handfree Audio Gateway" (0x111f) "Generic Audio" (0x1203) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 1 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Handfree Audio Gateway" (0x111f) Version: 0x0101 Service Name: Headset Audio Gateway Service RecHandle: 0x10001 Service Class ID List: "Headset Audio Gateway" (0x1112) "Generic Audio" (0x1203) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 2 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Headset" (0x1108) Version: 0x0100 Service Name: OBEX File Transfer Service RecHandle: 0x10002 Service Class ID List: "OBEX File Transfer" (0x1106) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 10 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "OBEX File Transfer" (0x1106) Version: 0x0100 Service Name: SyncMLClient Service RecHandle: 0x10003 Service Class ID List: "Error: This is UUID-128" (0x00000002-0000-1000-8000-0002ee000002) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 11 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Error: This is UUID-128" (0x00000002-0000-1000-8000-0002ee000002) Version: 0x0100 Service Name: Nokia OBEX PC Suite Services Service RecHandle: 0x10004 Service Class ID List: "Error: This is UUID-128" (0x00005005-0000-1000-8000-0002ee000001) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 12 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile DescriptorList: "Error: This is UUID-128" (0x00005005-0000-1000-8000-0002ee000001) Version: 0x0100 Service Name: OBEX Object Push Service RecHandle: 0x10005 Service Class ID List: "OBEX Object Push" (0x1105) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 9 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "OBEX Object Push" (0x1105) Version: 0x0100 Service Name: Imaging Service RecHandle: 0x10006 Service Class ID List: "Imaging Responder" (0x111b) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 15 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Imaging" (0x111a) Version: 0x0100 Service Name: Dial-Up Networking Service RecHandle: 0x10007 Service Class ID List: "Dialup Networking" (0x1103) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 3 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Dialup Networking" (0x1103) Version: 0x0100 </nowiki></pre> *. 设置您的rfcomm <pre><nowiki> vi /etc/bluetooth/rfcomm.conf</nowiki></pre> 我把它改成这样: <pre><nowiki> rfcomm0 { bind yes; device 00:13:B0:32:31:00; # Bluetooth address of the device channel 14; # RFCOMM channel for the connection comment "Diane Gonzales"; # Description of the connection } rfcomm3 { bind yes; device 00:13:B0:32:31:00; channel 10; comment "OBEX File Transfer"; } </nowiki></pre> '''注意'''粗体字母要一致: <pre><nowiki> Service Name: OBEX File Transfer Service RecHandle: 0x10002 Service Class ID List: “OBEX File Transfer” (0×1106) Protocol Descriptor List: “L2CAP” (0×0100) “RFCOMM” (0×0003) Channel: 10 “OBEX” (0×0008) Language Base Attr List: code_ISO639: 0×454e encoding: 0×6a base_offset: 0×100 Profile Descriptor List: “OBEX File Transfer” (0×1106) Version: 0×0100 </nowiki></pre> 和 <pre><nowiki> rfcomm3{ bind yes; device 00:13:B0:32:31:00; channel 10; comment “OBEX File Transfer”; } </nowiki></pre> *. 重启bluez-utils. *. 在命令提示符下输入下列命令: <pre><nowiki> rfcomm release 3 rfcomm connect 3 </nowiki></pre> 您的手机将会有反应。按照手机上的指示做,两者就连上了! *. 您要想能从手机上传送文件,这样做: <pre><nowiki> gnome-obex-server </nowiki></pre> <pre><nowiki> sudo vi /etc/bluetooth/hcid.conf </nowiki></pre> 翻到'''Device'''小节,把其中内容改成: <pre><nowiki> class 0x100100 </nowiki></pre> 就可以了,:) ----
返回
使用蓝牙连接NokiaN70
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息