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

reciveng data on UAR then broadcasting on Mesh

Good day i am new to Nordics platform and SDK also new to segger embedded studio 

i am required to develop a solution that receives data on the UART of the NRF52840(client)  which it needs to broadcast via Mesh to the server which it will then write to UART again

i have been attempting to make use of the SDK to receive the data via UART but am only able to receive one character instead a series of characters or a string 

please assist with the functions that need to be used. I have looked at the SDK examples but have had no luck as yet 

kind regard 

Zain  

Parents
  • Hi Zain

    Could you let me know which SDK version you are using?

    Also, which example have you been looking at in the SDK?

    The ble_app_uart example in nRF5 SDK v17.0.2 shows quite well how to send and receive bytes over the UART, by using the app_uart_fifo.c driver.  This example doesn't implement Bluetooth mesh unfortunately, so you would need to implement something similar on top of one of the mesh examples. 

    Best regards
    Torbjørn

  • Hi Torbjorn 

    thank you for the reply  

    i have finally been able to receive all my UART data and send my UART data 

    however i am struggling to send this data from client to server over mesh 

    i am using

     access_model_publish(0x1001,data_array_mes);

    to send the data i stored in data_array_mesh 

    i am however unable to see how to receive the data on the server side 

    please let me know what function to use or where to look 

    also am i sending the data using the correct function 

    kind regards 

    Zain 

Reply
  • Hi Torbjorn 

    thank you for the reply  

    i have finally been able to receive all my UART data and send my UART data 

    however i am struggling to send this data from client to server over mesh 

    i am using

     access_model_publish(0x1001,data_array_mes);

    to send the data i stored in data_array_mesh 

    i am however unable to see how to receive the data on the server side 

    please let me know what function to use or where to look 

    also am i sending the data using the correct function 

    kind regards 

    Zain 

Children
  • Hi Zain

    Which SDK example are you using as a basis for your mesh code?

    I am trying to figure out which is the best example to get started with, but unfortunately it seems that most examples in the nRF5 mesh SDK uses standard models that don't allow you to send custom strings. 

    In the nRF Connect SDK we have a chat example, which allows you to send custom strings from one node to another. Would it be an option to switch over to the nRF Connect SDK if this example does more or less what you need?

    In the future we will move all software development over to the nRF Connect SDK platform, so eventually you will need to make this move regardless if you plan to take advantage of new mesh releases or new chipsets from Nordic. 

    My colleague Hung shared some information about how to integrate UART messages into a mesh example here, but this is a 4 year old case, and I expect it will be quite outdated by now. 

    Best regards
    Torbjørn

Related