From 3a36a2549d5b9766008c627088394e47f95f654f Mon Sep 17 00:00:00 2001 From: Serge Date: Mon, 29 Jul 2019 22:26:13 -0700 Subject: [PATCH] Add downloading and uploading of DM-1801 codeplug. --- README.md | 3 ++- radio.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 40a5236..9b33680 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Supported radios: * TYT MD-9600 * Baofeng DM-1701, Retevis RT84 * Baofeng RD-5R, TD-5R + * Baofeng DM-1801 * Radioddity GD-77 * Anytone AT-D868UV * Anytone AT-D878UV @@ -59,7 +60,7 @@ Create a file /etc/udev/rules.d/99-dmr.rules with the following contents: # TYT MD-UV380 SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666" - # Baofeng RD-5R, TD-5R + # Baofeng RD-5R, TD-5R, DM-1801 SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666" # Anytone AT-D868UV: ignore this device in Modem Manager diff --git a/radio.c b/radio.c index 8e2251f..2c8a681 100644 --- a/radio.c +++ b/radio.c @@ -48,7 +48,7 @@ static struct { { "BF-5R", &radio_rd5r }, // Baofeng RD-5R, TD-5R { "DM-1701", &radio_rt84 }, // Baofeng DM-1701, Retevis RT84 { "MD-760P", &radio_gd77 }, // Radioddity GD-77, version 3.1.1 and later - { "DM-1801", &radio_dm1801 }, // Baofeng DM-1801 + { "1801", &radio_dm1801 }, // Baofeng DM-1801 { "D868UVE", &radio_d868uv }, // Anytone AT-D868UV { "D878UV", &radio_d878uv }, // Anytone AT-D878UV { "D6X2UV", &radio_dmr6x2 }, // BTECH DMR-6x2 @@ -96,7 +96,7 @@ void radio_connect() // Try TYT MD family. ident = dfu_init(0x0483, 0xdf11); if (! ident) { - // Try RD-5R and GD-77. + // Try RD-5R, DM-1801 and GD-77. if (hid_init(0x15a2, 0x0073) >= 0) ident = hid_identify(); }