NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
Start Obex Control
Use the following commands to start the Obex Control and connect to the remote
Bluetooth device paired using Bluetooth Control.
root@imx8mqevk:~# obexctl
[NEW] Client /org/bluez/obex
[obex]# connect B4:F5:00:31:CB:4E
Attempting to connect to B4:F5:00:31:CB:4E
[NEW] Session /org/bluez/obex/client/session0 [default]
[NEW] ObjectPush /org/bluez/obex/client/session0
Connection successful
[B4:F5:00:31:CB:4E]#
Send a file from i.MX 8M Quad to the connected remote Bluetooth device
[B4:F5:00:31:CB:4E]# send /home/root/sample_audio.wav
Attempting to send /home/root/sample_audio.wav to /org/bluez/obex/
client/session0
[NEW] Transfer /org/bluez/obex/client/session0/transfer0
Transfer /org/bluez/obex/client/session0/transfer0
Status: queued
Name: sample_audio.wav
Size: 1073218
Filename: /home/root/sample_audio.wav
Session: /org/bluez/obex/client/session0
[CHG] Transfer /org/bluez/obex/client/session0/transfer0 Status:
active
[CHG] Transfer /org/bluez/obex/client/session0/transfer0
Transferred: 8030 (@8KB/s 02:12)
[B4:F5:00:31:CB:4E]#
Select ACCEPT or DECLINE on the remote Bluetooth device
Select ACCEPT or DECLINE on the remote Bluetooth device depending on the file to be
received. The following logs appear once the file transfer is completed.
[CHG] Transfer /org/bluez/obex/client/session1/transfer1 Status:
complete
[DEL] Transfer /org/bluez/obex/client/session1/transfer1
[B4:F5:00:31:CB:4E]#
Disconnect and exit from the obexctl
[B4:F5:00:31:CB:4E]# disconnect
Attempting to disconnect to /org/bluez/obex/client/session2
[DEL] Session /org/bluez/obex/client/session2 [default]
[DEL] ObjectPush /org/bluez/obex/client/session2
Disconnection successful
[obex]# quit
root@imx8mqevk:~#
Note:
The Obex Control receiving is not working with the current version 5.50 of BlueZ.
It may be resolved in a later version.
UM11490
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 2 — 29 January 2021
66 / 88