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

I am able to provision the device. But not able to get the composition data.

Hi, I am trying the to create a mesh application using iOS nRFMESH SDK. I am able to provision the device but i am not able to get data from the getCompositionData method.

The MeshNetworkDelegate always returns to below method.

func meshNetworkManager(_ manager: MeshNetworkManager,

                            failedToSendMessage message: MeshMessage,

                            from localElement: Element, to destination: Address,

                            error: Error) { }

Not sure what error i have done. On high level i have checked for node.isCompositionDataReceived which in turn moves to getCompositionData which is always giving error in ConfigurationViewController.

Parents Reply Children
  • Hi Amrith, 

    Please get the log on the phone as it can provide information about what's going on. To enable logging, please follow the suggestion bellow: 

    The sample app logs can be seen in the app called Console. This is standard logging tool on Mac.

    If they use the library in their app, they need to set logger delegate to MeshNetworkManager and Bearers to get full logging. Then they need to print it or send to Console, like the sample app is doing.

    https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library/blob/45e12224e8b5f2d45659e99dddda966b1ba17789/Example/nRFMeshProvision/AppDelegate.swift#L57

    https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library/blob/45e12224e8b5f2d45659e99dddda966b1ba17789/Example/nRFMeshProvision/AppDelegate.swift#L137

    Also you can try capture a sniffer trace of the communication between the phone and the device. It can also give us some information. 

  • How to open the bearer before getting the compositionData? Logs shows that bearer is closed. 

    It first shows request timed out as bearer is closed. Later after some time, centralManager delegate is called in and bearer opens and sends the data to getCompositionData. But the message received doesnot come under any of the switch case in ConfigurationViewController MeshNetworkDelegate which should have been ConfigCompositionDataStatus.

    in sample app - Once the provisioning method is called and provisioning is complete, bearer closes and again centralManager delegate is called along with its methods. But when sdk is used, it doesnot call the centralManager delegate which is only called in the viewDidAppear of the ConfigurationViewController.

  • Adding log from console as below

    2020-02-12 11:54:40.141018+0530 BLEMeshPOC[903:131198] [Network] Sending Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 5, seq: 514, src: 0001, dst: 0002, transportPdu: 0x69BFCC41AA52AB43, netMic: 0xFA1F4E39) encrypted using Primary Network Key (index: 0)

    2020-02-12 11:54:40.978235+0530 BLEMeshPOC[903:130806] [Bearer] Data Out notifications enabled

    2020-02-12 11:54:40.978573+0530 BLEMeshPOC[903:130806] [Bearer] GATT Bearer open and ready

    2020-02-12 11:55:08.285518+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x41010076515D3CCD865F630000000025CB1671D1

    2020-02-12 11:55:08.286379+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC1826B86

    2020-02-12 11:55:08.298597+0530 BLEMeshPOC[903:131347] [Access] Resending Access PDU (opcode: 0x8008, parameters: 0x00)

    2020-02-12 11:55:08.301957+0530 BLEMeshPOC[903:131348] [Network] Secure Network Beacon (Network ID: 76515D3CCD865F63, IV Index: 0, Key Refresh Flag: false, IV Update active: false) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:08.306826+0530 BLEMeshPOC[903:131348] [Proxy] New Proxy connected

    2020-02-12 11:55:08.314051+0530 BLEMeshPOC[903:131198] [LowerTransport] The bearer is closed.

    2020-02-12 11:55:08.317357+0530 BLEMeshPOC[903:131347] [UpperTransport] Sending Upper Transport PDU (encrypted data: 0x61EF5F, transMic: 0xE239475A) encrypted using key: Unknown device's Device Key

    2020-02-12 11:55:08.319356+0530 BLEMeshPOC[903:131347] [LowerTransport] Sending Access Message (akf: 0, szmic: 0, data: 0x61EF5FE239475A)

    2020-02-12 11:55:08.325461+0530 BLEMeshPOC[903:131198] [Proxy] Sending SetFilterType(filterType: Whitelist) from: 0001 to: 0000

    2020-02-12 11:55:08.326956+0530 BLEMeshPOC[903:131198] [Network] Sending Control Message (opCode: 0x00, data: 0x00)

    2020-02-12 11:55:08.330222+0530 BLEMeshPOC[903:131347] [Network] Sending Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 5, seq: 515, src: 0001, dst: 0002, transportPdu: 0xDCD982FF13D5F716, netMic: 0x0FCBBA67) encrypted using Primary Network Key (index: 0)

    2020-02-12 11:55:08.332995+0530 BLEMeshPOC[903:131347] [Bearer] -> 0x407BACB2088941E12CE8DCD982FF13D5F7160FCB

    2020-02-12 11:55:08.337482+0530 BLEMeshPOC[903:130806] [Bearer] -> 0xC0BA67

    2020-02-12 11:55:08.342080+0530 BLEMeshPOC[903:131198] [Network] Sending Network PDU (ivi: 0, nid: 0x7B, ctl: 1, ttl: 0, seq: 516, src: 0001, dst: 0000, transportPdu: 0xABEB, netMic: 0x99A1BE25DAC066F5) encrypted using Primary Network Key (index: 0)

    2020-02-12 11:55:08.343859+0530 BLEMeshPOC[903:131198] [Bearer] -> 0x027B38E01441626BE485ABEB99A1BE25DAC066F5

    2020-02-12 11:55:08.582461+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x427B4A970488F8906CD22C6E1132FECDACA7ADDA

    2020-02-12 11:55:08.583088+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC25934

    2020-02-12 11:55:08.590479+0530 BLEMeshPOC[903:131198] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 1, ttl: 0, seq: 257, src: 0002, dst: 0000, transportPdu: 0x2C6E1132, netMic: 0xFECDACA7ADDA5934) received

    2020-02-12 11:55:08.592956+0530 BLEMeshPOC[903:131198] [Network] Control Message (opCode: 0x03, data: 0x000000) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:08.596123+0530 BLEMeshPOC[903:131198] [Proxy] FilterStatus(filterType: Whitelist, listSize: 0) received from: 0002 to: 0000

    2020-02-12 11:55:08.599539+0530 BLEMeshPOC[903:131372] [Proxy] Sending AddAddressesToFilter(addresses: Set([65535, 1])) from: 0001 to: 0000

    2020-02-12 11:55:08.601927+0530 BLEMeshPOC[903:131372] [Network] Sending Control Message (opCode: 0x01, data: 0xFFFF0001)

    2020-02-12 11:55:08.609503+0530 BLEMeshPOC[903:131372] [Network] Sending Network PDU (ivi: 0, nid: 0x7B, ctl: 1, ttl: 0, seq: 517, src: 0001, dst: 0000, transportPdu: 0x1D4DC694DF, netMic: 0xDCABCE82D0EA23A0) encrypted using Primary Network Key (index: 0)

    2020-02-12 11:55:08.611718+0530 BLEMeshPOC[903:131372] [Bearer] -> 0x427B2F94E271DDF82D151D4DC694DFDCABCE82D0

    2020-02-12 11:55:08.615413+0530 BLEMeshPOC[903:130806] [Bearer] -> 0xC2EA23A0

    2020-02-12 11:55:08.859852+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x427B99FDB9C717E5F556FDF24AEB17BE799D5D46

    2020-02-12 11:55:08.860490+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC2E1FF

    2020-02-12 11:55:08.864589+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 1, ttl: 0, seq: 267, src: 0002, dst: 0000, transportPdu: 0xFDF24AEB, netMic: 0x17BE799D5D46E1FF) received

    2020-02-12 11:55:08.866882+0530 BLEMeshPOC[903:131372] [Network] Control Message (opCode: 0x03, data: 0x000002) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:08.869349+0530 BLEMeshPOC[903:131372] [Proxy] FilterStatus(filterType: Whitelist, listSize: 2) received from: 0002 to: 0000

    2020-02-12 11:55:09.137721+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B161986DC137388D61C9AC56CE9EE93756401

    2020-02-12 11:55:09.138521+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC05A64AE58AD1CB0E66459

    2020-02-12 11:55:09.143814+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 268, src: 0002, dst: 0001, transportPdu: 0x1C9AC56CE9EE937564015A64AE58AD1C, netMic: 0xB0E66459) received

    2020-02-12 11:55:09.154727+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 0, segN: 7, data: 0xE90FD5A7670924444D45C857) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.415509+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B2D9F6FBBFDB7F848F59BD0B14A3F79B96D80

    2020-02-12 11:55:09.416357+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC05B27BE798BC8089C0454

    2020-02-12 11:55:09.417377+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B321A43294FE495F99D14064035F6AE8BCB0A

    2020-02-12 11:55:09.418037+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0F169725955023FDBB554

    2020-02-12 11:55:09.426202+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 269, src: 0002, dst: 0001, transportPdu: 0xF59BD0B14A3F79B96D805B27BE798BC8, netMic: 0x089C0454) received

    2020-02-12 11:55:09.429122+0530 BLEMeshPOC[903:131198] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 270, src: 0002, dst: 0001, transportPdu: 0x9D14064035F6AE8BCB0AF16972595502, netMic: 0x3FDBB554) received

    2020-02-12 11:55:09.438092+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 1, segN: 7, data: 0x6510B7F9A130E6885F82112A) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.443783+0530 BLEMeshPOC[903:131198] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 2, segN: 7, data: 0x253A1FAB702CC75A8ABDBF6B) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.552546+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BD3E9675293506D8FCC5839BFE6AF3B734146

    2020-02-12 11:55:09.553154+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC07408DE5DD6D7F7A35BB4

    2020-02-12 11:55:09.553684+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B6A5D06DE11FAD970A156BD5E43B4A3EE94E4

    2020-02-12 11:55:09.554156+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0E26CC8958F18494C532A

    2020-02-12 11:55:09.562886+0530 BLEMeshPOC[903:131348] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 271, src: 0002, dst: 0001, transportPdu: 0xCC5839BFE6AF3B7341467408DE5DD6D7, netMic: 0xF7A35BB4) received

    2020-02-12 11:55:09.595645+0530 BLEMeshPOC[903:131198] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 272, src: 0002, dst: 0001, transportPdu: 0xA156BD5E43B4A3EE94E4E26CC8958F18, netMic: 0x494C532A) received

    2020-02-12 11:55:09.595659+0530 BLEMeshPOC[903:131348] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 3, segN: 7, data: 0x9159FC106D898A0E4B448EDB) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.599456+0530 BLEMeshPOC[903:131198] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 4, segN: 7, data: 0x76373459977E9033A64A5A98) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.691029+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B9E7935871B70ED2E12761DCB2C8DAE2E9A23

    2020-02-12 11:55:09.691365+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0FD5C1CA0E77250F8667B

    2020-02-12 11:55:09.691744+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B861ADB89953570BB0C5D1082EF933F04C9DE

    2020-02-12 11:55:09.692849+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC016BD1D96782AF06487E5

    2020-02-12 11:55:09.695509+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 273, src: 0002, dst: 0001, transportPdu: 0x12761DCB2C8DAE2E9A23FD5C1CA0E772, netMic: 0x50F8667B) received

    2020-02-12 11:55:09.695597+0530 BLEMeshPOC[903:131198] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 274, src: 0002, dst: 0001, transportPdu: 0x0C5D1082EF933F04C9DE16BD1D96782A, netMic: 0xF06487E5) received

    2020-02-12 11:55:09.699623+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 5, segN: 7, data: 0xEDA579F4EFB0D968D6CB6623) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.702862+0530 BLEMeshPOC[903:131198] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 6, segN: 7, data: 0xD42264F0F6111639E517A701) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.830068+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BA57520AC4F20F43E7322FB865C8F303B8D5C

    2020-02-12 11:55:09.830501+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC04DBCC8A4523320388E14

    2020-02-12 11:55:09.831009+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B4EC1458BBEFCDEE1F35770D4460CFBAC1EF4

    2020-02-12 11:55:09.831763+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC09CD96C0DDB3A2D54503E

    2020-02-12 11:55:09.835685+0530 BLEMeshPOC[903:131198] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 277, src: 0002, dst: 0001, transportPdu: 0xF35770D4460CFBAC1EF49CD96C0DDB3A, netMic: 0x2D54503E) received

    2020-02-12 11:55:09.837914+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 276, src: 0002, dst: 0001, transportPdu: 0x7322FB865C8F303B8D5C4DBCC8A45233, netMic: 0x20388E14) received

    2020-02-12 11:55:09.841149+0530 BLEMeshPOC[903:131198] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 1, segN: 7, data: 0x6510B7F9A130E6885F82112A) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.845585+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 0, segN: 7, data: 0xE90FD5A7670924444D45C857) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.969275+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BF9703A406FECF756BEBD94D19911CBFC0328

    2020-02-12 11:55:09.969825+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC02748C3ED34233CC8AFAD

    2020-02-12 11:55:09.970491+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BA4F3B8E15FCCCE9A04ADFE175AA38A8DC115

    2020-02-12 11:55:09.970938+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC080C3E57081EAA3F225F9

    2020-02-12 11:55:09.976495+0530 BLEMeshPOC[903:131348] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 278, src: 0002, dst: 0001, transportPdu: 0xBEBD94D19911CBFC03282748C3ED3423, netMic: 0x3CC8AFAD) received

    2020-02-12 11:55:09.979220+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 279, src: 0002, dst: 0001, transportPdu: 0x04ADFE175AA38A8DC11580C3E57081EA, netMic: 0xA3F225F9) received

    2020-02-12 11:55:09.983770+0530 BLEMeshPOC[903:131348] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 2, segN: 7, data: 0x253A1FAB702CC75A8ABDBF6B) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:09.988503+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 3, segN: 7, data: 0x9159FC106D898A0E4B448EDB) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:10.088772+0530 BLEMeshPOC[903:131372] [LowerTransport] Sending ACK (seqZero: 258, blockAck: 0x0000007F)

    2020-02-12 11:55:10.094537+0530 BLEMeshPOC[903:131372] [Network] Sending Network PDU (ivi: 0, nid: 0x7B, ctl: 1, ttl: 5, seq: 518, src: 0001, dst: 0002, transportPdu: 0x412E6B5D0738F1, netMic: 0x5456CB47B2E18432) encrypted using Primary Network Key (index: 0)

    2020-02-12 11:55:10.097202+0530 BLEMeshPOC[903:131372] [Bearer] -> 0x407B8E0CC5E2CACDB174412E6B5D0738F15456CB

    2020-02-12 11:55:10.100632+0530 BLEMeshPOC[903:130806] [Bearer] -> 0xC047B2E18432

    2020-02-12 11:55:10.107876+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BEFDAAB9F4C750979CF57013BA3C26B156CA1

    2020-02-12 11:55:10.108444+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC08B7AF0B64AF29A1687D9

    2020-02-12 11:55:10.109114+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B1BFC3057CA4ECCF2179A47BE440867D8F4C6

    2020-02-12 11:55:10.113381+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 280, src: 0002, dst: 0001, transportPdu: 0xCF57013BA3C26B156CA18B7AF0B64AF2, netMic: 0x9A1687D9) received

    2020-02-12 11:55:10.118230+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 4, segN: 7, data: 0x76373459977E9033A64A5A98) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:10.247094+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0632C676F95867467AF6E

    2020-02-12 11:55:10.248183+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B4D335ACA9930E3D6CF116EDDBB6284F74C89

    2020-02-12 11:55:10.248844+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC04A847ED19E3FEB2F1B58

    2020-02-12 11:55:10.255009+0530 BLEMeshPOC[903:131198] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 281, src: 0002, dst: 0001, transportPdu: 0x179A47BE440867D8F4C6632C676F9586, netMic: 0x7467AF6E) received

    2020-02-12 11:55:10.258096+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 282, src: 0002, dst: 0001, transportPdu: 0xCF116EDDBB6284F74C894A847ED19E3F, netMic: 0xEB2F1B58) received

    2020-02-12 11:55:10.264655+0530 BLEMeshPOC[903:131198] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 5, segN: 7, data: 0xEDA579F4EFB0D968D6CB6623) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:10.270408+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 6, segN: 7, data: 0xD42264F0F6111639E517A701) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:10.386475+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B0759805AE1E61800A26C7B0AEF539D0BEF0B

    2020-02-12 11:55:10.387319+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC02AAF784B88E5F7F3FFA4

    2020-02-12 11:55:10.388305+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B76B65AA64415DA5F08EBD528CA918EF3A8D4

    2020-02-12 11:55:10.388962+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0AB5F12A2410AF7C00FB7

    2020-02-12 11:55:10.396654+0530 BLEMeshPOC[903:131348] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 283, src: 0002, dst: 0001, transportPdu: 0xA26C7B0AEF539D0BEF0B2AAF784B88E5, netMic: 0xF7F3FFA4) received

    2020-02-12 11:55:10.399709+0530 BLEMeshPOC[903:131372] [Network] Network PDU (ivi: 0, nid: 0x7B, ctl: 0, ttl: 4, seq: 284, src: 0002, dst: 0001, transportPdu: 0x08EBD528CA918EF3A8D4AB5F12A2410A, netMic: 0xF7C00FB7) received

    2020-02-12 11:55:10.403643+0530 BLEMeshPOC[903:131348] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 7, segN: 7, data: 0x3D6FAEBC16F7CC17C20D21C3) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:10.407468+0530 BLEMeshPOC[903:131348] [LowerTransport] Access Message (akf: 0, szmic: 0, data: 0xE90FD5A7670924444D45C8576510B7F9A130E6885F82112A253A1FAB702CC75A8ABDBF6B9159FC106D898A0E4B448EDB76373459977E9033A64A5A98EDA579F4EFB0D968D6CB6623D42264F0F6111639E517A7013D6FAEBC16F7CC17C20D21C3) received

    2020-02-12 11:55:10.409866+0530 BLEMeshPOC[903:131198] [LowerTransport] Sending ACK (seqZero: 258, blockAck: 0x000000FF)

    2020-02-12 11:55:10.414887+0530 BLEMeshPOC[903:131372] [LowerTransport] Segmented Access Message (akf: 0, szmic: 0, seqZero: 258, segO: 7, segN: 7, data: 0x3D6FAEBC16F7CC17C20D21C3) receieved (decrypted using key: Primary Network Key (index: 0))

    2020-02-12 11:55:10.416279+0530 BLEMeshPOC[903:131372] [LowerTransport] Message already acknowledged, sending ACK again

    2020-02-12 11:55:10.417421+0530 BLEMeshPOC[903:131372] [LowerTransport] Sending ACK (seqZero: 258, blockAck: 0x000000FF)

    2020-02-12 11:55:10.419476+0530 BLEMeshPOC[903:131348] [UpperTransport] Upper Transport PDU (encrypted data: 0xE90FD5A7670924444D45C8576510B7F9A130E6885F82112A253A1FAB702CC75A8ABDBF6B9159FC106D898A0E4B448EDB76373459977E9033A64A5A98EDA579F4EFB0D968D6CB6623D42264F0F6111639E517A7013D6FAEBC16F7CC17, transMic: 0xC20D21C3) received

    (lldb) po public var opCode: UInt32

    error: <EXPR>:3:1: error: attribute 'public' can only be used in a non-local scope

    public var opCode: UInt32

    ^

    2020-02-12 11:55:27.817644+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BA0ACF2A369E83B7152FE15EAEA1FE01B3708

    2020-02-12 11:55:27.818431+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0E489BCC946DF3EEA4FC2

    2020-02-12 11:55:27.820144+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B1EB67FAF321460F47EB89747029D8ABC4D0A

    2020-02-12 11:55:27.820856+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0DE4350F2C4E488EBD94E

    2020-02-12 11:55:27.822218+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B0B5D26E33EE14950D2B2157A92BA43FCB67B

    2020-02-12 11:55:27.823294+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC012683486B07BA6F32682

    2020-02-12 11:55:27.824567+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407BA6757BCBBB3EA776C8CEA576B5771923A9F0

    2020-02-12 11:55:27.828837+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0EE3F59F13B25DECB0D85

    2020-02-12 11:55:27.829831+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B6C6170A7D690B58F8A21210520A5BCCC3C42

    2020-02-12 11:55:27.833759+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0626AF4CF3C8D3B825CAA

    2020-02-12 11:55:27.835712+0530 BLEMeshPOC[903:130806] [Bearer] <- 0x407B5368816629662C8E302CF82C7A5B7A8B6786

    2020-02-12 11:55:27.836581+0530 BLEMeshPOC[903:130806] [Bearer] <- 0xC0580FC24D6DB78E64D696

    2020-02-12 11:55:27.849971+0530 BLEMeshPOC[903:131198] [Network] Sending Network PDU (ivi: 0, nid: 0x7B, ctl: 1, ttl: 5, seq: 519, src: 0001, dst: 0002, transportPdu: 0x03688EC2AF248E, netMic: 0x79E959B737CEA0AB) encrypted using Primary Network Key (index: 0)

    2020-02-12 11:55:34.112584+0530 BLEMeshPOC[903:131198] [Bearer] -> 0x407B91200E8B57CD2FB303688EC2AF248E79E959

    2020-02-12 11:55:34.121280+0530 BLEMeshPOC[903:131348] [Access] Response Access PDU (opcode: 0x 2, parameters: 0x003601CE001F0C7E000F0000000D05000002000410031204120010061007100210001301130110031036010100360100003601020036010B0036010E00000005010F13101300100110031036010C00000002010010051236010500) receieved (decrypted using key: Unknown device's Device Key)

  • As seen in log, GATT bearer is ready and open, but the message received is 

    UnknownMessage(opCode: 0x000002, parameters: 003601CE001F0C7E000F0000000D05000002000410031204120010061007100210001301130110031036010100360100003601020036010B0036010E00000005010F13101300100110031036010C00000002010010051236010500)

      - opCode : 2

      ▿ parameters : Optional<Data>

        ▿ some : 91 bytes

          - count : 91

          ▿ pointer : 0x00000002802bc960

            - pointerValue : 10740287840

  • As stated in the documentation (https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library/blob/master/Documentation/GETTING_STARTED.md#local-elements-and-models) you need to set your localElements in the manager. This can be set to an empty array (localElements = []) if you don't need it, but needs to be set. The setter initializes ConfigurationServer model, which is responsible for parsing the CompositionDataStatus message.

Related