เข้าระบบ

ชื่อเรียก:

รหัสผ่าน:

จำฉัน



ลืมรหัสผ่าน?

สมัครสมาชิก!

เมนู






Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
17/4/2007 16:25
กลุ่ม:
ผู้คุ้มกฎ
โพส: 15242
Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone

การใช้งานเกี่ยวกับ Bluetooth ใน Xandros Linux ค่อนข้างจะใช้งานยากกว่าการใช้งานใน Windows XP เนื่องจากไม่มีหน้าจอแบบกราฟฟิคให้กดๆ คลิกๆ ง่ายๆ จะต้องออกแรงมากหน่อยถึงจะใช้งานได้ และการใช้งาน Internet Sharing ผ่านทาง Bluetooth สำหรับ Windows Mobile Phone ที่ใช้ระบบปฏิบัิติการ Windows Mobile 6 และ 5.0 AKU 3.x ก็เช่นกัน มาดูวิธีการกัน รับรองใช้ผล 100%



ก่อนอื่นต้องติดตั้งโปรแกรมที่จำเป็นต้องใช้ก่อน นั่นก็คือโปรแกรม bluez-gnome ซึ่งก่อนจะติดตั้ง จะต้องเพิ่ม repository หรือโกดังโปรแกรมสำหรับ Xandros Linux เสียก่อน เริ่มจากการไปแก้ไขไฟล์ sources.list ก่อน เข้า Terminal โดยการกด Ctrl + Alt + T แล้วพิม์คำสั่ง

sudo kwrite /etc/apt/sources.list

เพิ่มโกดังหรือ repository ต่อท้ายเข้าไปอีก 3 ที่คือ จากนั้นก็จัดการบันทึกไฟล์ให้เรียบร้อย

deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch
deb http://dccamirror.xandros.com/dccri/ dccri-3.0 main
deb http://www.geekconnection.org/ xandros4 main


พิมพ์คำสั่งต่อไปนี้ (เปิด WiFi ต่อ Internet ไว้ก่อน)

wget http://download.tuxfamily.org/eeepcrepos/key.asc
sudo apt-key add key.asc


แล้วก็มาติดตั้งโปรแกรม bluez-gnome กัน ต้องเชื่อมต่อ Internet ไว้ก่อนด้วย จะทาง WiFi หรือ LAN ก็ได้

sudo apt-get update
sudo apt-get install bluez-gnome


เมื่อติดตั้งโปรแกรมเสร็จเรียบร้อยก็ถึงตอนสนุกแล้ว นำ Bluetooth Dongle มาเสียบช่อง USB แล้วพิพม์คำสั่งต่อไปนี้เพื่อเปิดใช้งาน Bluetooth

sudo /etc/init.d/dbus start
sudo /etc/init.d/bluetooth start


ต่อจากนั้นก็เรียกโปรแกรม bluetooth-applet

bluetooth-applet

ตอนนี้ถือว่าเตรียมพร้อมเปิด Bluetooth รอไว้แล้ว ต่อไปให้เปิดโปรกรม Internet Sharing โดยเลือกการเชื่อมต่อเป็น Bluetooth PAN แล้วก็๋กด Connect แล้วมาลองจับคู่อุปกรณ์กันดูว่ามันเห็นกันไหม โดยพิมพ์

sudo hcitool scan

โปรแกรมจะสแกนหาอุปกรณ์ โดยจะแสดงหมายเลขและชื่ออุปกรณ์นั้นๆ ขึ้นมา

Scanning ...
00:12:D2:C8:A0:ED Somkiat C. (หมายเลขและชื่อตรงนี้จะแตกต่างกันในแต่ละอุปกรณ์)


ลองจับคู่เลย

sudo pand -c
00:12:D2:C8:A0:ED -n

โปรแกรมจะเริ่มจับคู่ เมื่อใส่ PIN ใน Windows Mobile Phone แล้วให้รีบคลิกที่ไอคอน bluetooth-applet ที่กะพริบอยู่แล้วใส่ PIN ที่เหมือนกันอย่างเร็ว หากช้ามันจะตัดการเชื่อมต่อ ต้องเริ่มใหม่



