Sony's Developer World forum

    • Home
    • Forum guidelines

    Unable to run spresense SDK example "bluetooth_le_central" with bluetooth module HM-10

    Spresense
    3
    5
    1049
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yingzheng 1 1 last edited by

      14943334-0608-4e70-a149-ab9e68b8b8f9-image.png
      HM-10 Pinout
      cc308fec-ac75-4a36-8ad9-b3ec399a25d4-image.png
      Spresense Pinout

      Hi Community,
      I am new to Microcontroller. Hope I explain my problem clearly enough.
      I connected the RXD and TXD on my HM-10 to UART2_RX and UART2_TX on spresense. Then I try to build and fresh the "bluetooth_le_central" example on the spresense SDK Github repo.
      The code is successfully fresh into spresense but when I run it. The nuttx give me this ERROR:
      [BT][Common] Initialization failed(HAL initialize failed)
      After checking the documentation and debugging. I found out that the Bluetooth module initialize is failed
      I have an error on this function
      115d164d-c0e7-495f-88e5-3632d0bde0f7-844805a0124331d46232735a4a29da0.png

      I am looking for a solution or some clues.

      Thanks,
      Zhenyu

      FYI,
      I used the same setup on Arduino IDE and could enter the AT mode of the Bluetooth. I think that means I got the pin right.

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @yingzheng 1 1 last edited by

        Hey, @yingzheng-1-1
        Just checking.. Did you make sure that the connection was like below:
        RX from HM-10 connected to TX from Spresense.
        TX from HM-10 connected to RX from Spresense

        Just because the way you wrote the connections made me think you did RX to RX and TX to TX.

        Y 1 Reply Last reply Reply Quote
        • Y
          yingzheng 1 1 @CamilaSouza last edited by

          @CamilaSouza Hi @CamilaSouza

          Yes, I connect the RX from HM-10 to TX on the spresense. I didn't realize I am mistyping. Thank you for correcting me.
          And I saw the spresense SDK just updated for supporting "Only BLE Device". The HM-10 I think is considered as "Only BLE Device" And I am testing out the new SDK.

          Best,

          J C 2 Replies Last reply Reply Quote
          • J
            jens6151 0 1 1 @yingzheng 1 1 last edited by

            @yingzheng-1-1
            Did you have any success with the new SDK release?
            I doubt it will work because the new driver integrates the Nordic nRF SDK. It serializes host - controller communication where the controller runs the Nordic Softdevice on it.
            The HM-10 is from TI. I found that it uses AT commands to control Bluetooth. It sound like a very different protocol.

            If you want "real" BLE, not just some Serial over BLE, then I suggest that you either get the new BLE add on board or any nRF5x board where you flash the required firmware.
            Other option would be to use the BLE HCI protocol. I did it this way. Have a look at https://github.com/jens6151/spresense-BLE-with-XIAO-BLE

            1 Reply Last reply Reply Quote
            • C
              CamilaSouza DeveloperWorld @yingzheng 1 1 last edited by

              Hey, @yingzheng-1-1

              @jens6151-0-1-1 is correct.
              Unfortunately, we do not support HM-10 bluetooth device.

              1 Reply Last reply Reply Quote
              • First post
                Last post
              Developer World
              Copyright © 2021 Sony Group Corporation. All rights reserved.
              • Contact us
              • Legal