How to transfer file use BT between i.MX8MP and Android phone?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to transfer file use BT between i.MX8MP and Android phone?

How to transfer file use BT between i.MX8MP and Android phone?

This is an example for user to transfer files between i.MX8MP Linux platform and other devices via Bluetooth.

Environment :

Hardware : i.MX8MP LPDDR4 EVK Board, Android Phone

Software : L6.6.23-2.0.0

 

Step1 : Build Yocto image and burnt to the SD card or EMMC

  1. repo init -u https://github.com/nxp-imx/imx-manifest.git -b imx-linux-scarthgap -m imx-6.6.23-2.0.0.xml
  2. repo sync
  3. DISTRO=fsl-imx-xwayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build-xwayland
  4. Add the following code to "conf/local.conf"

         IMAGE_INSTALL:append = " glibc-gconv-utf-16"

  1. bitbake imx-image-full
  2. uuu -b emmc_all imx-image-full-imx8mp-lpddr4-evk.rootfs-20240919015845.wic

Step2 : Test steps

  1. Boot board with "imx8mp-evk-usdhc1-m2.dtb" file.
  2. load Wi-Fi Firmware

          root@imx8mp-lpddr4-evk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf

  1. Load BT firmware and enable BT

         root@imx8mp-lpddr4-evk:~# modprobe btnxpuart

         root@imx8mp-lpddr4-evk:~# hciconfig

         pengyong_zhang_3-1728113009623.png

         root@imx8mp-lpddr4-evk:~# hciconfig hci0 up

  1. connect  the BT of Android Phone

         root@imx8mp-lpddr4-evk:~# bluetoothctl

         [bluetooth]# default-agent

         [bluetooth]# agent on

         [bluetooth]# discoverable on

         [bluetooth]# scan on

         [bluetooth]# scan off

         pengyong_zhang_4-1728113009623.png

         [bluetooth]# pair 90:F0:52:92:A6:6C

         we need to type Yes on board and click 配对 on phone.

        pengyong_zhang_5-1728113009624.png

        pengyong_zhang_6-1728113009624.png

        [bluetooth]# connect 90:F0:52:92:A6:6C

       pengyong_zhang_7-1728113009625.png

        [Meizu16m]# quit

        pengyong_zhang_8-1728113009626.png

  1. Transfer file

         1). Android Phone-> i.MX8MP EVK Board

         root@imx8mp-lpddr4-evk:~# /usr/libexec/bluetooth/obexd -a -n -r /root/ & obexctl

        pengyong_zhang_9-1728113009626.png

         Then select a file on your phone ad choose transfer by Bluetooth.

         pengyong_zhang_10-1728113009627.png

        2).i.MX8MP EVK Board -> Android Phone

         [obex]# connect 90:F0:52:92:A6:6C

        pengyong_zhang_11-1728113009627.png

         [90:F0:52:92:A6:6C]# send /home/root/test.txt

        pengyong_zhang_12-1728113009628.png

Note : 

1. Do not suggestion use IOS phone.

2. If your i.MX8MP board can not scan your BT device, Suggest change the device BT name and run on "scan on" command again.

 

ラベル(2)
評価なし
バージョン履歴
最終更新日:
‎10-09-2024 01:17 AM
更新者: