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

BLE Mesh Model for user data transfer

Hi Nordic team,

We have planned to use nRF5340 based BLE mesh device which is interface with sensor 

We would like to transfer customized user data from one node to another node at different location via BLE mesh network. 

Shall we use Generic On/Off model for this user data transfer from one node to another node through BLE mesh?

If yes, what is the maximum possible size of user data to transfer?

Shall we use the "Mesh light (as Server) " and Mesh light switch (As client) sample for this use case?

Thanks

Selvam

Parents Reply Children
  • Hi Hung Bui,

    While loading the sample chat as below steps,

    1. Connect nRF5340 DK and Load merged_CPUNET.hex through "nRF connect Programmer"

    Close device in ""nRF connect Programmer"

    2. In "Segger Embedded Studio", Connect J link and Click "Build and Debug" option. 

    we are getting the below fail message in putty and there is no device name in "nRF mesh" mobile app

    uart:~$ I: HW Platform: Nordic Semiconductor (0x0002)
    I: HW Variant: nRF53x (0x0003)
    I: Firmware: Standard Bluetooth controller (0x00) Version 229.40135 Build 486576601
    I: No ID address. App must call settings_load()
    Bluetooth initialized
    >>> Bluetooth Mesh Chat sample <<<
    uart:~$ W: ECC HCI commands not available
    E: Failed to generate public key (-35)
    Initializing mesh failed (err -35)

    Please guide , is any steps we missed ?

    It will helpful to proceed.

    Thanks in Advance.

    Thanks

    Selvam

  • Hi Selvam, 

    Sorry for late response. We had Easter vacation last week. 


    The log showed that there was an issue with the HCI interface. Could be an issue with the image on the netcore. Please made sure that it's the Zephyr controller used, not the Nordic's one. It's described here.

    Have you managed to run other mesh examples ? For example the light_switch sample? 

  • No problem Hung Bui,

    Hope you enjoyed the Easter Vacation. 

    BTW, By configuring "CONFIG_BT_TINYCRYPT_ECC=y" able to do communication between nRF5340 DK boards through UART shell. 

    It looks like TX and RX thread of Zephyr expecting the data from Shell and then do the BLE data handle.

    But the need is to transfer the own data between two nRF5340 boards without shell typing. 

    Please guide us to transfer the data without using shell.

    Thanks

    Selvam

  • Hi Selvam, 

    The particular chat example use the SHELL module to handle UART communication to allow chat experience. 
    If you want to send your own data without any UART you would need to have a look at the model_hanlder.c and see how the message is send and received. 
    For example calling function cmd_message() will send a message on the chat client  (bt_mesh_chat_cli_message_send() ) 

    When there is a message arrived, the handle_message() function in chat_cli.c will call chat->handlers->message(chat, ctx, msg) which is the handle_chat_message() function in model_handler.c to print out the message. 

    Note that this is just an example, you can just use this chat_cli.c model as a refering source and build your own client or server. Please follow the guide here.

Related