PDA

View Full Version : How to send text file from bluetooth using QT ?



naveenkumar
18th February 2020, 04:22
Hi Team,

We are using imx6ul development board with yocto build system (QT), requirements is to transfer text file from imx6ul board to android mobile using QT, Which profile should user to transfer or receive text files. Please any one help on this issue.

1. I am able to sending text file using commands

DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/dbus/system_bus_socket obexctl
[obex]# connect xx.xx.xx.xx.xx.xx
[obex]# send /home/root/test.txt
[obex]# quit


Regards,
Nv.

^NyAw^
19th February 2020, 10:32
Hi,

Take a look at this https://doc.qt.io/qt-5/qtbluetooth-btfiletransfer-example.html

naveenkumar
19th February 2020, 13:02
Hi,

Take a look at this https://doc.qt.io/qt-5/qtbluetooth-btfiletransfer-example.html

Thank you for the reply,

I tried above code but no luck, Selected paired device and file and clicking on send button, after that UI is not moving showing file send screen, I tried with laptop and mobile but code is not working.

Thanks and Regards,
Nv

d_stranz
19th February 2020, 17:57
code is not working

This could explain why (from the link posted by ^NyAw^):


The Bluetooth File Transfer example is an application to transfer files via a bluetooth connection. This example does not work on Android due to missing Object Push support.

naveenkumar
21st February 2020, 06:44
Dear d_stranz,

Thanks for reply,

Bluetooth paired with my laptop (windows7) and selected required file and clicking on send button but not sending and showing sending window, unable send file due to my laptop is object push profile after scanning my laptop showing as object push profile. How can i send text file from board to mobile using qt, any other method available please let me know.

Regards,
Nv.