#1007019 dmrconfig does not detect radio

Package:
dmrconfig
Source:
dmrconfig
Description:
Configuration utility for DMR radios
Submitter:
"Hans-J. Ullrich"
Date:
2022-03-11 18:51:02 UTC
Severity:
important
#1007019#5
Date:
2022-03-10 15:48:38 UTC
From:
To:
Dear Maintainer,

it looks like dmrconfig does not detect all radios, here a GD-77. The output of
dmrconfig -r -t says:

dmrconfig -r -t
Cannot find USB device 0483:df11
Cannot find USB device 15a2:0073
Cannot find USB device 28e9:018a
No radio detected.
Check your USB cable!

You see 3 different addresses for usb, and these are exactly those in /lib/udev/rules.d/60-dmrconfig.rules.

lsusb is telling me this:

lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 5986:0102 Acer, Inc Crystal Eye Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1fc9:0094 NXP Semiconductors OpenGD77 Transceiver
Bus 003 Device 002: ID 24ae:2010 Shenzhen Rapoo Technology Co., Ltd. Rapoo 2.4G Wireless Device
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

So you see, my device is 1fc9:0094

Knowing this, I added this line in /lib/udev/rules.d/60-dmrconfig.rules:

# Radiodditty GD-77
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0049", MODE="666"

but got the same result.

Then I checked with strace, and discovered this interesting line:

openat(4, "tty", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(4)                                = 0
close(3)                                = 0
access("/sys/devices/virtual/tty/uevent", F_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY) = 3
openat(3, "sys", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
close(3)                                = 0
openat(4, "devices", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(4)                                = 0
openat(3, "virtual", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(3)                                = 0
close(4)                                = 0
access("/sys/devices/virtual/uevent", F_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY) = 3
openat(3, "sys", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
close(3)                                = 0
openat(4, "devices", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(4)                                = 0
close(3)                                = 0
access("/sys/devices/uevent", F_OK)     = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
write(2, "Cannot find USB device 28e9:018a"..., 33Cannot find USB device 28e9:018a
) = 33
write(2, "No radio detected.\n", 19No radio detected.
)    = 19
write(2, "Check your USB cable!\n", 22Check your USB cable!
) = 22
exit_group(-1)                          = ?
+++ exited with 255 +++


As you see, it is looking for /sys/devices/virtual/tty/uevent, /sys/devices/virtual/uevent and /sys/devices/uevent, but does not find any, and of course it stops then.

I checked, but on debian none of these files exist.

Maybe youu might want to take a look at this?

Tnak you vvery much for any help.

Best regards

Hans