andyrozman / RileyLinkAAPS

This is test app for testing RileyLink communication with a pump (first with Medtronic and later with Omnipod)
28 stars 24 forks source link

Set TBR command fail on 523 pump #48

Open jcwarrior opened 6 years ago

jcwarrior commented 6 years ago

With Roundtrip2 code at 31 July 2018, the command "set TBR" with 0.1u and 1 hour didn't work.

08-02 23:51:13.801 3045 3865 I ShowAAPS2Activity: [Thread-6] INFO [com.gxwtech.roundtrip2.ShowAAPS2Activity$4:386]: start Action: Set TBR 08-02 23:51:13.801 3045 3865 I RileyLinkCommunicationManager: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.RileyLinkCommunicationManager:124]: Waking pump... 08-02 23:51:13.802 3045 3865 I MedtronicUtil: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpMedtronic.util.MedtronicUtil:232]: A7 93 53 69 8D 00 08-02 23:51:13.902 3045 3865 D RFSpyReader: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpyReader:66]: Got data [null] at t==121597836 08-02 23:51:17.624 3045 3070 D RFTools : [Binder:3045_2] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RileyLinkBLE$1:78]: Response Count is 0C 08-02 23:51:18.415 3045 3865 D RFSpyReader: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpyReader:64]: Got data [47 02 A9 66 63 96 39 99 68 D5 59 56 38 E5 8F 28 E3 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 2F 25] at t==121602347 08-02 23:51:18.420 3045 3865 I RFSpy : [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpy:140]: writeToData: decoded radio response is A7 93 53 69 8D 09 03 35 32 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08-02 23:51:18.424 3045 3865 I RileyLinkCommunicationManager: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.RileyLinkCommunicationManager:128]: wakeup: raw response is 47 02 A9 66 63 96 39 99 68 D5 59 56 38 E5 8F 28 E3 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 2F 25 08-02 23:51:18.427 3045 3865 D MedtronicCommunicationManager: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpMedtronic.comm.MedtronicCommunicationManager:663]: Set TBR: Body - 05 04 00 00 04 00 08-02 23:51:18.429 3045 3865 D MedtronicCommunicationManager: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpMedtronic.comm.MedtronicCommunicationManager:138]: Run command with Args: 08-02 23:51:18.431 3045 3865 I RileyLinkCommunicationManager: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.RileyLinkCommunicationManager:75]: Sent:A7 93 53 69 4C 00 08-02 23:51:18.533 3045 3865 D RFSpyReader: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpyReader:66]: Got data [null] at t==121602466 08-02 23:51:18.892 3045 3070 D RFTools : [Binder:3045_2] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RileyLinkBLE$1:78]: Response Count is 0D 08-02 23:51:19.189 3045 3865 D RFSpyReader: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpyReader:64]: Got data [47 03 A9 66 63 96 39 99 56 65 55 B1 65] at t==121603121 08-02 23:51:19.191 3045 3865 I RFSpy : [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpy:140]: writeToData: decoded radio response is A7 93 53 69 06 00 08-02 23:51:19.193 3045 3865 I RileyLinkCommunicationManager: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.RileyLinkCommunicationManager:91]: Received:A7 93 53 69 06 00 08-02 23:51:19.195 3045 3865 D MedtronicCommunicationManager: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpMedtronic.comm.MedtronicCommunicationManager:145]: Run command with Args: Got ACK response 08-02 23:51:19.201 3045 3865 I RileyLinkCommunicationManager: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.RileyLinkCommunicationManager:75]: Sent:A7 93 53 69 4C 05 04 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08-02 23:51:19.308 3045 3865 D RFSpyReader: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpyReader:66]: Got data [null] at t==121603240 08-02 23:51:20.306 3045 3070 D RFTools : [Binder:3045_2] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RileyLinkBLE$1:78]: Response Count is 0E 08-02 23:51:20.603 3045 3865 D RFSpyReader: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpyReader:64]: Got data [47 04 A9 66 63 96 39 99 C6 55 59 6B 45] at t==121604536 08-02 23:51:20.605 3045 3865 I RFSpy : [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.ble.RFSpy:140]: writeToData: decoded radio response is A7 93 53 69 15 09 08-02 23:51:20.608 3045 3865 I RileyLinkCommunicationManager: [Thread-6] INFO [info.nightscout.androidaps.plugins.PumpCommon.hw.rileylink.RileyLinkCommunicationManager:91]: Received:A7 93 53 69 15 09 08-02 23:51:20.610 3045 3865 D MedtronicCommunicationManager: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpMedtronic.comm.MedtronicCommunicationManager:148]: 2nd Response: PumpMessage [packetType=Invalid, address=(93 53 69 ), commandType=CommandNAK, messageBody=(UnknownMessageBody [txData=09 ])] 08-02 23:51:20.611 3045 3865 D MedtronicCommunicationManager: [Thread-6] DEBUG [info.nightscout.androidaps.plugins.PumpMedtronic.comm.MedtronicCommunicationManager:671]: Set TBR: PumpMessage [response=NOT Acknowledged]

jcwarrior commented 6 years ago

Works well after 58fa245 commit