This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: Bluetooth file transfer failed with ret code 80

Part Number: PROCESSOR-SDK-AM335X


Hi,

We have AM335x evm hardware which is running with 2021 u-boot and 5.10 linux kernel (Yocto compiled code with processor-sdk-08.02.00.24-config.txt config file).

We are testing bluetooth connection and file transfer to android phone from am335x evm target board.

we are able to connect board with android phone using bluetooth but when we try to do file transfer using obexftp command,  it's failing with return code 80. please find below logs to understand issue.

root@Node40bd32e8de13:~# obexftp -b 4C:E0:DB:33:0F:57 -p /var/log/am335x_sk.txt
Browsing 4C:E0:DB:33:0F:57 ...
Connecting..\done
Sending "/var/log/am335x_sk.txt"...|failed: /var/log/am335x_sk.txt
The operation failed with return code 80
Disconnecting../done
root@Node40bd32e8de13:~#

Note :-  Here 4C:E0:DB:33:0F:57 is MAC address of my android device

we are using obexftp 0.24.2 version for file transfer which is coming meta-openembedded layer as shown below

#  meta-openembedded/meta-oe/recipes-connectivity/obexftp/obexftp_0.24.2.bb

Please help us to understand, what is return code of -80 and reason behind bluetooth file transfer failure ? 

Thanks,

Mallikarjuna Reddy Ambati

  • Hi Mallikarjuna,

    What Bluetooth Part number are you using? This will help route your query to the right expert.

    Best Regards,

    Suren

  • Hi, 

    we are using WUBT-236ACN(BT) Realtek USB dongle which uses RTL8822BU driver for bluetooth.

    please find below link for USB dongle details that we are using for bluetooth testing. 

    www.sparklan.com/.../

    Please find below console logs when realtek USB dongle is connected to USB port of am335x evm board.

    [ 32.003448] Bluetooth: Core ver 2.22
    [ 32.005757] NET: Registered protocol family 31
    [ 32.005789] Bluetooth: HCI device and connection manager initialized
    [ 32.005836] Bluetooth: HCI socket layer initialized
    [ 32.005853] Bluetooth: L2CAP socket layer initialized
    [ 32.005916] Bluetooth: SCO socket layer initialized
    [ 32.145078] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [ 32.490045] usbcore: registered new interface driver btusb
    [ 32.504992] Bluetooth: hci0: RTL: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
    [ 32.505905] Bluetooth: hci0: RTL: rom_version status=0 version=2
    [ 32.505930] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_fw.bin
    [ 32.524768] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_config.bin
    [ 32.527151] Bluetooth: hci0: RTL: cfg_sz 14, total sz 20270
    [ 33.269943] Bluetooth: hci0: RTL: fw version 0xab6b705c
    [ 33.425124] usbcore: registered new interface driver rtl88x2bu
    [ 34.620809] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
    [ 35.067449] device wlan0 entered promiscuous mode

    We are using bluez for bluetooth stack profile, which is coming from below recipe.

    # ./poky/meta/recipes-connectivity/bluez5/bluez5_5.55.bb.

    Please let know if any info required and helps us on it asap.

    Thanks,

    Mallikarjuna

  • Hi Mallikarjuna,

    Not sure if the issue is in any software layer in Linux userspace or kernel RTL8822 driver, but current information does not tell the issue is directly related to AM335x. Please debug the issue and narrow it down. We can provide further support if the issue is known related to AM335x and its kernel drivers.