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

light switch examples using nrf5SDKforMeshv300src on PCA10040 board is not working. I am using 4 boards 2 configured as clients, 2 configured as server. I provisioned all the nodes in the mesh network using nrfMesh Android MobileApp. Provisioning was succ

I am unable to toggle LED's on server boards, using Push buttons on client boards.  flashed the light_switch client,server, provisioning images on nrf52832 boards  using nrf5SDKforMeshv300src SDK. I am able to provision the Clients & servers using both nrfMesh MobileApp  &  other board running ligh_switch provsioning example.

Parents
  • I tried running segger RTTClient on one of the boards running light switch client example.

    One board i am seeing error messages "Acknowledged transfer timeout.", Second board i am seeing "Publication not configured for client."

  • I tried once again by reflashing two PAC10040 boards as server. One board as Client. One board as provisioner.I am able to toggle Led's  of only one server.  here is the total client RTT Log.

    ###RTT Client: ************************************************************
    ###RTT Client: *               SEGGER Microcontroller GmbH                *
    ###RTT Client: *   Solutions for real time microcontroller applications   *
    ###RTT Client: ************************************************************
    ###RTT Client: *                                                          *
    ###RTT Client: *       (c) 2012 - 2016  SEGGER Microcontroller GmbH       *
    ###RTT Client: *                                                          *
    ###RTT Client: *     www.segger.com     Support: [email protected]       *
    ###RTT Client: *                                                          *
    ###RTT Client: ************************************************************
    ###RTT Client: *                                                          *
    ###RTT Client: * SEGGER J-Link RTT Client   Compiled Sep 27 2018 18:11:50 *
    ###RTT Client: *                                                          *
    ###RTT Client: ************************************************************
    
    ###RTT Client: -----------------------------------------------
    ###RTT Client: Connecting to J-Link RTT Server via localhost:19021  Connected.
    SEGGER J-Link V6.35f (beta) - Real time terminal output
    J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41 V1.0, SN=682556034
    Process: JLinkExe
    <t:          0>, main.c,  321, ----- BLE Mesh Light Switch Client Demo -----
    <t:      16897>, main.c,  288, Initializing and adding models
    <t:      21360>, main.c,  361, Device UUID : 0059CCAA00000000B1E5A0034C100E11
    <t:     880714>, main.c,  111, Successfully provisioned
    <t:     880719>, main.c,  122, Node Address: 0x0100
    <t:     883007>, config_server.c,  601, dsm_appkey_add(appkey_handle:0 appkey_index:0)
    <t:     886209>, config_server.c, 2426, Access  Info:
            element_index=0        model_id = 2-FFFF        model_handle=1
    <t:     891041>, config_server.c, 2426, Access  Info:
            element_index=1        model_id = 1001-FFFF        model_handle=2
    <t:     891955>, config_server.c, 2426, Access  Info:
            element_index=2        model_id = 1001-FFFF        model_handle=3
    <t:   10108682>, main.c,  199, Button 0 pressed
    <t:   10108685>, main.c,  226, Sending msg: ONOFF SET 1
    <t:   10111227>, main.c,  146, Acknowledged transfer success.
    <t:   10111229>, main.c,  172, OnOff server: 0x0103, Present OnOff: 1, Target OnOff: 1, Remaining Time: 100 ms
    <t:   10114404>, main.c,  177, OnOff server: 0x0103, Present OnOff: 1
    <t:   10953195>, main.c,  199, Button 2 pressed
    <t:   10953197>, main.c,  226, Sending msg: ONOFF SET 1
    <t:   13233054>, main.c,  199, Button 1 pressed
    <t:   13233056>, main.c,  226, Sending msg: ONOFF SET 0
    <t:   13233795>, main.c,  146, Acknowledged transfer success.
    <t:   13233797>, main.c,  172, OnOff server: 0x0103, Present OnOff: 1, Target OnOff: 0, Remaining Time: 100 ms
    <t:   13238484>, main.c,  177, OnOff server: 0x0103, Present OnOff: 0

Reply
  • I tried once again by reflashing two PAC10040 boards as server. One board as Client. One board as provisioner.I am able to toggle Led's  of only one server.  here is the total client RTT Log.

    ###RTT Client: ************************************************************
    ###RTT Client: *               SEGGER Microcontroller GmbH                *
    ###RTT Client: *   Solutions for real time microcontroller applications   *
    ###RTT Client: ************************************************************
    ###RTT Client: *                                                          *
    ###RTT Client: *       (c) 2012 - 2016  SEGGER Microcontroller GmbH       *
    ###RTT Client: *                                                          *
    ###RTT Client: *     www.segger.com     Support: [email protected]       *
    ###RTT Client: *                                                          *
    ###RTT Client: ************************************************************
    ###RTT Client: *                                                          *
    ###RTT Client: * SEGGER J-Link RTT Client   Compiled Sep 27 2018 18:11:50 *
    ###RTT Client: *                                                          *
    ###RTT Client: ************************************************************
    
    ###RTT Client: -----------------------------------------------
    ###RTT Client: Connecting to J-Link RTT Server via localhost:19021  Connected.
    SEGGER J-Link V6.35f (beta) - Real time terminal output
    J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41 V1.0, SN=682556034
    Process: JLinkExe
    <t:          0>, main.c,  321, ----- BLE Mesh Light Switch Client Demo -----
    <t:      16897>, main.c,  288, Initializing and adding models
    <t:      21360>, main.c,  361, Device UUID : 0059CCAA00000000B1E5A0034C100E11
    <t:     880714>, main.c,  111, Successfully provisioned
    <t:     880719>, main.c,  122, Node Address: 0x0100
    <t:     883007>, config_server.c,  601, dsm_appkey_add(appkey_handle:0 appkey_index:0)
    <t:     886209>, config_server.c, 2426, Access  Info:
            element_index=0        model_id = 2-FFFF        model_handle=1
    <t:     891041>, config_server.c, 2426, Access  Info:
            element_index=1        model_id = 1001-FFFF        model_handle=2
    <t:     891955>, config_server.c, 2426, Access  Info:
            element_index=2        model_id = 1001-FFFF        model_handle=3
    <t:   10108682>, main.c,  199, Button 0 pressed
    <t:   10108685>, main.c,  226, Sending msg: ONOFF SET 1
    <t:   10111227>, main.c,  146, Acknowledged transfer success.
    <t:   10111229>, main.c,  172, OnOff server: 0x0103, Present OnOff: 1, Target OnOff: 1, Remaining Time: 100 ms
    <t:   10114404>, main.c,  177, OnOff server: 0x0103, Present OnOff: 1
    <t:   10953195>, main.c,  199, Button 2 pressed
    <t:   10953197>, main.c,  226, Sending msg: ONOFF SET 1
    <t:   13233054>, main.c,  199, Button 1 pressed
    <t:   13233056>, main.c,  226, Sending msg: ONOFF SET 0
    <t:   13233795>, main.c,  146, Acknowledged transfer success.
    <t:   13233797>, main.c,  172, OnOff server: 0x0103, Present OnOff: 1, Target OnOff: 0, Remaining Time: 100 ms
    <t:   13238484>, main.c,  177, OnOff server: 0x0103, Present OnOff: 0

Children
Related