LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Bluetooth issue - couldn't send files (https://www.linuxquestions.org/questions/slackware-14/bluetooth-issue-couldnt-send-files-942169/)

4Strings 04-27-2012 05:26 PM

Bluetooth issue - couldn't send files
 
Hello!

On my slackware -current, I can receive files from bluetooth external devices, but I can't send files to bluetooth external ones.
I tried with the "blueman applet" and with the "Kde Bluedevil". The external device only receives the connection request (coming from my laptop) but the sending procedure fails!

I noticed that "dmesg" returns the follow messages as soon as I try to send files:
Code:

[30867.252995] obex-data-serve[27467]: segfault at 38 ip b6f3b292 sp bfdff380 error 6 in libopenobex.so.1.4.1[b6f36000+8000]
[31172.365082] obex-data-serve[32425]: segfault at 38 ip b6fd8292 sp bff54670 error 6 in libopenobex.so.1.4.1[b6fd3000+8000]

Here is the hciconfig output:
Code:

hci0:  Type: BR/EDR  Bus: USB
        BD Address: 00:16:41:5C:3D:3B  ACL MTU: 384:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:26567372 acl:76138 sco:0 events:3980 errors:0
        TX bytes:210354 acl:2350 sco:0 commands:142 errors:0

Thanks!

4Strings 04-28-2012 08:46 AM

Hello,

I continue to investigate and I noticed that only root can send file using bluetooth!!!

I tried to launch the blueman-applet from command line in order to get some output message. When I try to send a file to my smartphone, blueman randomly reports two kind of output messages.

1. It appears a msgbox that reports "Request timeout" and the blueman output message is:
Code:

...
on_session_created (/usr/bin/blueman-sendto:300)

_________
on_session_connected (/usr/lib/python2.6/site-packages/blueman/ods/OdsManager.py:53)
session_connected
_________
on_session_connected (/usr/bin/blueman-sendto:249)
commence transfer
_________
send_file (/usr/bin/blueman-sendto:232)
/home/fourstrings/slackware.jpg
_________
on_transfer_started (/usr/bin/blueman-sendto:171)
transfer started
_________
on_session_error (/usr/bin/blueman-sendto:254)
session err org.openobex.Error.Timeout Request timeout
_________
on_session_error (/usr/bin/blueman-sendto:254)
session err org.openobex.Error.LinkError Connection error
_________
on_disconnected (/usr/lib/python2.6/site-packages/blueman/ods/OdsSession.py:54)
disconnected
_________
on_session_closed (/usr/lib/python2.6/site-packages/blueman/ods/OdsManager.py:45)
__Session Closed__

2. My smartphone asks the authorization to receive the file, but the transfer hangs! Here it's the blueman output message:
Code:

send_file (/usr/bin/blueman-sendto:232)
/home/fourstrings/slackware.jpg
_________
on_session_created (/usr/bin/blueman-sendto:300)

_________
on_session_connected (/usr/lib/python2.6/site-packages/blueman/ods/OdsManager.py:53)
session_connected
_________
on_session_connected (/usr/bin/blueman-sendto:249)
commence transfer
_________
__del__ (/usr/lib/python2.6/site-packages/blueman/ods/OdsSession.py:43)
deleting session
_________
send_file (/usr/bin/blueman-sendto:232)
/home/fourstrings/slackware.jpg
_________
on_transfer_started (/usr/bin/blueman-sendto:171)
transfer started
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 589, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/bin/blueman-sendto", line 152, in reply
    self.session.Disconnect()
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.12 was not provided by any .service files

Could be a D-Bus configuration related problem? ...or a users permission issue?

guanx 04-29-2012 07:49 AM

I also had send file problems. My mobile phone receives only text files (and show them as SMSes). Other files are silently ignored, and blueman times out. This is not a big problem anyway since I can use blueman to mount my phone with obexftp.

A real problem which might be useful to mention is that if I enable bluetooth integration in kde, then I cannot send files from mobile phone to computer. The mobile phone simply says "Cannot connect". I tried to setup kde bluetooth to accept files from trusted devices as well we from all devices. None worked.

Turning off bluetooth kde integration solves the problem. (And this does not prevent me from connecting to mobile broadband via bluetooth using Network Manager. So, why not?)

4Strings 05-03-2012 05:34 PM

Quote:

Originally Posted by guanx (Post 4665939)
...Turning off bluetooth kde integration solves the problem. ...

Thanks! :) Turning off bluetooth kde integration really solves the issue!!!


All times are GMT -5. The time now is 11:40 AM.