Hi all,

my korad ka3005p reports itself as being v5.5 and with this patch I can use it with smuview.

It is also available at my github: https://github.com/wgoossens/libsigrok/tree/feature/korad-ka3005p-v5.5


Walter Goossens

>From 8b58a519e4d9e972f2cfc2f05ab2fc2c9f3fd591 Mon Sep 17 00:00:00 2001
From: Walter Goossens <waltergooss...@creative-embedded.com>
Date: Sat, 20 Jun 2020 21:54:07 +0200
Subject: [PATCH] korad-kaxxxxp: Add KA3005P v5.5

Signed-off-by: Walter Goossens <waltergooss...@creative-embedded.com>
---
 src/hardware/korad-kaxxxxp/api.c      | 2 ++
 src/hardware/korad-kaxxxxp/protocol.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/hardware/korad-kaxxxxp/api.c b/src/hardware/korad-kaxxxxp/api.c
index 21ab6844..3c9a2718 100644
--- a/src/hardware/korad-kaxxxxp/api.c
+++ b/src/hardware/korad-kaxxxxp/api.c
@@ -60,6 +60,8 @@ static const struct korad_kaxxxxp_model models[] = {
 		"KORADKA3005PV2.0\xBC", 1, {0, 31, 0.01}, {0, 5.1, 0.001}},
 	{KORAD_KA3005P_V42, "Korad", "KA3005P",
 		"KORAD KA3005P V4.2", 1, {0, 31, 0.01}, {0, 5.1, 0.001}},
+	{KORAD_KA3005P_V55, "Korad", "KA3005P",
+		"KORAD KA3005P V5.5", 1, {0, 31, 0.01}, {0, 5.1, 0.001}},
 	{KORAD_KD3005P, "Korad", "KD3005P",
 		"KORAD KD3005P V2.0", 1, {0, 31, 0.01}, {0, 5.1, 0.001}},
 	{KORAD_KD3005P_V20_NOSP, "Korad", "KD3005P",
diff --git a/src/hardware/korad-kaxxxxp/protocol.h b/src/hardware/korad-kaxxxxp/protocol.h
index ea28a71c..ec71f6f4 100644
--- a/src/hardware/korad-kaxxxxp/protocol.h
+++ b/src/hardware/korad-kaxxxxp/protocol.h
@@ -38,6 +38,7 @@ enum {
 	KORAD_KA3005P_0X01,
 	KORAD_KA3005P_0XBC,
 	KORAD_KA3005P_V42,
+	KORAD_KA3005P_V55,
 	KORAD_KD3005P,
 	KORAD_KD3005P_V20_NOSP,
 	RND_320_KD3005P,
-- 
2.25.1

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to