Bare in mind I have ported from the C# code to C (with mbedtls)
I eventually figured out that name is actually the device name (NBScooter0204 for me) and that there is no checksum (maybe the README needs updated to make this clearer)
So I set the name to 'NBScooter0204' (and zero pad to 16 bytes)
encode and send 3E215B00 to the dash
receive and decode 213E5B01 + bleKey + Serial Number
But when I encode and send 3E215C00 + 16x random bytes
The dash fails to respond.
Has anyone had success/traps/failures with this?
Obviously I figured I had mis-ported something, so have spent hours comparing my C version with the C#/Swift/Kotlin and it appears to be functionally the same.
IAP successfully connects, and I have compared it's packet log with mine, and it all decode successfully.
I'm happy to push the C port now/once its working. (just let me know how)
Bare in mind I have ported from the C# code to C (with mbedtls)
I eventually figured out that name is actually the device name (NBScooter0204 for me) and that there is no checksum (maybe the README needs updated to make this clearer)
So I set the name to 'NBScooter0204' (and zero pad to 16 bytes) encode and send 3E215B00 to the dash receive and decode 213E5B01 + bleKey + Serial Number
But when I encode and send 3E215C00 + 16x random bytes The dash fails to respond.
Has anyone had success/traps/failures with this?
Obviously I figured I had mis-ported something, so have spent hours comparing my C version with the C#/Swift/Kotlin and it appears to be functionally the same.
IAP successfully connects, and I have compared it's packet log with mine, and it all decode successfully.
I'm happy to push the C port now/once its working. (just let me know how)