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

How to add mesh into nRF5 SDK v14.1/v15 BLE application ?

What do I need to know to add mesh functionality into a normal BLE application ?

  • @Hung Bui: I have been playing around with the variables you mentioned:

    #define SCAN_INTERVAL             0x0020                                /**< Determines scan interval in units of 0.625 millisecond. */
    #define SCAN_WINDOW               0x0010                                /**< Determines scan window in units of 0.625 millisecond. */
    #define SCAN_TIMEOUT              0x0000                               /**< Timeout when scanning. 0x0000 disables timeout. */
    
    #define SCAN_INTERVAL             0x0050                                /**< Determines scan interval in units of 0.625 millisecond. */
    #define SCAN_WINDOW               0x0020                                /**< Determines scan window in units of 0.625 millisecond. */
    #define SCAN_TIMEOUT              0x0000                               /**< Timeout when scanning. 0x0000 disables timeout. */
    
    #define SCAN_INTERVAL             0x00A0                                /**< Determines scan interval in units of 0.625 millisecond. */
    #define SCAN_WINDOW               0x0050                                /**< Determines scan window in units of 0.625 millisecond. */
    #define SCAN_TIMEOUT              0x0000                               /**< Timeout when scanning. 0x0000 disables timeout. */
    

    Does not seem to have a lot of succes. Everytime I do something with BLE all my mesh packets are not received or processed. Also the scanning settings should not matter when I put the amount of central links to 1 and stop scanning once that 1 peripheral has been found right ?

    So with TCP/IP, I2C, SPI we have ways of trouble shooting the communication using wireshark or a logic analyzer. Like you mentioned in your video @ nRFsniffer

    For my application and projects succes I suspect I will need to be able to sniff BLE traffic. Does the nRF51-Dongle also support BL mesh packets and BL 5 packets ?

  • And I know you are all doing your best, so thanks for all the help. BL mesh is all still so new, seems like your openThread SDK has more support and documentation at the moment. What would your recommendation be? Switch over to Thread or keep trying BLE and BL mesh ?

  • I think there is an issue with the scanner and mesh stack. Tested here showed that after the first BLE scanning period the mesh stack didn't work after that. I will take a look.

    @Toaster: It's hard to give you recommendation without knowing the application. Mesh and Thread are a little bit different. One is routed mesh and one is flood mesh. They do have some overlapping but has their own pros and cons depends on the application.

  • Hey Hung, thanks again for your response. Such committed and involved developers is rare (as far as I know). I will wait for your response, I am doing research into Thread now as well to check its capabilities. As an answer for my application I want to share the Thingy52 sensor data over a mesh network.

    My other question does the nRFsniffer work with BL 5 / BL mesh, or should I make a different question for this?

  • Hi Toaster,

    I'm travelling for a week, so there won't be update until after next week. Regarding the nRFSniffer, no it only support BLE 4.0 so no BLE 5.0 or Mesh supported.

Related