4 Replies Latest reply on Sep 22, 2019 9:44 PM by RoCh_2868046

    Murata 1MW module bluetooth with IMX6ULEVK not able to send files

    AsAl_4421831

      Hello All,

       

      I am using Murata 1MW module with imx6 ultralite evaluation kit, I am able to start the bluetooth and connect it to my mobile.

      I am following Murata Wi-Fi/BT Solution for i.MX Quick Start Guide (Linux) 6.0 pdf and downloaded Murata script files for setup as given.

      I want to do file transfer for through put measurement to evaluate it to use it in our product

      Build Configuration:
      BB_VERSION = "1.36.0"
      BUILD_SYS = "x86_64-linux"
      NATIVELSBSTRING = "ubuntu-18.04"
      TARGET_SYS = "arm-poky-linux-gnueabi"
      MACHINE = "imx6ulevk"
      DISTRO = "fsl-imx-fb"
      DISTRO_VERSION = "4.9-rocko"
      TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa7"
      TARGET_FPU = "hard"
      meta
      meta-poky = "HEAD:9ed1178c87afce997d5a21cadae7461fb6bb48da"
      meta-oe
      meta-multimedia = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
      meta-freescale = "HEAD:a4158e3425a79720ddc4c02e76251d567bdceb51"
      meta-freescale-3rdparty = "HEAD:a02324e27f7a7ac630dab616f46a8bad7fe2c071"
      meta-freescale-distro = "HEAD:51756d1c2058139c8a21f89b86cfd8007b71b7f0"
      meta-bsp
      meta-sdk = "HEAD:2f76097309ceb20025af6f0dd853e0f4b641d40a"
      meta-browser = "HEAD:2ae23f16309d228ec6f1a25e404b3941115083ee"
      meta-gnome
      meta-networking
      meta-python
      meta-filesystems = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
      meta-qt5 = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
      meta-murata-wireless = "HEAD:11abc9c7079cc72f454bcd5d95c1584acf311dc1"

       

       

      I followed the instruction in Bluez5 Spec present at sources/meta-fsl-bsp-release/imx/tools/readme-bluez.txt

      When I reach the following step:

      6) Copy a file from the board to bluetooth device using the obex transfer.

      Note: both obexd and obexctl need to be run from a terminal on the board
      instead of from a remote login.

       

      a) Start obex daemon
      $ /usr/libexec/bluetooth/obexd

      b) On a smart phone, install an obex app such as Bluetooth File Transfer.

       

      c) Start obexctl. Type help to show commands.
      $ obexctl

       

      it does not work, it does not connect to Bluetooth File Transfer App. Bluetooth File Transfer app gives error saying the device does not support file transfer. I have already paired my mobile to eval kit  through bluetoothctl. It hangs once I start obexctl.

       

      is there any problem of obexctl with Murata?

       

       

      Regards,

      Asma

        • 1. Re: Murata 1MW module bluetooth with IMX6ULEVK not able to send files
          GauravS_31

          Can you please share the BlueZ document for reference?

          • 2. Re: Murata 1MW module bluetooth with IMX6ULEVK not able to send files
            MichaelF_56

            Moving to the Murata Partner Community and adding RoCh_2180491 from Murata.

             

            ScKe_1713761

            • 3. Re: Murata 1MW module bluetooth with IMX6ULEVK not able to send files
              AsAl_4421831

              GauravS_31, @RoCh_2180491

              I am not finding how to attach it here. but these are the contents of it. It is present in

              sources/meta-fsl-bsp-release/imx/tools/readme-bluez.txt

              This readme documents how to interface to the blueooth device on bluez5.

               

               

              Bluez5 is the default for 3.14 releases.

               

               

              Bluez5 instructions

              -------------------

              1) Check that the bluetooth dameon is running.

               

               

              $ ps aux | grep bluetoothd

               

               

              2) If not, start the bluetooth daemon.

               

               

              $ /usr/libexec/bluetooth/bluetoothd &

               

               

              3) Check that the bluetooth interface is up.

               

               

              $ hciconfig

               

               

              4) If showing DOWN then enable it - two possible ways:

               

               

              a) $ hciconfig hciN up

                              N is the device number assigned by the kernel; usually 0.

               

               

                          if this fails with "Can't init device hci0: Operation not possible due to RF-kill" do the next step.

               

               

                      b) $ rfkill list

                               Shows blocked try

                         $ rfkill unblock 0

                                 or

                         $rfkill unblock 1

               

               

              5) Manage bluetooth with bluetoothctl. This enters an interface. Type help to show commands.

               

               

              $ bluetoothctl

              <bluetooth> scan on

               

               

              Copy MAC address

              <bluetooth> scan off

              <bluetooth> pair <mac address>

                  On bluetooth device accept pairing

              <bluetooth> trust <mac address>

              <bluetooth> connect <mac address>

              <bluetooth> quit

               

               

              6) Copy a file from the board to bluetooth device using the obex transfer.

               

               

              Note: both obexd and obexctl need to be run from a terminal on the board

              instead of from a remote login.

               

              a) Start obex daemon

              $ /usr/libexec/bluetooth/obexd

               

               

              b) On a smart phone, install an obex app such as Bluetooth File Transfer.

               

              c) Start obexctl. Type help to show commands.

              $ obexctl

               

              d) Start app on phone and use the connect function to connect to the board.

              After connection is established, obexctl should display messages

              saying that a new session has been established. The MAC address

              of the phone should be displayed in brackets as the command prompt.

               

              e) Send a file to phone from obexctl.

              [<mac addr>]# send <file>

               

              f) Once it's done, close the session.

              [<mac addr]# disconnect

              [<mac addr>]# quit

               

               

                 

              To setup blueZ5 and A2DP sink on SabreSD

              ----------------------------------------

               

               

              - For details, please reference https://community.freescale.com/docs/DOC-103385

               

               

              - Note:

                  1) For systems that can automatically detect the alsa cards and starts the

                      pulseaudio daemon, all steps related to the 'pulse' user and starting

                      pulseaudio can be skipped.

                  2) To check if the system detected the alsa card or not, run the following command:

                  $ ps aux | grep pulse

                 

                      If the output includes a process like '/usr/bin/pulseaudio --start',

                      the daemon has started.

                  3) After starting bluetoothd, make sure the bluetooth interface is up

                      before running bluetoothctl.

              • 4. Re: Murata 1MW module bluetooth with IMX6ULEVK not able to send files
                RoCh_2868046

                Hello,

                 

                I have an i.MX 6UL EVK and Murata 1MW module and tried to reproduce the issue. Unfortunately, my image does not have the obexd application. May I know how you included obexd in your image? I am also following the Murata Quick Start guide and Murata build scripts.