LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2016, 06:49 AM   #1
pankil
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
Obex Data Transfer Errors from linux to mobile phone


Hello,

I am using Bluez 5.18 version on ARM board with TI CC25xx chip

Now I am able to do pairing and other basic config stuff with the Bluetooth chip easily.

Now I want to send file to Android Phone. From the information I am able to understand that it OPP and FTP will use Obex Layer to send the file.

Using obex client tool (Available in tools folder of Bluez) able to send files to some Mobile phones.

On Samsung phones data transfer is being happened easily.

But some phones like Nokia XL needs to have external Application (Bluetooth File Transfer) running on it and then only data transfer is being done.
Otherwise it shows error like on board side is "Internal Server Error" .

For other phone (Sony Experia) error shows "Length is required".

I got the channel number on which OBEX Object Push service is running for each mobile. And used that channel number to create obex connection.

What needs to be add/change in configuration for obex to send the data directly from board to Mobile? In all case it uses channel 12. (Got channel number from sdptool)


Here I have attached hcidump in different case.

Thanks in advance for your help.

Dump :
***********************Sony Experia Mobile Phone :*********************

< ACL data: handle 1 flags 0x02 dlen 15
L2CAP(d): cid 0x0041 len 11 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 7 fcs 0xe
OBEX: Connect cmd(f): len 7 version 1.0 flags 0 mtu 4096
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 21
L2CAP(d): cid 0x0040 len 17 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 12 fcs 0xc8 credits 4
OBEX: Connect rsp(f): status 200 len 12 version 1.0 flags 0 mtu 4096
Status 200 = Success
Connection ID (0xcb) = 1


< ACL data: handle 1 flags 0x02 dlen 999
L2CAP(d): cid 0x0041 len 995 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 990 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 999
L2CAP(d): cid 0x0041 len 995 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 990 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 999
L2CAP(d): cid 0x0041 len 995 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 990 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 999
L2CAP(d): cid 0x0041 len 995 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 990 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 145
L2CAP(d): cid 0x0041 len 141 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 136 fcs 0xe
OBEX: Put cmd(c): len 4096
Connection ID (0xcb) = 1
Name (0x01) = Unicode length 46
Body (0x48) = Sequence length 4036
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 17
L2CAP(d): cid 0x0040 len 13 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 8 fcs 0xc8 credits 5
OBEX: Put rsp(f): status 411 len 8
Status 411 = Length required
Connection ID (0xcb) = 1


************************ Nokia XL with Mobile Application*****************************
< ACL data: handle 1 flags 0x02 dlen 15
L2CAP(d): cid 0x0040 len 11 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 7 fcs 0xe
OBEX: Connect cmd(f): len 7 version 1.0 flags 0 mtu 4096
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 15
L2CAP(d): cid 0x0040 len 11 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 0 ilen 7 fcs 0xd4
OBEX: Connect rsp(f): status 200 len 7 version 1.0 flags 0 mtu 16384
Status 200 = Success


< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 281
L2CAP(d): cid 0x0040 len 277 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 272 fcs 0xe
OBEX: Put cmd(c): len 16384
Name (0x01) = Unicode length 46
Body (0x48) = Sequence length 16329
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 11
L2CAP(d): cid 0x0040 len 7 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 0 ilen 3 fcs 0xd4
OBEX: Put rsp(f): status 100 len 3




************************ Nokia XL without Mobile Application*****************************

< ACL data: handle 1 flags 0x02 dlen 15
L2CAP(d): cid 0x0040 len 11 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 7 fcs 0xe
OBEX: Connect cmd(f): len 7 version 1.0 flags 0 mtu 4096
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 20
L2CAP(d): cid 0x0040 len 16 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 0 ilen 12 fcs 0xd4
OBEX: Connect rsp(f): status 200 len 12 version 1.0 flags 0 mtu 4096
Status 200 = Success
Connection ID (0xcb) = 1

< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 1016
L2CAP(d): cid 0x0040 len 1012 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 1007 fcs 0xe
< ACL data: handle 1 flags 0x02 dlen 76
L2CAP(d): cid 0x0040 len 72 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 68 fcs 0xe
OBEX: Put cmd(c): len 4096
Connection ID (0xcb) = 1
Name (0x01) = Unicode length 46
Body (0x48) = Sequence length 4036
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 1 packets 2
> ACL data: handle 1 flags 0x02 dlen 11
L2CAP(d): cid 0x0040 len 7 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 0 ilen 3 fcs 0xd4
OBEX: Put rsp(f): status 500 len 3
 
  


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
bluetooth refuses to pair with mobile phones for obex transfer (fc6) netsurf Linux - Hardware 0 04-23-2007 06:13 PM
Usb mobile phone data transfer assegai Linux - Hardware 1 08-29-2006 04:15 PM
How to transfer data from Nokia mobile phone to slack10.2 fireedo Slackware 2 10-10-2005 11:51 PM
Data transfer blocked? Reliance cdma mobile phone problem with Fedora. comatosebuddha Linux - Software 0 04-18-2004 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration