Eee PC 上使用藍芽做檔案傳送及接收

January 5, 2008 – 9:29 pm

為了要在 Eee PC 上加上藍牙功能,就一定要安裝 kdebluetooth。
但是華碩用的是 Xandros 版的 KDE,版本什至命名方式跟 Debian 的有點不同,
所以不能直接安裝 Debian 版的 kdebluetooth,那就唯有拿源代碼來編繹了。
原來要編繹 kdebluetooth 比想像中難一點,因為 KDE 的開發所需的軟體也沒有,
所以要連 kdelibs, kdebase, kdeutils, kdepim 也一拼重新編繹才行。
忙了一天,終於完成了,使用方法如下:

先加上 XEPC.org 的軟體庫(方法參考以前的文章)。
再執行 sudo apt-get update 更新資料庫,最後執行 sudo apt-get install kdebluetooth
就會自動安裝全部所需要的東西了。

因為 Eee PC 不是使用正常的開機方式,dbus 跟 bluetooth 的服務都沒有開啟,所以,
想使用藍牙之前要在終端機輸入幾個指令來打開藍牙支援:
sudo /etc/init.d/dbus start
sudo /etc/init.d/bluetooth start
kbluetooth &
右下角會出現藍牙的圖示,用滑鼠右擊就可以打開 KBlueMon 程式來掃描藍牙手機了,
當然,你要先打開手機的藍牙。

可以傳送檔案到手機。

也可以接收檔案(先在右擊的選單中選擇本機為可偵測 - Discoverable )。

接收檔案速度不錯!

[1/2/2008]
更新一下,發現了原來 KDE bluetooth 是會看 /etc/bluetooth/hcid.conf 這個檔案的,配對也能運作了,
以前的 bluetooth 軟體在 hcid.conf 中會指定 passkey, 後來修改了用 agent 來做這個配對動作,
但 KDE bluetooth 原來沿用回舊方法,在 hcid.conf 中讀取了 passkey 選項來做配對。
所以只要在 hcid.conf 中的 “option” 段這樣放 passkey 進去就成了,改好後重新開機。
我的 /etc/bluetooth/hcid.conf 內容:

options {
autoinit yes;
security auto;
pairing multi;
passkey "0000";
}

device {
name “%h-%d”;
class 0×3e0100;
#pkt_type DH1,DM1,HV1;
iscan enable; pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}

