From 4e6ad3f1132c498df3bb66c3c8e9ddab3fbc9054 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Fri, 26 Feb 2021 13:23:03 +0100 Subject: [PATCH] add comments with the LTK steps --- .../pump/omnipod/dash/driver/comm/ltk/LTKExchanger.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/ltk/LTKExchanger.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/ltk/LTKExchanger.kt index fd436ce86a..e5c516fec8 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/ltk/LTKExchanger.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/ltk/LTKExchanger.kt @@ -10,6 +10,16 @@ import info.nightscout.androidaps.utils.extensions.hexStringToByteArray internal class LTKExchanger(private val aapsLogger: AAPSLogger,private val msgIO: MessageIO) { fun negociateLTKAndNonce(): LTK? { + // send SP1, SP2 + // send SPS1 + // read SPS1 + + // send SPS2 + // read SPS2 + + // send SP0GP0 + // read P0 + val msg = MessagePacket( destination = Address(byteArrayOf(1,2,3,4)), source = Address(byteArrayOf(5,6,7,8)),