เมื่อทำสำเร็จแล้ว หน้าจอจะแสดงผลว่าการเชื่อมต่อสำเร็จสมบูรณ์

pand[32143]: Bluetooth PAN daemon version 3.7
pand[32143]: Connecting to
00:12:D2:C8:A0:ED
pand[32143]: bnep0 connected

แต่อย่าเพิ่งดีใจไป ขั้นตอนนี้มันเป็นเพียงแค่การจับคู่อุปกรณ์เท่านั้น กด Disconnect ที่ Windows Mobile Phone ไปก่อน เราจะต้องแก้ไขค่าบางค่าให้มันส่งต่อข้อมูลผ่านทาง bluetooth ให้ได้ก่อน โดยการแก้ไขไฟล์ /etc/network/interfaces จะใช้โปรแกรม kwrite เหมือนเดิมก็ได้ แล้วเพิ่มคำสั่งดังต่อไปนี้เข้าไป

iface bnep0 inet manual
down dhclient -r -pf /var/run/dhclient.$IFACE.pid $IFACE
down pand -K
up pand -Q -n
up dhclient -pf /var/run/dhclient.$IFACE.pid $IFACE


ค่อยๆ ดูค่อยๆ พิมพ์ครับ อย่าพิมพ์ผิดเชียว ตัวอักษรตัวเล็กตัวใหญ่ต้องพิมพ์ให้เหมือนทั้งหมด ใกล้ความจริงแล้วครับ คราวนี้ลองใหม่อีกที เปิดโปรแกรม Internet Sharing ใน Windows Mobile Phone แล้วคลิก Connect รอไว้ เปิด Terminal แล้วพิมพ์

sudo ifup bnep0
โปรแกรมจะเริ่มค้นหาและเชื่อมต่ออุปกรณ์อุปกรณ์ และแจก IP address ที่จำเป็นให้
pand[2752]: Bluetooth PAN daemon version 3.7
pand[2752]: Inquiring
pand[2752]: Searching for NAP on 00:16:41:7B:BA:C9
pand[2752]: Searching for NAP on 00:12:D2:C8:A0:ED
pand[2752]: Connecting to 00:12:D2:C8:A0:ED
pand[2752]: Connect to 00:12:D2:C8:A0:ED failed. Connection refused(111)
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/bnep0/00:10:60:a3:b4:c3
Sending on LPF/bnep0/00:10:60:a3:b4:c3
Sending on Socket/fallback
DHCPDISCOVER on bnep0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 192.168.0.1
DHCPREQUEST on bnep0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1


หากไม่มีข้อผิดพลาดอะไร ก็สามารถเปิดโปรแกรม Firefox เข้าใช้ได้ Internet ได้เลย เมื่อใช้งานเสร็จ ก็กลับมาพิมพ์คำสั่ง sudo ifdown bnep0 เพื่อตัดกาาเชื่อมต่อ เท่านี้ก็เรียบร้่อย

แต่คงไม่มีใครมาพิมพ์คำสั่งอะไรมากมายทั้งหมดนีุ้ทุกครั้งที่จะใช้งาน Internet หรอก งั้นก็ทำให้เป็นอัตโนมัติกันดีกว่า เริ่มต้นให่แก้ไขไฟล์ /usr/sbin/services.sh แล้วเพิ่มคำสั่ง 2 บรรทัดด้านล่างนี้เข้าไป

/etc/init.d/dbus start
/etc/init.d/bluetooth start


แก้ไขไฟล์ /usr/bin/startsimple.sh แล้วเพิ่มคำสั่งด้านล่างนี้ใต้คำสัาง wapmonitor &

bluetooth-applet &

จากนั้นก็มาสร้างไฟล์สำหรับเชื่อมต่อ bluetooth internet sharing กัน ให้พิมพ์ kwrite bluetooth-internet.sh แล้วพิมพ์คำสั่ง

sudo ifdown bnep0
sudo ifup bnep0
firefox
sudo ifdown bnep0


บันทึกไฟล์แล้วเรียบร้อยแล้วเปลี่ยนให้ไฟล์เป็นแบบ execute ได้โดยคำสั่ง chmod +x bluetooth-internet.sh หรือจะคลิกขวาที่ชื่อไฟล์ แล้วเลือก Properties > Permission แล้วเลือกกากบาทที่ Exec ทั้งสามช่องแทนเป็นอันเรียบร้อย