Send post as PDF to PDF Creator | PDF Converter | PDF Software | Create PDF
  1. 52 Responses to “Eee PC 上使用藍芽做檔案傳送及接收”

  2. 非常正既藍牙檔案傳送。不知道可不可以連接手機來上網呢?

    By Daniel on Jan 7, 2008

  3. 連接手機上網需要配對,Eee PC 中沒有配對用的 PIN/Key helper.
    之前嘗試過,成功配對及撥號,不過要初學者用艱難了一點,正在找易用的方法。

    By lazyfai on Jan 7, 2008

  4. 請問一下!
    有沒有辦法,讓藍牙手機控制電腦丫!?
    (就像是 http://www.mobile01.com/topicdetail.php?f=110&t=16515&last=4323229 )

    By rexshue on Jan 8, 2008

  5. 問題同樣出在配對這個環節。
    KDE bluetooth 已支援用藍牙手機當滑鼠或者控制 openoffice presentation等,不過配對這一關要用之前提到的程式做…

    By lazyfai on Jan 9, 2008

  6. 小弟使用的還是原本的 linux, 感謝大大的方式, 目前再與手機間的傳輸看起來沒有問題, 但是, 若要由其他 nb 傳檔案過來給 eeepc, 對方雖然可以找到 eeepc, 但要傳檔案時就會要求要配對了( eeepc 沒有 GUI 就沒轍了)請大大快找到配對的 GUI 吧, 或者請告知是否有配對的方法或命令可試.

    明天在去借隻藍牙滑鼠來試試,看看是否可用.

    期待可以撥號的 GUI趕快出現, 那就可以買支 3.5G手機來上網了.

    By nakazima on Jan 9, 2008

  7. 謝謝大大,我也用原linux,希望大大能研究出如何使用gmlive或gsopcast

    By jack on Jan 9, 2008

  8. 在eeeuser forum找到一篇用藍牙上網的post,好像能夠經手機上網。我基本上看不懂,不知道老大可不可以解一解畫呢?

    http://forum.eeeuser.com/viewtopic.php?id=2280&p=1

    By Daniel on Jan 9, 2008

  9. 我看過了,不過怎樣做也連不到,如果這麼容易就好了。 :-(

    By lazyfai on Jan 10, 2008

  10. 請問係唔係唔support e-blue 新出o個隻slim的bluetooth手指ga ?
    因為我今日買了e-blue的bt 手指,但不能scan到我的手提,但用舊的那隻郤 無問題

    By Morris on Jan 13, 2008

  11. 想問是否不能用這個
    http://www.e-blue.jp/Product/ViewProduct.aspx?Ser_Id=309&Cat_ID=9

    ??

    By Morris on Jan 21, 2008

  12. 對不起, 因為沒有它的硬體資料, 不能肯定的答你。
    但你用舊的可以, 表示 Linux 正常看到 bluetooth 硬體, 新的看不到, 有2個可能, 一個是其實支援的, 但是驅動程式把它忽略了, 應該是因為這晶片是新的, 沒有在驅動程式源碼中定義吧, 另一個可能就是, 就是這晶片不能用現在的驅程式,就算加了這個晶片的型號進驅動程式, 但仍然不支援。

    By lazyfai on Jan 21, 2008

  13. i typed the steps u told me n after the last sentence typed kbluetooth & n its said” bash: kbluetooth:command not found
    how can i make it works??

    By Isabella on Jan 26, 2008

  14. Hi, FAI

    I finally can installed the function but when at last i typed th sudo /etc/init.d/bluetooth start kbluetooth &
    it shows [1] 16634
    n next line its said>Starting bluetooth: hcid sdpd sdp_options rfcomm
    what does it means?

    many thanks

    Isabella

    By Isabella on Jan 28, 2008

  15. 3 Lines:

    1. /etc/init.d/dbus start
    2. /etc/init.d/bluetooth start
    (you should see Starting bluetooth: hcid sdpd sdp_options rfcomm)
    3. kbluetooth &

    Then you should be able to see a bluetooth icon near bottom right corner.
    Step 1 and 2 can be skipped if you make use of /etc/fastservices as in other passage.

    By lazyfai on Jan 28, 2008

  16. Hi Fai,
    yes i can open the bluetooth:-konqueror
    window but the eeepc seems cannot recognise my sony ericsson p1i, is there any button that i can click again to make them receognise each other once more? i cannot get the window like your mobile recognise with your eeepc does as shown in your example.

    please help

    Isabella

    By Isabella on Jan 29, 2008

  17. May i ask is it still need to plug -in a bluetooth finger or something since when i move the cursor to the bluetooth logo on eeepc it show a box say ‘no bluetooth adapter’, then is it means needs to plug-in a usb bluetooth adapter??

    thanks

    Isabella

    By Isabella on Jan 29, 2008

  18. Yes you need bluetooth device plugged in…

    By lazyfai on Jan 29, 2008

  19. Fai,
    Many thanks
    Isabella

    By Isabella on Jan 29, 2008

  20. 關於Eeepc同手機配對:

    首先要感謝Asus、eeeuser.com、XEPC.org、和lazyfai。
    在eeeuser.com網頁看了一天、多少了解到好像要加一個「passkey-agent」的軟件。源碼在「/usr/share/doc/bluez-utils/examples」裏。本人在Debian Etch的電腦裏compile了。在Eeepc上試了。因為
    對籃牙不太熟、好像沒有問題。不太肯定:-)。方法是在Eeepc上執行:
    1、passkey-agent –default 1234&
    2、rfcomm connect 0 00:11:22:33:44:55:66
    3、你的手機就會問你要不要「GRANT」?
    4、鍵入「YES」
    5、手機就會問你「Password」?
    6、你就鍵入「1234」
    這樣就可以配對了。有興趣不仿一試。

    不知那裏可以上戴本人compile的程式?

    By nyu on Jan 30, 2008

  21. re: nyu
    這個我用 Slackware 上的藍牙配對 agent 成功了,不過考慮到新手可能遇到頗大的問題,所以一直在找 GUI 的程式。

    你可以把你的程式寄到我的 email : lazyfai@gmail.com

    By lazyfai on Jan 30, 2008

  22. 請問配對的 GUI 是否已經完成了呢?
    如果沒有 GUI, 寫成固定的 commend 或 config 是否可以呢??

    試過 藍牙滑鼠沒有成功, 與其他NB的溝通沒有配對的話, 別台 NB 無法傳檔案至 eeepc (但是 eeepc 可以傳檔案至其他 NB)

    By nakazima on Jan 31, 2008

  23. passkey-agent不是GUI程式。它是要在
    「Terminal Mode」中執行……..

    現在就Email給你。

    By nyu on Jan 31, 2008

  24. KDE 跟 GNOME 都有 GUI 的藍牙配對程式的,但是我仍然找不到怎樣可以加進去 Eee PC… 因為連在什麼包也不知道呢~ 要花一些時間研究一下。
    如果配對成功什至可以用來透過連線上網。

    By lazyfai on Jan 31, 2008

  25. 這是執行「passkey-agent」後的配對圖:
    http://farm3.static.flickr.com/2240/2232529608_d826dee36c.jpg

    By nyu on Jan 31, 2008

  26. 請問如何可以加圖?

    By nyu on Jan 31, 2008

  27. Hi,

    I have tried the passkey-agent, it can make my mobile recognise with the eeepc, but cannot fail the process of the password n my mobile finally said “link failed”, since inside the “Terminal Mode” its mentioned command not found but still my mobile can show the name of the eeepc on the search page since may be i did not get the source code? may be? if there is a process pictures that will help us alot
    thanks
    Isabella

    By Isabella on Jan 31, 2008

  28. There is no need to use passkey-agent to send/receive file, actually sending/receiving files no need to do the pair up process, please don’t do that, you can detect and send directly, like sending files to your friends’ mobile phone.
    What you need to do is ONLY running “kbluetooth”, and then you can use the right bottom side icon to start the sending and receiving file process.

    By lazyfai on Jan 31, 2008

  29. Hi Fai,
    I found that the link between my mobile n the eeepc did already exist b4 i apply nyu said’s command(bcoz i did create the link between them by using Fai mentioned command)
    however i was stucked by my mobile ask for the passward and i cannot get thru, does anyone know what’s the password of the command? or the password of the eeepc( not the one set at the first time of the eeepc set-up since i did tried my own password set in the eeepc)????

    Isabella

    By Isabella on Jan 31, 2008

  30. For myself, I didn’t create any pair with my mobile.
    What I have to do is exactly the steps in the tutorial.
    Afterward, I can scan the phone’s name, and then from the Eee PC, I select a file to send to the phone, on the phone side, just need to “accept” the file, then all things done.
    What is your phone model? I found that some of the phone need to do pair up before sending / receiving files but most of them don’t need.

    By lazyfai on Jan 31, 2008

  31. Hi Fai,

    Thanks i can do that with my SE p1i now i test with my photos transfering action n it works!! really thanks

    Isabella
    btw: i wish to go to the gathering this sat but i cannot need to work. may be next time

    By Isabella on Feb 1, 2008

  32. Hi Fai,

    i can link it up finally as i go to the terminal page n added one word then it can syn together now thanks for your help, and further now, i would like to know how can my eeepc surf on-line thru my mobile by using bluetooth?
    Many thanks
    Isabella

    By Isabella on Feb 2, 2008

  33. Fai,

    I tried to input the 3rd line but I get “kbluetooth & n its said” bash: kbluetooth:command not found”.

    Please help!!! I don’t see the bluetooth icon.

    Thanks in advance.

    Chas

    By Chas on Feb 22, 2008

  34. 重起這個問題,因為在 eeepc 900 上裝完 kdebluetooth 後執行 kbluetooth & 出現了錯誤視窗,” The application Kbluetooth crashed and caused the singal 11 ( SIGSEGV),請問是否是因為 eeepc 900有些什麼改變嗎??

    By Nakazima on Apr 25, 2008

  35. Re: Nakazime 請檢查有沒有在執行 dbus 跟 bluetooth 服務,在 /etc/fastservices 中應該要有 dbus 跟 bluetooth 2行。另外我發現在 Eee PC 900 上好像沒有了 bluetooth 相關的檔案…. 例如是 libbluetooth2.

    By lazyfai on Apr 25, 2008

  36. 有關 dbus 與 bluetooth start 的部份,確定是有做的,但是仍舊出現相同的錯誤訊息,因為目前 eeepc 開藍牙只有這種方式最有效,若這種方式無法使用,大概也就沒有其他解了,因為內文有提到需要重新編譯,所以猜測是某些元件在 eee 900 沒裝或是怎麼了,初步看到 libbluetooth2 在 synaptic 是有裝的,還要麻煩 lazyfai 大大再 check 一下囉

    By Nakazima on Apr 25, 2008

  37. 啊,還有一個方法檢查有沒有跑 dbus,在終端機看看,看看有沒有一些 dbus 程式在跑:
    ps -ax | grep dbus

    再看看有沒有 bluetooth 程式在跑:
    ps -ax | grep sdp

    By lazyfai on Apr 25, 2008

  38. 若 dbus 或 bluetooth 沒有在跑,會出現錯誤 window ( 不是 concole 內的錯誤),

    Can’t connect to DBus!
    Unable to start kbluetooth.
    Restart dbus and the bluetooth service

    所以請 lazyfai 大大在幫忙看一下 KDEbluetooth 的相關程式囉

    By Nakazima on Apr 28, 2008

  39. Re: Nakazima
    看來還是跟 dbus 有關,可以試試這樣跑:
    1. sudo /etc/init.d/dbus restart
    2. sudo /etc/init.d/bluetooth restart
    3. kbluetooth

    By lazyfai on Apr 28, 2008

  40. 不論是 start 或是 restart , 會出現以下異常視窗,請教 lazyfai 大大你的 eee 900 可以順利使用 kbluetooth 嗎?

    [URL=http://img233.imageshack.us/my.php?image=kbluetootherrorwn3.png][IMG]http://img233.imageshack.us/img233/752/kbluetootherrorwn3.th.png[/IMG][/URL]

    By Nakazima on Apr 28, 2008

  41. brother, failed on the last step with err :software package not found(无法找到软件包)“pls help….

    By bae on May 4, 2008

  42. Re: Nakazima
    測試過後,Eee PC 701 跟 900 的 kdebluetooth 都正常使用。

    By lazyfai on May 4, 2008

  43. 請問 lazyfai 大大,目前 kdebluetooth 使用的版本是哪一個呢?

    不管使用 apt-get install kdebluetooth 或是用 synaptic 安裝,都是1.0~beta8-3+eeepc1

    請問這個版本是正確的嗎?

    By Nakazima on May 7, 2008

  44. 小弟印象裡 701 以前是用 0.90 stable 版本的,不過因為 701 已經轉手,無法查到真正狀況

    但是現在如果要退版至 0.90 stable, synaptic 會跳出一堆套件要移除,所以不敢試

    想請 lazyfai 大大再確認一下到底哪個版本才能在 900 用?

    By Nakazima on May 12, 2008

  45. Re: Nakazima
    XEPC.org 軟體庫中 “http://updates.xepc.org/pool-main/k/kdebluetooth/”從來都只有一個版本,就是 1.0 beta8, 請問你以前用的版本是什麼地方來的呢? 如果是用 0.99 的話,這應該是從 Debian 那邊拿,的。

    By lazyfai on May 12, 2008

  46. 說真的已經不可考了,因為 701 已經換掉了

    真是可惜,從 701 開始用藍牙,進到 900 系列卻一直找不到 crash 的原因

    不曉得是不是太早灌上 eeepc 進階模式還是其他套件沒裝

    不過還是先謝啦~~

    By Nakazima on May 12, 2008

  47. Re: Nakazima
    請問你用的 /etc/apt/sources.list 中有什麼呢?
    還有大概安裝了什麼程式?

    By lazyfai on May 12, 2008

  48. 安裝了不少東西,能將 synaptic log 給您參考嗎?

    By Nakazima on May 13, 2008

  49. Re: Nakazima
    也可以啊,參考一下。
    還有 dpkg -l 的輸出。

    By lazyfai on May 13, 2008

  50. Thanks for your feedback. I do not know your personal e-mail address.

    I try to put the “dpkg -l” result in google document and send the message by your MSN address in your blog.

    If you did not receive any one, please inform me by the E-mail.

    By Nakazima on May 13, 2008

  51. 依照上面方法安裝完, 我的eeepc 900也出現跟前面朋友一樣的錯誤訊息, ‘The application KBluetooth crashed and caused the signal 6(SIGABRT)”. 按下ok後, session還會出現”/home/user> *** glibc detected *** malloc(): memory corruption (fast): 0×08115e48 *** KCrash: Application ‘kbluetooth’ crashing…”可能因此, 所以右下角不會出現blumon圖示. 不過, 自己去執行kbluemon和kbtobexclient都可以順利抓到藍牙裝置傳送檔案.

    請問是否有方法可解決不要再看到這些錯誤呢?

    By Julia on Jun 4, 2008

  52. 本來已不抱希望,但看到 Julia的 post,立刻去試了一下,果然出現錯誤訊息後,但仍可以將 kbluemon和kbtobexclient 執行出來,
    1. 但是從 eeepc 900 要 send file to 另一台電腦”A”時,會在電腦”A”出現配對選項,是說我的 eeepc 要求來配對,請輸入 password,但是輸入正確 password 後仍然會配對失敗,傳送當然也失敗
    2. 接下來在電腦”A” 執行搜尋藍牙裝置,會找到我的 eeepc 900
    3. 當我由電腦”A”要求與 eeepc 配對時,電腦”A”畫面出現配對選項,要求輸入 password,這次就成功了,在我的電腦”A”已經有和 eeepc 900配對成功的狀態,但是在 eeepc 上沒有地方顯示已配對的紀錄
    4. 重複 step1,這次由 eeepc 900 已經可以傳檔案至 電腦”A”了
    5. 但是,想要由電腦”A” send 檔案至 eeepc 900 卻怎麼也試不出來,完全看不到可以使用的地方

    真可惜,好像已經快踏到終點線了說~從其他電腦沒辦法傳檔案過來就很傷腦筋了

    不過提供一個狀態,過去我在 eeepc 701 是先把藍牙搞定,後來才使用 Tad 大大在他的 blog 提到的進階桌面完整版方法,安裝了一個 deb檔,當時 kbluetooth 是可以用的。
    不過這次在eeepc 900 是先執行進階桌面的方法,再安裝 kdebluetooth,會不會是這個問題造成的呢?

    By Nakazima on Jun 4, 2008

  53. 發現一個現象,當 dbus, bluetooth 都是 start 狀態下,但實際上不
    將外接藍牙插入USB,當執行 kbluetooth & 時,右下角狀態列會出現灰色藍牙標誌
    但是只要把藍牙 adapter 插入 USB port, 馬上出現 crash 畫面
    不知道 Julia 是否也是如此呢?

    By Nakazima on Jun 11, 2008

Post a Comment