LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-27-2011, 08:08 AM   #1
beparas
Member
 
Registered: Nov 2006
Location: Pune
Posts: 33

Rep: Reputation: 0
File transfer to mobile phone using Bluetooth


Hi,
I am working on Ubuntu-10.4 and I want to transfer 'hello.txt' file form my computer to mobile phone (Nokia 7210).
I run following command

$ hcitool scan
00:25:48:11:5D:2C Nokia

$ sdptool browse 00:25:48:11:5D:2C
Browsing 00:25:48:11:5D:2C ...
Service Name: OBEX Object Push
Service RecHandle: 0x10001
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: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"OBEX Object Push" (0x1105)
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: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"OBEX File Transfer" (0x1106)
Version: 0x0100

Service Name: Dial-up networking
Service RecHandle: 0x10003
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

$ obexftp -b 00:25:48:11:5D:2C --channel 9 -p /home/user/Test/bt/hello.txt
Connecting..\failed: send UUID
Tried to connect for 875ms
error on connect(): Success
Still trying to connect
Connecting..|failed: send UUID
Tried to connect for 4ms
error on connect(): Success
Still trying to connect
Connecting../failed: send UUID
Tried to connect for 6ms
error on connect(): Success
Still trying to connect

When I run this command, My mobile ask for accept the connection from ubuntu (device name connected to ubuntu). I accept the connection, Then I got the error log given above.
Please any one help me, where I get wrong.

Thanks in advance,
 
Old 06-28-2011, 03:54 AM   #2
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 365

Rep: Reputation: 34
Try using the gui to get bluetooth working. Also, KDE has some good bluetooth apps in its desktop. See if Kubuntu is practical for you or if you can add KDE as a desktop. It is not unusual for one desktop to do what another can't.
 
Old 06-28-2011, 04:11 AM   #3
beparas
Member
 
Registered: Nov 2006
Location: Pune
Posts: 33

Original Poster
Rep: Reputation: 0
Thank you very much for your great support.
Actually I want to study the system called and BlueZ api's used in file transfer via Bluetooth.
That's why I am using CLI mode, it's easy to debug the source of command.
 
Old 06-28-2011, 04:39 AM   #4
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 365

Rep: Reputation: 34
bluetooth

Quote:
Originally Posted by beparas View Post
Thank you very much for your great support.
Actually I want to study the system called and BlueZ api's used in file transfer via Bluetooth.
That's why I am using CLI mode, it's easy to debug the source of command.
Still, try using kbluetooth to get your device working. You may not even need to install KDE to use it, likely just a few extra dependencies. Use your package updater for this one. If it 'just works", there is no need to do any advanced debugging. Many of the desktops have bluetooth utilities. The best way to solve the problem is to go ahead, install a few of them and see if they work. kbluetooth is one of the better ones.
 
1 members found this post helpful.
Old 06-29-2011, 11:11 PM   #5
beparas
Member
 
Registered: Nov 2006
Location: Pune
Posts: 33

Original Poster
Rep: Reputation: 0
I will definitely try kbluetooth.
Thank you very much for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transfer file from phone using bluetooth to Slackware. reikyv Slackware 1 09-11-2009 11:01 AM
My mobile phone could not detect my bluetooth enabled PC? depam Linux - Hardware 2 10-01-2007 01:17 AM
bluetooth...mobile connectivity...file transfer problem vineet7kumar Linux - Newbie 1 09-06-2007 08:48 AM
Bluetooth transfer between PC and cell phone ed_homeLinux Linux - Hardware 3 07-21-2007 07:33 AM
nec e228 mobile phone file transfer cyclop Linux - Hardware 0 10-23-2004 11:18 AM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration