This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Which Example should i use for BLE mesh which support the OTA?

Hi Everone..

I want to know for my project Which Example should i use for BLE mesh which support the OTA

I have nRF52832 DK, and several other custom board  which is based on nrf52840.  I have working on BLE mesh sdk version 5.0

I want to make BLE mesh in that node, relay node, Border node for communicate with server.

Node_1(Adc_reading) (boolean_ value) (SPI) --------> relay_Node---->Border_Node------->(Through UART)-----> send data to Server(Cloud).

Please give me tutorial and what would be the flow for this using nRF52832 BLE mesh. It will use making smart socket project.

Thanks in Advance.

Parents
  • Hi Shubham, 

    I'm afraid I don't fully understand what you want to do. 

    Could you please describe your application ? 
    Which device is connected to cloud and how do you want to communicate via UART. What do you mean by "use UART instead to client" ? 

    Do you mean the NUS service ? UART over the UART wire or UART over BLE ? 
    Have you managed to test the SDK UART coexistence example ? On the phone you need to type either 1 or 2 or 3 or 4 and send that to the nRF52 (the client node) it will turn the light of the server node on/off. 

  • Hi Hung Bui...

    sorry if i made u confuse...

    actually i m quite new to nrf...

    my question is --- In nrf mesh I Used the Example of light swith example. Here 1 nrf Kit i used as a client(switch) AND 2 nrf kits i used to as a Server(light). If i press the buttton on client(switch) the led will blink on servers(lights) which is perfect.

     What do you mean by "use UART instead to client" ?

    Answer---  Here i mean to say that instead of pressing the button on nrf kit which is client... can't we give the command through the KEYBOARD. by using UART.

    And i didn't try the NUS service yet.

  • Hi Shubham, 

    It's actually supported natively. If you have a look here, at the bottom: 

    You can use the RTT Viewer to control via PC. If you have installed Jlink, you can run "Jlink RTT Viewer" from Windows. And connect to the client, from there you can control the server from the PC.

    If you want to control via UART you would need to include UART into the project and implement something similar to rtt_input_handler() to emulate the button press. 

Reply
  • Hi Shubham, 

    It's actually supported natively. If you have a look here, at the bottom: 

    You can use the RTT Viewer to control via PC. If you have installed Jlink, you can run "Jlink RTT Viewer" from Windows. And connect to the client, from there you can control the server from the PC.

    If you want to control via UART you would need to include UART into the project and implement something similar to rtt_input_handler() to emulate the button press. 

Children
  • Hi Hung Bui...

    Yes, the RTT Viewer is working as i Want.. thanks for that...

    Now,

    can u please help me to understand how to to include UART into the project and implement something similar to rtt_input_handler() to emulate the button press.?

    thanks in  advance.

  • Hi, 

    You can have a look at my example here.

    It's made for SDK v4.0 but it should be very similar to SDK v5.0

  • Hi.....

    i m stuck between follow the steps which are present in the nordic semiconductor infocenter>SDK UART COEXISTING EXAMPLE>

    in 4th step i am unable to understand how to 

    • Replace the light switch client with examples/ble_peripheral/ble_app_proximity_coexist/pca10040/s132/ses/Output/Release/Exe/ble_app_proximity_pca10040_s132.hex.

    is it means that replace  light switch client's hex.file with Exe/ble_app_proximity_pca10040_s132.hex. file?

    And I want to use nrf mesh mobile app to provisioning swith and light (gateway and node)

    what i all need to do that is--

    client (gateway)----->(Through UART)-----> send data to Server(node).

    for doing that should i have to combine any  two example codes...?

    plese suggest with examples.

    thank you.

  • Hi, 

    The sentence means that you follow the instruction the same as in the light switch client instruction. But instead of flashing the light switch client, you flash the ble_app_uart_pca10040_s132.hex (basically you flash the application that you just built). It's a bug in the documentation that it mentioned about proximity it should be the coexist UART app. 

    So basically you just compile and flash the coexist UART app. And you provision it using a provisioner (not the phone) and then after that you can control the server the same way as you control the server using the light switch client. 

    If you want to provision the coexist UART application with a phone you need to add PB-GATT to it. I have made an example for that here.

  • HI,

    Thanks for your friendly support....

    i downloaded your code which you give to me "ble_app_uart_coexist_GATT"

    i pasted it on "C:\nRF5_SDK_17.0.2\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral " on that path..

    first it show "log_beckend.rtt error" but after included the libarary it sloved...

    but now it show

    can you help me to sort it out.?

    thanks in advace.

Related