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

Android Nrf Mesh Library

Hi everyone,

Currently I'm using Android Nrf Mesh Library 2.4.1 for provisioning device into network.

I face the issue which can not be found why to fix this error.

We have Json Mesh Network, so we trying imported this Json with some nodes already added.

Problem is, address unicast assign to UnprovisionNode alway be 1. Evenwhen in MeshNetwork already contain another ProvisionnedNode is 1.

So when I tried to config Bind or Subcrible wrong destination address unicast.

I tried without import Network Json, use reset network then add this device again.

The problem happened again. Cause this is not notify the error so I don't know how to fix this problem. 

PS: I user Android Nrf Mesh Library 2.4.1 example already, this work perfectly

This is networkjson example:

{

  • "$schema":"">json-schema.org/.../schema,
  • "id":"MeshNetwork",
  • "version":"1.0",
  • "meshUUID":"ec0d9a311faf451dbdbc2682b548bafd",
  • "meshName":"MeshNetwork",
  • "timestamp":"2020-03-01T11:44:22+0700",
  • "netKeys":[
    1. {
      • "name":"Network Key 1",
      • "index":0,
      • "key":"82f6ab549235435cb60b5228f740459f",
      • "phase":0,
      • "minSecurity":"high",
      • "timestamp":"2020-03-01T11:44:22+0700"
      }
    ],
  • "appKeys":[
    1. {
      • "name":"Application Key 1",
      • "index":0,
      • "boundNetKey":0,
      • "key":"b6a6f928669649a493c3a278e1b79f43"
      }
    ],
  • "provisioners":[
    1. {
      • "provisionerName":"HubApp",
      • "UUID":"54E60E7AF26512D77BB26A09DB8B4F4A",
      • "allocatedUnicastRange":[
        1. {
          • "lowAddress":"0001",
          • "highAddress":"2710"
          }
        ],
      • "allocatedGroupRange":[
        1. {
          • "lowAddress":"C000",
          • "highAddress":"FEFF"
          }
        ],
      • "allocatedSceneRange":[
        1. {
          • "firstScene":"0001",
          • "lastScene":"3333"
          }
        ]
      }
    ],
  • "nodes":[
    1. {
      • "UUID":"54E60E7AF26512D77BB26A09DB8B4F4A",
      • "name":"HubApp",
      • "deviceKey":"4E53CF9275A859FE7A6C23A68346E9AE",
      • "unicastAddress":"0001",
      • "security":"low",
      • "configComplete":true,
      • "features":{
        • "friend":2,
        • "lowPower":2,
        • "proxy":2,
        • "relay":2
        },
      • "defaultTTL":5,
      • "netKeys":[
        1. {
          • "index":0,
          • "updated":false
          }
        ],
      • "appKeys":[
        1. {
          • "index":0,
          • "updated":false
          }
        ],
      • "elements":[
        1. {
          • "name":"Element: 0x0001",
          • "index":0,
          • "location":"0000",
          • "models":[
            1. {
              • "modelId":"0001",
              • "bind":{
                },
              • "subscribe":{
                }
              }
            ]
          }
        ],
      • "blacklisted":false
      },
    2. {
      • "UUID":"8AFCE8A30CE395488C086922A42BB4C4",
      • "name":"My Node",
      • "deviceKey":"B36DCDBC3299A4AFFF970D0579E7FD52",
      • "unicastAddress":"0002",
      • "security":"low",
      • "configComplete":false,
      • "cid":"0059",
      • "pid":"0001",
      • "vid":"0001",
      • "crpl":"0028",
      • "features":{
        • "friend":2,
        • "lowPower":2,
        • "proxy":1,
        • "relay":1
        },
      • "defaultTTL":4,
      • "networkTransmit":{
        • "count":2,
        • "interval":1
        },
      • "netKeys":[
        1. {
          • "index":0,
          • "updated":false
          }
        ],
      • "appKeys":[
        1. {
          • "index":0,
          • "updated":false
          }
        ],
      • "elements":[
        1. {
          • "name":"Element: 0x0002",
          • "index":0,
          • "location":"0000",
          • "models":[
            1. {
              • "modelId":"0000",
              • "bind":{
                },
              • "subscribe":{
                }
              },
            2. {
              • "modelId":"0002",
              • "bind":[
                1. 0
                ],
              • "subscribe":{
                }
              },
            3. {
              • "modelId":"1000",
              • "bind":[
                1. 0
                ],
              • "subscribe":[
                1. "C000",
                2. "C001"
                ]
              },
            4. {
              • "modelId":"11111111",
              • "bind":[
                1. 0
                ],
              • "subscribe":{
                }
              }
            ]
          },
        2. {
          • "name":"Element: 0x0003",
          • "index":1,
          • "location":"0000",
          • "models":[
            1. {
              • "modelId":"1000",
              • "bind":[
                1. 0
                ],
              • "subscribe":[
                1. "C000",
                2. "C001"
                ]
              }
            ]
          },
        3. {
          • "name":"Element: 0x0004",
          • "index":2,
          • "location":"0000",
          • "models":[
            1. {
              • "modelId":"1000",
              • "bind":[
                1. 0
                ],
              • "subscribe":[
                1. "C000",
                2. "C001"
                ]
              }
            ]
          },
        4. {
          • "name":"Element: 0x0005",
          • "index":3,
          • "location":"0000",
          • "models":[
            1. {
              • "modelId":"1000",
              • "bind":[
                1. 0
                ],
              • "subscribe":[
                1. "C000",
                2. "C001"
                ]
              }
            ]
          }
        ],
      • "blacklisted":false
      }
    ]

}

Related