ทุกครั้งที่ต้องการใช้งาน ก็เพียงเปิดโปรแกรม Internet Sharing ค้างไว้ แล้วเรียกโปรแกรม bluetooth-internet.sh จาก File Manager หรือจากใน Terminal โดยการพิมพ์คำสั่ง bluetooth-internet.sh ก็ใช้งานได้อย่างสะดวกโยธิน หากไม่ต้องการเห็นหน้าต่างตอนเปิดเรียก ให้ย้ายไฟล์ bluetooth-internet.sh ไปไว้ที่ Desktop ทุกอย่างก็จะอัตโนมัติจนเปิดโปรแกรม Firefox ขึ้นมาและเมื่อเลิกใช้ โปรแกรมก็จะตัดการเชื่อมต่อให้เองด้วย

หมายเหตุ : วิธีนี้ใช้ักับการเชื่อมต่อ Internet ผ่านโปรแกรม Internet Sharing ที่มีใน Windows Mobile 5.0 AKU 3.x และ Windows Mobile 6 ขึ้นไปเท่านั้น ไม่สามารถใช้กับบริการ Bluetooth Dial-up Networking ได้

อ้างอิง : eeeuser.com

โพสเมื่อ : 23/1/2008 1:09

แก้ไขโดย kiat เมื่อเวลา 8/6/2008 0:50:05
แก้ไขโดย kiat เมื่อเวลา 8/6/2008 0:50:41
_________________
It's not too hard to find some love
but it's also not easy to make that love to be forever
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
11/4/2007 23:16
จาก ราชอาณาจักรไทย
กลุ่ม:
ผู้คุ้มกฎ
โพส: 11294
ไว้ลองดีกว่าแหะ

โพสเมื่อ : 3/4/2008 17:50
_________________
ASUS EEE 1000HE/BB 9700/Nokia E51/iPod Classic 160GB
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
11/4/2007 23:16
จาก ราชอาณาจักรไทย
กลุ่ม:
ผู้คุ้มกฎ
โพส: 11294
สำเร็จล่ะ
เหลือ ลองลง kernel ใหม่ ที่ support RAM 2GB ก่อน Upram

(เปิดดูกล้อง วงจรปิดผ่าน xp แล้วช้ามาก)

โพสเมื่อ : 13/4/2008 15:42
_________________
ASUS EEE 1000HE/BB 9700/Nokia E51/iPod Classic 160GB
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือสมัครเล่น
เป็นสมาชิกเมื่อ:
11/2/2008 18:15
กลุ่ม:
สมาชิก
โพส: 79
วิธีที่สอนด้านบนนี้ ใช้กับ Linux หรือ Window XP คะ

โพสเมื่อ : 13/4/2008 16:28
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
11/4/2007 23:16
จาก ราชอาณาจักรไทย
กลุ่ม:
ผู้คุ้มกฎ
โพส: 11294
อ้างถึง:

napatcha เขียนว่า:
วิธีที่สอนด้านบนนี้ ใช้กับ Linux หรือ Window XP คะ


linux ครับ

โพสเมื่อ : 13/4/2008 17:16
_________________
ASUS EEE 1000HE/BB 9700/Nokia E51/iPod Classic 160GB
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
11/4/2007 23:16
จาก ราชอาณาจักรไทย
กลุ่ม:
ผู้คุ้มกฎ
โพส: 11294
ถ้าย้ายช่องเสียบ มาเสียบที่ hub จะใช้ไม่ได้แหะ
Open in new window

เลยแก้ไขโดยการเริ่มใหม่หมด
แต่ก่อนเริ่ม
sudo /etc/init.d/bluetooth stop
sudo /etc/init.d/dbus stop

แล้วก็ทำเครื่องหมายไว้ที่ hub สะเลยว่าเสียบรูไหน

