Janne
(Jan Ohlsson)
29 January 2025 16:47
1
After this udev rule, without line break, wfwiew no longer crashes:
ATTRS{name}==“Icom RC-28 REMOTE ENCODER” MODE=“0644”, SUBSYSTEM==“usb”, ATTRS{idVendor}==“0c26”, ATTRS{idProduct}==“001e”, MODE=“0666”
The transmit button is fully working after setup with this setup. I can however not get the wheel to work on VFO A, but in the setup it indicates as programmed. And the sensitivity bar is not possible to move.
Thanks for your patience so far.
Janne
(Jan Ohlsson)
29 January 2025 17:02
2
No, sorry, that worked only once. Now Wfview crashes if the RC-28 is connected at startup.I am a bit suspicious about the rnswer root root when issuing the command ls -al for the usb device for the RC-28, perhaps there is no permission, no matter how I write the udev rule.
eliggett
(Elliott Liggett)
29 January 2025 17:02
3
Can you just manually set the permission with chmod, as a one-time experiment? udev is quite tricky to troubleshoot.
Janne
(Jan Ohlsson)
29 January 2025 18:22
4
I am not so familiar with linux, but I tried sudo chmod 777 -R (path to directory where the usb file for the RC-28 is). When I tried without sudo the system protested that priviliges are not present for this command, but with sudo I just got a new line in the terminal window.
But when checking priviliges with ls -al and path to the usb file, priviliges was still root root.
I am very clumsy in linux, seems that whatever I do concerning priviliges does not work…
eliggett
(Elliott Liggett)
29 January 2025 18:25
5
yeah chmod requires permissions in the command-line arguments!
sudo chmod 666 -R /dev/usb
Just see if that helps. This is a less-fine-tuned version of what your udev rule does. Enter that command after plugging in the RC-28.
We probably should add some more checking in wfview when we are dealing with devices.
–E
de W6EL
Janne
(Jan Ohlsson)
29 January 2025 18:37
6
Used this command after replugging the RC-28:
sudo chmod 666 -R /dev/bus/usb/001
And then checked priviliges with:
ls -al /dev/bus/usb/001/017 (the new file had no 017 after plugging in the RC-28)
The result was:
ls: kan inte komma åt ‘/dev/bus/usb/001/017’: Åtkomst nekas (in english can not reach – no permission)
I then tried:
sudo ls -al /dev/bus/usb/001/017
The answer was:
crw-rw-rw-+ 1 root root 189, 16 29 jan 19.30 /dev/bus/usb/001/017
eliggett
(Elliott Liggett)
29 January 2025 18:38
7
now launch wfview, see what happens
Janne
(Jan Ohlsson)
29 January 2025 18:42
8
Does not crash, and it is possible to do and save settings for the RC-28.
But the wheel and PTT button has no effect.
eliggett
(Elliott Liggett)
29 January 2025 18:44
9
Ok. I think we are past the permissions issue. Ideally udev would handle this, and I’m sure we can eventually make it do that, but for now, this manual command will have to do.
Please run wfview with the debug flag (--debug
) and send us the log file after trying to rotate the RC-28 knob and pressing the buttons.
https://wfview.org/wfview-user-manual/how-to-send-a-logfile/
–E
de W6EL
Janne
(Jan Ohlsson)
29 January 2025 18:51
10
eliggett
(Elliott Liggett)
29 January 2025 19:01
11
Ok,
2025-01-29 19:50:32.340 INF usbcontrol: "Device found: (045e:0040) manufacturer: () usage: 0x0000 usage_page 0x0000"
2025-01-29 19:50:32.341 INF usbcontrol: "Device found: (0d8c:0014) manufacturer: () usage: 0x0000 usage_page 0x0000"
2025-01-29 19:50:32.341 INF usbcontrol: "Device found: (0c26:001e) manufacturer: () usage: 0x0000 usage_page 0x0000"
2025-01-29 19:50:32.341 INF usbcontrol: "Device found: (413c:2113) manufacturer: () usage: 0x0000 usage_page 0x0000"
2025-01-29 19:50:32.341 INF usbcontrol: "Device found: (413c:2113) manufacturer: () usage: 0x0000 usage_page 0x0000"
2025-01-29 19:50:32.355 DBG usbcontrol: Known device detected ""
2025-01-29 19:50:32.355 INF usbcontrol: "Attempting to connect to USB Controller: "
2025-01-29 19:50:32.356 INF usbcontrol: "Error connecting to : hid_error is not implemented yet"
2025-01-29 19:50:32.356 INF usbcontrol: Found stored buttons for this device, loading.
2025-01-29 19:50:32.356 INF usbcontrol: Found stored knobs for this device, loading.
I think from here we need @phil to test on his side. Looks like there is some kind of error but the details are not available in the log.
Or buy me an RC-28 and I’ll look into it here
–E
de W6EL
Janne
(Jan Ohlsson)
29 January 2025 19:11
12
Forgot to turn the wheel and push the button. This is a new debug log, after making the chmod again as the former time.
https://termbin.com/k83f
The settings still show the RC-28 as connected and programmed, but no action to wfview.
phil
(Phil Taylor M0VSE)
29 January 2025 19:12
13
I suspect the settings show the RC28 as available but disconnected. This is either an issue with your hidapi library or a permissions problem.
Janne
(Jan Ohlsson)
29 January 2025 19:13
14
I am tempted to send you my RC-28, but that would leave an empty spot in my shack…
Janne
(Jan Ohlsson)
29 January 2025 19:15
15
Could I do anything to check the hidapi library?
Janne
(Jan Ohlsson)
30 January 2025 10:43
16
I got the PTT button to work now, and also the LED link and transmit works. Here is a log:
https://termbin.com/oso7
I used this udev rule:
SUBSYSTEM==“usb”, ATTR{idVendor}==“0c26”, ATTR{idProduct}==“001e”, GROUP=“users”, MODE=“0666”
Which now supplies these permissins, the device 004 is the RC-28:
ls -al /dev/bus/usb/001
totalt 0
drwxr-xr-x 2 root root 160 12 jan 01.41 .
drwxr-xr-x 4 root root 80 1 jan 1970 …
crw-rw-rw- 1 root root 189, 0 30 jan 11.35 001
crw-rw-rw- 1 root root 189, 1 30 jan 11.35 002
crw-rw-rw- 1 root root 189, 2 30 jan 11.42 003
crw-rw-rw-+ 1 root users 189, 3 30 jan 11.42 004
crw-rw-rw- 1 root root 189, 4 30 jan 11.42 005
crw-rw-rw- 1 root root 189, 5 30 jan 11.42 006
But the VFO wheel still does not work.