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

How to add UART into MESH by following the example given?

Hi, 

As if we follow the steps given in the link for the update for combining Mesh SDK v2.0.1 and nRF5 SDK v15 posted by Hung Bui, I found out several problems related to the steps:

1.For the first step:

In nRF Mesh SDK file, we couldn't find 'mesh' file in the components. Do we need to create a new file or any other solutions?

2. For the second step:

How to include the source file from Mesh example?

3.For step sixth step:

How to edit main.c to add mesh init functions and defines? Any example?

 

Also, as if i want to test whether i did it successfully, what should I do?

Parents
  • Hi,

    The main idea in the answer Hung Bui posted was to add mesh to a BLE project (i.e. adding the mesh sdk to the nrf5 sdk v15).

    1) You will need to create a new folder under nRF5_SDK_15.0.0_a53641a\components\, call that folder mesh & add the mesh sdk v2.0.1 files under the mesh folder.

    2) I think it is best for you to open up the ble_app_uart Segger Embedded Studio (SES) peripheral example from sdk 15, open up a light switch example (e.g. server example) from mesh sdk v2.0.1 & download the zip file that Hung provides in his answer (ble_app_uart_mesh_SDK2_0_1.zip). Then, if you compare the uart example with the mesh light switch server example, you notice that a lot of source files are missing from the uart example that are there in the ble_app_uart_mesh_SDK2_0_1 example. 

    To explain it simply, you will need to add the following folders with the included source files to the ble_app_uart example: access, bearer, Configuration Model, Health Model, Mesh stack, Mesh_application, Mesh_Core, Provisioning, SimpleOnOffModel, uECC.

    3) Like in step 2 above, take a look at the zip file that Hung provided & compare & contrast the uart example main file with the mesh light switch example main file & the merged uart_mesh_light_switch example.

    4) To test the example, follow the guidelines Hung uses: light switch provisioner and client in Mesh SDK v2.0.1 & test like you would test the ble_app_uart example.

Reply
  • Hi,

    The main idea in the answer Hung Bui posted was to add mesh to a BLE project (i.e. adding the mesh sdk to the nrf5 sdk v15).

    1) You will need to create a new folder under nRF5_SDK_15.0.0_a53641a\components\, call that folder mesh & add the mesh sdk v2.0.1 files under the mesh folder.

    2) I think it is best for you to open up the ble_app_uart Segger Embedded Studio (SES) peripheral example from sdk 15, open up a light switch example (e.g. server example) from mesh sdk v2.0.1 & download the zip file that Hung provides in his answer (ble_app_uart_mesh_SDK2_0_1.zip). Then, if you compare the uart example with the mesh light switch server example, you notice that a lot of source files are missing from the uart example that are there in the ble_app_uart_mesh_SDK2_0_1 example. 

    To explain it simply, you will need to add the following folders with the included source files to the ble_app_uart example: access, bearer, Configuration Model, Health Model, Mesh stack, Mesh_application, Mesh_Core, Provisioning, SimpleOnOffModel, uECC.

    3) Like in step 2 above, take a look at the zip file that Hung provided & compare & contrast the uart example main file with the mesh light switch example main file & the merged uart_mesh_light_switch example.

    4) To test the example, follow the guidelines Hung uses: light switch provisioner and client in Mesh SDK v2.0.1 & test like you would test the ble_app_uart example.

Children
Related