โพสเมื่อ : 15/4/2008 13:49
_________________
ASUS EEE 1000HE/BB 9700/Nokia E51/iPod Classic 160GB
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
11/4/2007 23:16
จาก ราชอาณาจักรไทย
กลุ่ม:
ผู้คุ้มกฎ
โพส: 11294
Adapter อันเก่าเจ๊งไปล่ะ เสียบเครื่องไหนก็ไม่ติด (ผ่าน hub or ตรง) เข้าใจว่าไฟ ซ๊อต เพราะเสียบผ่าน hub hub ก็ไม่ติดไฟซ๊อต

โพสเมื่อ : 6/5/2008 12:58
_________________
ASUS EEE 1000HE/BB 9700/Nokia E51/iPod Classic 160GB
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือใหม่
เป็นสมาชิกเมื่อ:
6/5/2008 14:52
กลุ่ม:
สมาชิก
โพส: 9
thank คาบ

โพสเมื่อ : 7/5/2008 0:05
_________________
....
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มืออาชีพ
เป็นสมาชิกเมื่อ:
16/5/2007 7:13
จาก Nowhere
กลุ่ม:
สมาชิก
โพส: 479
ขอบคุณมากครับ มารายงานผลขั้นต้น
ยังไม่ประสบความสำเร็จ คือมาถึงขั้นที่ติดตั้งโปรแกรม

apt-get update
หลังจาก Download และติดตั้ง ปรากฏว่าเจอข้อความนี้ครับ
W: GPG error: http://xnv4.xandros.com etch Release: The following signature couldn't be verified because the public key is not available: NO_PUBKEY A3CCB76FA8BCF0C9

ซึ่งมีผลทำให้คำสั่ง bluetooth-applet ไม่ตอบสนอง คือเงียบไปเลย ต้องกด Ctrl-C ออกมา
ลองข้ามไป Pairing ก็เกิดอาการ รอตามปกติ แต่พอกรอก Passkey ที่ Pocket PC แล้วกด Next ทาง Eee ก็จะ Fail ไป
คือพอ Next เข้ามา ก็ Fail เลย ทั้งๆที่รออยู่ดิบดี

ลองหลอกดู เรียก bluetooth-applet ใหม่ จะมี Icon ของ Bluetooth manager ขึ้นมา เรียกมันที่นั่นเลย จัดการตั้งให้เป็น Discoverable
Pair ได้ครับ เรียบร้อย

แต่ว่าพอ Connect ด้วยคำสั่ง sudo ifup bnep0 มีข้อความยาวๆ แต่น่าจะในทำนองว่ายังไม่สมบูรณ์

แจ้งไว้เผื่อว่าจะพอจะมีข้อมูลสำหรับวิเคราะห์ครับ เพราะผมก็จิ้มๆไปเรื่อยโดยไม่มีความเข้าใจอะไรทั้งสิ้น
ไว้จะพยายามต่อครับ

โพสเมื่อ : 6/6/2008 9:55
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
17/4/2007 16:25
กลุ่ม:
ผู้คุ้มกฎ
โพส: 15242
วันนี้ไม่ได้พกมาทำงานด้วย ไว้คืนนี้ไปลองดูให้นะครับ เพราะ xandros ผมได้ย้ายไป SD Card ยังไม่ได้ปรับแต่งอะไรเลย เป็นเหมือนมากับเครื่อง ไม่มีไทย ต่อเน็ทไม่ได้เหมือนกัน ลืมไปทำมันเหมือนกัน

โพสเมื่อ : 6/6/2008 15:32
_________________
It's not too hard to find some love
but it's also not easy to make that love to be forever
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มืออาชีพ
เป็นสมาชิกเมื่อ:
16/5/2007 7:13
จาก Nowhere
กลุ่ม:
สมาชิก
โพส: 479
เป็นไปได้มั้ยครับที่จะใช้ Server ตัวอื่นแทน หรือใช้แบบ Local storage ก๊อปมาลงเลย

โพสเมื่อ : 7/6/2008 23:53
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
17/4/2007 16:25
กลุ่ม:
ผู้คุ้มกฎ
โพส: 15242
ดูเหมือนทาง xandros? จะไม่ให้ผู้ใช้ eee ไป apt-get โปรแกรมจาก repository ของเขา เลยไปเปลี่ยนแปลง public key แล้ว คงต้องเปลี่ยนไปเอาโปรแกรมที่อื่น วิธีแก้ไขคือ ให้กลับไปแก้ไขไฟล์ sources.list เอาบรรทัด deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free ออกแล้วเพิ่ม deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch แทน จากนั้นให้พิมพ์คำสั่งดังนี้ (ต่อเน็ทไว้ก่อนด้วย)

