ble uart

dwayne@dforsyth.net
Posts: 3
Joined: Mon Apr 13, 2020 8:40 pm

ble uart

Postby dwayne@dforsyth.net » Mon Apr 13, 2020 8:45 pm

Looking to add bleuart to a project.

I see
components/bt/host/nimble/nimble/nimble/host/services/bleuart/src/bleuart.c
components/bt/host/nimble/nimble/nimble/host/services/bleuart/include/bleuart/bleuart.h

Is there any documentation on how to properly use this in an application?

ESP_Prasad
Posts: 18
Joined: Tue Nov 12, 2019 7:46 am

Re: ble uart

Postby ESP_Prasad » Tue Apr 14, 2020 2:08 pm

Hi Dwayne,

There is application present in mynewt-core for this, link: https://github.com/apache/mynewt-core/t ... leuart/src, it can be ported to ESP32 by referring to `bleprph` app in `$IDF/examples/bluetooth/nimble`.

However, we can not use this off the shelf, as the service `bleuart` has mynewt specific console APIs. You might want to explore console component in `esp-idf` which can help to port `bleuart.c` for ESP32 . You can also refer to simplified CLI (`scli.c`) implementation in `example/bluetooth/nimble/bleprph` application. For your quick reference, I have attached modified `bleuart.c` which shall help you to start with.

Please apply attached `Bleuart_config_changes.txt` patch before you run the ported app. Please let me know if you still face any issue.
Attachments
Bleuart_config_changes.txt
Patch to be applied on IDF_PATH
(3.28 KiB) Downloaded 476 times
bleuart.c
(7.75 KiB) Downloaded 568 times

dwayne@dforsyth.net
Posts: 3
Joined: Mon Apr 13, 2020 8:40 pm

Re: ble uart

Postby dwayne@dforsyth.net » Thu Apr 16, 2020 12:10 am

Thanks for the info. I though the bleuart was and active component.

Per your response, and reviewing it I see it really is example in the nimble code space.
I ported what I needed for my project.

Who is online

Users browsing this forum: Google [Bot] and 130 guests