WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: unable to send and receive files using Blueman in v13.1 x86_64  (Read 2305 times)

Offline tcl_user5

  • Newbie
  • *
  • Posts: 33

I am unable to send and receive files via Bluetooth using Blueman in TCL v13.1 (x86_64). On trying to send files, I initially got the error message- "Error occurred. name org.bluez.obex was not provided by any .service files."


Since it was mentioned in the message on the forum- http://forum.tinycorelinux.net/index.php/topic,18121.msg112050.html#msg112050- that files can be sent and received on x86_64 without obexd and obex-data-server extensions, I had initially not loaded these extensions.

However, subsequently, I installed obexd, obex-data-server and openobex extensions. After this, no error message is received. However, file transfer does not take place as well while trying to send files.

Receiving files also does not happen. On the source device (Android mobile phone device), the error message shows the reason for failure as "Request cannot be handled correctly." I have set the incoming folder in Local services>Transfer settings in Blueman. Also, source device is marked as trusted. Also, I have set locale to en_US.UTF-8 using the getlocale extension.

Other than the issue of sending and receiving files, bluetooth is working normally. Pairing is taking place and network access and audio streaming are working normally with paired devices.

Kindly advise.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #1 on: June 19, 2022, 12:04:12 PM »
If you start blueman-applet/blueman-manager from a terminal window do you get any more error details?

Offline tcl_user5

  • Newbie
  • *
  • Posts: 33
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #2 on: June 19, 2022, 12:32:00 PM »

On starting blueman-manager in the terminal, the following error details are seen.

Code: [Select]
tcbox:~$ blueman-manager
Traceback (most recent call last):
File "/usr/local/bin/blueman-sendto", line 166, in <module>
   SendTo (args)
File "/usr/local/bin/blueman-sendto", line 95, in __init__
   self.do_send()
File "/usr/local/bin/blueman-sendto", line 102, in do_send
   sender = Sender (self.device, self.adapter_path, self.files)
File "/user/local/lib/python3.6/site-packages/blueman/main/Sendto.py", line 61,
 in __init__
  self.manager=Manager()
File "/usr/local/lib/python3.6/site-packages/blueman/gobject.py", line 11, in
__call__
  cls._instance=super().__call__(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/blueman/bluez/obex/Manager.py",
line 31, in __init__
 self.__bus_name, '/', None, None, None)
gi.repository.Glib.Error: g-dbus-error-quark:Error calling StartServiceByName for
org.bluez.obex: Process org.bluez.obex exited with status 127(25)

If you start blueman-applet/blueman-manager from a terminal window do you get any more error details?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #3 on: June 19, 2022, 12:51:14 PM »
Hi tcl_user5
From the  blueman.tcz.info  file:

Quote
Howto:
Code: [Select]
$ sudo /usr/local/etc/init.d/bluez start
$ startx
use blueman to manage bluetooth connections

obexd extension required for obex file send/receive
locale must be set to en_US.UTF-8 or similar to receive files

So  blueman.tcz  should be set to load   onboot , and you should add:
Code: [Select]
/usr/local/etc/init.d/bluez startto your  /opt/bootsync.sh  file to ensure it runs before  X  starts.

Offline tcl_user5

  • Newbie
  • *
  • Posts: 33
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #4 on: June 19, 2022, 09:17:49 PM »
Hi Rich,

blueman.tcz is set to load onboot.

/usr/local/etc/init.d/bluez start has been included in /opt/bootsync.sh.

I had checked both these before reporting tie error.

In fact, Bluetooth pairs with other devices and works fine in audio and network access modes. The only issue being faced is of file transfer not happening through Bluetooth.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #5 on: June 20, 2022, 12:08:18 AM »
I wonder if bluez needs to install /usr/local/share/dbus-1/services/org.bluez.obex.service?

Could you try creating the file containing:
Code: [Select]
[D-BUS Service]
Name=org.bluez.obex
Exec=/usr/local/lib/bluetooth/obexd
SystemdService=dbus-org.bluez.obex.service
« Last Edit: June 20, 2022, 12:58:27 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #6 on: June 20, 2022, 03:45:24 AM »
I just sent a file via bluetooth on piCore64 successfully without needing any obex extensions, but with /usr/local/share/dbus-1/services/org.bluez.obex.service present.

I'll wait until you confirm that adding /usr/local/share/dbus-1/services/org.bluez.obex.service on CorePure64 works before updating the bluez extension.

Note that file reception via bluetooth on the recipient machine needs to be enabled otherwise you get "org.bluez.obex.Error.Failed Unable to find service record".

Offline tcl_user5

  • Newbie
  • *
  • Posts: 33
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #7 on: June 20, 2022, 10:29:23 AM »
Hi Juanito,

Your solution works.

Its confirmed that adding /usr/local/share/dbus-1/services/org.bluez.obex.service after creating the D-BUS service file works.

File transfer (both incoming and outgoing) works.

I checked after uninstalling obex extensions. It works.

Kindly update the bluez extension accordingly.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: unable to send and receive files using Blueman in v13.1 x86_64
« Reply #8 on: June 21, 2022, 03:22:33 AM »
bluez extensions updated in x86 and x86_64 repos