wget http://download.tuxfamily.org/eeepcrepos/key.asc
sudo apt-key add key.asc

หลังจากนั้นก็ต่อด้วยขั้นตอน sudo apt-get update ไปได้เรื่อยๆ จนจบ

อ้อ แนะนำให้ใช้สคริป bluetooth-internet.sh จาก full desktop mode ผมได้ลองใช้จาก easy mode แล้วสคริปมันรันรวดเดียวจบ คือ ifdown ก่อนเวลาอันควร ยกเว้นเอาบรรทัดสุดท้ายของสคิปออกไปก่อน หลังจากใช้งานเสร็จก็เข้า terminal มาพิมพ์คำสั่ง sudo ifdown bnep0 เอาเอง

โพสเมื่อ : 8/6/2008 0:38
_________________
It's not too hard to find some love
but it's also not easy to make that love to be forever
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือใหม่
เป็นสมาชิกเมื่อ:
9/6/2008 15:06
กลุ่ม:
สมาชิก
โพส: 3
sorry my eee still cannot type thai, I follow everthing but still cannot as message show

/home/user> sudo apt-get install bluez-gnome
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://dccamirror.xandros.com dccri-3.0/main Packages (/var/lib/apt/lists/dccamirror.xandros.com_dccri_dists_dccri-3.0_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package bluez-gnome

I'm stuck here for 2 days,please help krub

Many thanks,
Tanin

โพสเมื่อ : 11/6/2008 9:31
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มืออาชีพ
เป็นสมาชิกเมื่อ:
16/5/2007 7:13
จาก Nowhere
กลุ่ม:
สมาชิก
โพส: 479
ขอบคุณมากครับตอนนี้ตอบโดยใช้ Internet Connection Sharing จาก ASUS P526 ครับ
ยังมีปัญหาเล็กน้อยกับคำสั่ง Bluetooth-Applet ยังมีอาการเดิมคือดูเหมือนไม่ตอบสนอง แต่มี Icon ขึ้นที่ Panel ก็ใช้วิธีโกงเอาไปก่อนครับ ก็จัดการ Pairing ได้ตามปกติและใช้งานได้

โพสเมื่อ : 11/6/2008 12:22
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มือเซียน
เป็นสมาชิกเมื่อ:
17/4/2007 16:25
กลุ่ม:
ผู้คุ้มกฎ
โพส: 15242
สงสัยพี่น้ำยังติดตั้งโปรแกรม bluetooth-applet ไม่สำเร็จ ลองติดตั้งใหม่อีกทีครับ อ้อ ก่อน apt-get install ให้ apt-get update ก่อนด้วยนะครับ

โพสเมื่อ : 11/6/2008 16:46
_________________
It's not too hard to find some love
but it's also not easy to make that love to be forever
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มืออาชีพ
เป็นสมาชิกเมื่อ:
16/5/2007 7:13
จาก Nowhere
กลุ่ม:
สมาชิก
โพส: 479
ขอบคุณมากครับ ไว้จะลองอีกที
ตอนนี้กำลังติดพัน ซื้อมาก็ใช้งานหนักเลย

โพสเมื่อ : 13/6/2008 18:43
Transfer the post to other applications Transfer


Re: Eee PC กับการใช้งาน Bluetooth Internet Sharing ผ่าน Windows Mobile Phone
มืออาชีพ
เป็นสมาชิกเมื่อ:
16/5/2007 7:13
จาก Nowhere
กลุ่ม:
สมาชิก
โพส: 479
เฮ้อ... เกิดอาการ Couldn't find package bluez-gnome เข้าให้อีกแล้วครับ ติดตั้ง Bluetooth-applet ยังไม่ได้ คราวนี้ Pair ไม่ได้เลยแหละ

โพสเมื่อ : 16/7/2008 17:55
Transfer the post to other applications Transfer







[ค้นหา ขั้นสูง]