From 12e1b95bf5703fc7cb451dda3e807a97db91e393 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Tue, 26 Apr 2022 21:23:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20make=20more=20readable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nut-reverseengineering.md | 52 ++++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/nut-reverseengineering.md b/nut-reverseengineering.md index 85d5aa1..df6aaab 100644 --- a/nut-reverseengineering.md +++ b/nut-reverseengineering.md @@ -5,30 +5,42 @@ command used: -### report id 0x06 -`06` **64** e4 08 -RemainingCapacity, Offset: 0, Size: 8, Value: **100** -_0x64 => 100_ +## report id 0x06 +``` +RAW RESPONSE: 06 [64] e4 08 +NUT DEBUG LOG: RemainingCapacity, Offset: 0, Size: 8, Value: 100 +BYTE(S) DECODED: 0x64 => 100 +``` -`06` 64 **e4 08** -RunTimeToEmpty, Offset: 8, Size: 16, Value: **2276** -_0x08e4 => 2276_ +``` +RAW RESPONSE: 06 64 [e4 08] +NUT DEBUG LOG: RunTimeToEmpty, Offset: 8, Size: 16, Value: 2276 +BYTE(S) DECODED: 0x08e4 => 2276 +``` -### report id 0x01 -`01` **01** 00 01 00 01 00 00 -ACPresent, Offset: 0, Size: 8, Value: **1** -_0x01 => 1 => true_ +## report id 0x01 +``` +RAW RESPONSE: 01 [01] 00 01 00 01 00 00 +NUT DEBUG LOG: ACPresent, Offset: 0, Size: 8, Value: 1 +BYTE(S) DECODED: 0x01 => 1 => true +``` -`01` 01 **00** 01 00 01 00 00 -BelowRemainingCapacityLimit, Offset: 8, Size: 8, Value: **0** -_0x00 => 0 => false_ +``` +RAW RESPONSE: 01 01 [00] 01 00 01 00 00 +NUT DEBUG LOG: BelowRemainingCapacityLimit, Offset: 8, Size: 8, Value: 0 +BYTE(S) DECODED: 0x00 => 0 => false +``` -`01` 01 00 **01** 00 01 00 00 -Charging, Offset: 16, Size: 8, Value: **1** -_0x01 => 1 => true_ +``` +RAW RESPONSE: 01 01 00 [01] 00 01 00 00 +NUT DEBUG LOG: Charging, Offset: 16, Size: 8, Value: 1 +BYTE(S) DECODED: 0x01 => 1 => true +``` -`01` 01 00 01 **00** 01 00 00 -Discharging, Offset: 24, Size: 8, Value: **0** -_0x00 => 0 => false_ +``` +RAW RESPONSE: 01 01 00 01 [00] 01 00 00 +NUT DEBUG LOG: Discharging, Offset: 24, Size: 8, Value: 0 +BYTE(S) DECODED: 0x00 => 0 => false +```