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  

  • Hi Zain

    Sorry for the slow response, I just came back from leave. 

    Are you still having problems with this?

    Which mesh model are you currently using, and do you already send some other data over the mesh (not from the UART)?

    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 

  • 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

  • Hi Torbjorn 

    I was using the generic on off modelto try and get the data to be sent 

     i am going to try and look into the NRF Connect SDK 

    please assist  me in finding the best way to develop the soloution 

    Kind regards 

    Zain Imran

  • Hi Zain

    We will do our best to help you get started with the nRF Connect SDK, but if you have new questions not directly related to the original question I recommend opening a new ticket rather than continuing on this one. 

    First off, devzone is not designed to handle long cases covering multiple topics, and second I don't work a lot with mesh anymore so you will be better served by talking to one of the mesh experts in the group ;)

    Best regards
    Torbjørn

Related