flutter nordic_nrf_mesh 0.13.0 package cannot be provisioned

Developed using flutter nordic_nrf_mesh 0.13.0 package, but the example in it did not go well when tested. Provisioning failed halfway. Attached is the LOG file and video.

🥂 [DoozMeshManagerApi] Received flutter call : loadMeshNetwork
🥂 [DoozMeshNetwork] Received flutter call : nodes
🥂 [DoozMeshNetwork] Received flutter call : groups
🥂 [DoozProvisionedDevice] Received flutter call : unicastAddress
flutter: deviceUuid: c4c2e622-6639-4ee6-bb3d-19dd99c6f119
flutter: [NordicNrfMesh] calling disconnect without connected device..
flutter: [NordicNrfMesh] received unexpected connection state update : ConnectionStateUpdate(deviceId: 4A230F6C-E7EB-8ACA-CECA-FA318DDB7249, connectionState: DeviceConnectionState.connecting, failure: null)
flutter: [NordicNrfMesh] received ConnectionStateUpdate(deviceId: 4A230F6C-E7EB-8ACA-CECA-FA318DDB7249, connectionState: DeviceConnectionState.connected, failure: null)
flutter: [NordicNrfMesh] services [DiscoveredService(serviceId: 1827, serviceInstanceId: 0, characteristicIds: [2adb, 2adc], characteristics: [DiscoveredCharacteristic(characteristicId: 2adb, serviceId: 1827), DiscoveredCharacteristic(characteristicId: 2adc, serviceId: 1827)], includedServices: [])]
🥂 [DoozMeshManagerApi] Received flutter call : setMtuSize
flutter: [NordicNrfMesh] connect took 817ms
🥂 [DoozMeshManagerApi] Received flutter call : identifyNode
[DoozProvisioningManager] Requesting Provisioning Capabilities
[DoozProvisioningManager] Sending Provisioning Invite (attention timer: 5 sec)
🥂 [DoozMeshManagerApi] Received flutter call : handleNotifications
[DoozProvisioningManager] Device Capabilities: Number of elements: 2
Algorithms: FIPS P-256 Elliptic Curve
Public Key Type: None
Static OOB Type: None
Output OOB Size: 1
Output OOB Actions: Blink, Output Numeric, Output Alphanumeric
Input OOB Size: 1
Input OOB Actions: Push received
[DoozProvisioningManager] Provisioning Capabilities received
🥂 [DoozUnprovisionedDevice] Received flutter call : getNumberOfElements
🥂 [DoozMeshManagerApi] Received flutter call : provisioning
[DoozProvisioningManager] Provisioning started
[DoozProvisioningManager] Sending Provisioning Start (algorithm: FIPS P-256 Elliptic Curve, public Key: No OOB Public Key, authentication Method: No OOB)
[DoozProvisioningManager] Sending Provisioner Public Key (0xB267EC2A72BCC9309E9B6629E2F6707A6244FB2E2B1FF09980717CDBD5E79EBDD2D683BE0A6256131EF32118E7BC0873E77572022DE29C3E0DA0F7B8F21CBD16)
🥂 [DoozMeshManagerApi] Received flutter call : handleNotifications
[DoozProvisioningManager] Error: Invalid format received
[DoozProvisioningManager] Provisioning failed: Invalid format
flutter: [NordicNrfMesh] caught error during provisioning... NrfMeshProvisioningException(ProvisioningFailureCode.provisioningFailed, Failed to provision device 4A230F6C-E7EB-8ACA-CECA-FA318DDB7249)
flutter: [NordicNrfMesh] should cancel provisioning
🥂 [DoozMeshManagerApi] Received flutter call : cachedProvisionedMeshNodeUuid
🥂 [DoozMeshManagerApi] Received flutter call : cleanProvisioningData
flutter: [NordicNrfMesh] received ConnectionStateUpdate(deviceId: 4A230F6C-E7EB-8ACA-CECA-FA318DDB7249, connectionState: DeviceConnectionState.disconnected, failure: null)
flutter: Error unsubscribing from notifications: PlatformException(reactive_ble_mobile.Central.(unknown context at $100edd1f0).Failure:1, The operation couldn’t be completed. (reactive_ble_mobile.Central.(unknown context at $100edd1f0).Failure error 1.), {}, null)

Parents
  • Hello,

    Error 2: "Invalid format" is sent as a response from the provisioned device. The device is sending it as a response to either Provisioning Start or Provisioning Public Key message (hard to say, as they're sent one after another).

    Did you try using the nRF Mesh app to provision the device? Does it work with No OOB like you're trying in your app?

    Does the same app work on Android, where the Android library is used by the Flutter plugin?

Reply
  • Hello,

    Error 2: "Invalid format" is sent as a response from the provisioned device. The device is sending it as a response to either Provisioning Start or Provisioning Public Key message (hard to say, as they're sent one after another).

    Did you try using the nRF Mesh app to provision the device? Does it work with No OOB like you're trying in your app?

    Does the same app work on Android, where the Android library is used by the Flutter plugin?

Children
No Data
Related