@giejay thx for post.
But here I see some differences which can be the root cause of my problem. First of all you use noble BT driver(or some another), and it is working a bit different then our driver.
We dry to write an application in react-native, and noble is not supported in such environment.
Here is our lock command generation:
....
let data1 = Buffer.alloc(6);
data1.writeUInt8(LOCK_ACTION_LOCK, 0); // 0x02 is lock C
//data1.writeUInt8(0x00, 0); // TEST with fake command
data1.writeUInt32LE(this.clConfig.appId, 1);
data1.writeUInt8(0, 5); // no flags set
let wData = Buffer.concat([data1, nonceK]);
....
after writing to BT succesifull, monitor the characteristic do not retrieve any message.
Even worst, if we evidently send wrong command, same bahviour is happen, no message retrieved on monitoring characteristic a92ee202-…
From my understanding, the message is just ignored by device. and I have no idea why.
this is not encrypted lock command (HEX): 023200000000ec29c87a7de5f7567f1a1680d5521926ebba1dac6594ee7ef65ef3931942fe8b
this is decrypted nonce received from challenge command: 595d34000400ec29c87a7de5f7567f1a1680d5521926ebba1dac6594ee7ef65ef3931942fe8b3d68
some advices for further tests are welcome. We just stuck at this step. We would like to receive at least error, what is better then just silence
UPDATE:
Detected new things. After some time device is disconnected:
2019-11-05 23:14:35.390 32218-1486/com.bluetoothnuki I/ReactNativeJS: 'RCU ', ‘---- _lock writeWithResponse wCmdWithChecksum_b64 done. Data written to: a92ee202-5501-11e4-916c-0800200c9a66’
2019-11-05 23:15:02.563 6044-7289/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 150
2019-11-05 23:15:02.563 6044-7289/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 150
2019-11-05 23:15:02.583 6044-7289/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 150
2019-11-05 23:15:04.523 6044-8749/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 10
2019-11-05 23:15:04.523 6044-8749/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 10
2019-11-05 23:15:05.013 6044-6113/? I/PowerManagerService: [PWL] PARTIAL_WAKE_LOCK ‘gms_scheduler/com.google.android.gms/.clearcut.uploader.QosUploaderService’ ACQ=-18s158ms (uid=10025 pid=15559 ws=WorkSource{1010025 com.google.android.gms chains=WorkChain{(10025, clearcut)}})
2019-11-05 23:15:06.595 6044-7165/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 10
2019-11-05 23:15:06.596 6044-7165/? D/EnterpriseDeviceManagerService: getCallingOrCurrentUserId(): move: cxtInfo.mContainerId = 10
2019-11-05 23:15:07.258 32218-1486/com.bluetoothnuki I/ReactNativeJS: 'RCU ', ‘&&&&& Error in receiving data [a92ee101-5501-11e4-916c-0800200c9a66]: BleError: Device 54:D2:72:43:07:64 was disconnected’
2019-11-05 23:15:07.274 32218-1486/com.bluetoothnuki I/ReactNativeJS: 'RCU ', ‘&&&&& Error in receiving data [a92ee201-5501-11e4-916c-0800200c9a66]: BleError: Device 54:D2:72:43:07:64 was disconnected’
2019-11-05 23:15:07.286 32218-1486/com.bluetoothnuki I/ReactNativeJS: 'RCU ', ‘&&&&& Error in receiving data[a92ee202-5501-11e4-916c-0800200c9a66]: BleError: Device 54:D2:72:43:07:64 was disconnected’