This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MESH & UART

Hello everyone, 

I am currently working on a project, where I want to interface UART to a Bluetooth mesh network. The project is very similar to the light switch demo, because for the beginning I just want to turn on a light with the only difference, that instead of toggling a GPIO Pin, I want to establish a UART communication with another Controller which then turns on/off a light. 

One thing I am trying to do is just to add a UART driver to the light switch server, but in fact it is not working properly. In the sdk_config.h file there is no uart_app shown which is shown in the SDK15 example. I have no clue why there are differences between the sdk_config.h files of SDK15 and the Mesh SDK. In my understanding, the Mesh SDK is using the librarys from the other SDK to work. 

Are there any step by step examples on how to implement a driver to a given project or even from scratch? I have looked through many posts in this forum but the people who want to work with the NRF52 are mostly referred to other example projects. I also watched the YouTube tutorials on the CMSIS Configurator and the one which shows how to add drivers to a project, but I don't think they are that helpful. I have seen the API documentations and I think I would be able to use them but I have big problems figuring out which C files and header files are used by the drivers and I am not able to find anything in the SDK15 documentation..  

Thanks in advance for any help 

Best regards

Julian Demicoli

IDE: Segger Embedded Studio for ARM V3.4 (I was trying to use KEIL IDE but the mesh examples are not supported so I went back to the Segger Embedded Studio),

SDK: 15.0 + SDK for Mesh,

Softdevice: 6.0.0

Computer Platform: Windows 10 64 Bit

Hardware revisions: NRF52 Development Board + Fanstel BT832 Bluetooth Module (Later)

Parents Reply Children
  • You have to add some folder locations to the include library. Right click on your Project or Solution --> Edit Options --> Preprocessor --> User Include Directories --> add yoursdkfolder\nrf5_sdk_for_mesh\examples\common\include

    I was just having trouble with the ble_app_coexist. What I did was adding the UART sources from the uart example project to my needed mesh example and after a while it did work. Maybe just add the include Directorys as shown in the picture and add 

    #include "app_uart.h" 

    to your source file. 

    It was a bit tricky, I had to play around in some files to get it running. Just try to understand what your compiler is complaining about  and it will work after a while. 

    Best regards

    Julian Demicoli

Related