Hard to catch;)
But after I catched it it works ok;)
Yes Itās fine on windows for some reason, I need to add more space above itā¦
OK, I have added the PTT, key and knob buttons (not the knobs themselves yet).
At the moment they are just configured the same as any other buttons and obviously there isnāt much we can do with the Key inputā¦
You will need to reset buttons again.
Thatās all for tonight and I have a busy day tomorrow, but I will try to do some work on the knobs.
73 Phil
All works fine!
To consideration only if PTT JACK and CW JACK should be possible to configure⦠As they are even physically described on the bottom of the eCoder;)
(the configuration options are āstrangeā now - as there are no buttons ;P)
n8!
mny thx!
73!
Hi @Dawid.
Can you try the latest version? I have added provisional support for the 3 knobs? You will need to reset commands and buttons to activate it. Let me know if it works at all.
73 Phil
Hello @phil, sorry for delay.
It is possible to assign a function to all 3 knobs.
I have assigned AF gain to knob1, RF gain to knob2 and TX power to knob3.
None of functions have visible reaction on the main screen.
And based on below debug log it seems only one direction of knob rotation is detected and like only one event? knob? is detected
Ah and one more thing. When I want to exit wfview it hangs and I need to kill wfview.
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
2023-02-10 08:57:40.359 DBG usbcontrol: Knob event: 20 Value: 255
I suspected that might be the case, can you give me a dump of the data sent from the controller when turning one of the knobs a few times fast and slow? Also are they continuous knobs (like the tuning knob) or do they stop?
Phil
They are encoders (endless).
Iāve attached that already in previous attachments
file.txt (4.5 KB)
with complete description;)
But here you have more verbose file. I am rotating knob1 2 3 in order left and then right.
If you rotate 1, 2 or 3 more slowly, does it ever provide a value other than 1 or 255 while being rotated?
The only values I have seen are 2,3,4 and 254,253,252 if faster. But they really require you to āforceā the knob.
It seems behavior is the same like for the VFO knob. But as you are not able to rotate that fast values are different⦠and those 3 small knobs are āclickā like.
OK thanks, that helps a lot.
I have just pushed some more code that will hopefully work better. If not, let me know what the log shows.
I have also (hopefully) addressed the crash on exit.
Phil
dawszy@dawszy-XPS-13-9310:~/git/original/build$ ./wfview -s ~/.config/wfview/ic9700.conf -d -l aa.log
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Segmentation fault (core dumped)
After I clicked āReset buttonsā
In the second run after āReset buttonsā it does not respond and need to kill
Thatās strange⦠OK let me check
OK It was a silly error on my part, try it now.
Now I just turn a knob1 left a little bit⦠but it still reports I am moving the knob:
and this is the error it stores last value, that is why Iāve seen data in parallel even when not rotating
and most probably due to flood of messages it does not react on other buttonsā¦
2023-02-10 15:56:53.311 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 255
2023-02-10 15:56:53.411 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 254
2023-02-10 15:56:53.513 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 254
2023-02-10 15:56:53.613 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 254
2023-02-10 15:56:53.714 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 254
2023-02-10 15:56:53.815 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:53.916 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.017 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.118 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.219 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.320 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.421 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.522 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.623 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.724 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.826 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:54.927 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.029 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.130 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.231 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.332 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.433 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.534 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.635 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.736 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.837 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:55.938 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.040 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.141 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.242 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.344 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.445 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.546 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.647 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.748 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.849 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:56.950 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.051 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.152 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.252 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.354 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.454 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.555 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.656 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.758 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.859 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:57.960 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.061 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.162 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.263 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.364 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.465 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.566 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.668 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.768 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.869 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:58.970 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.071 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.172 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.273 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.374 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.475 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.576 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.678 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.779 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.880 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:56:59.981 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:57:00.081 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
2023-02-10 15:57:00.183 INF usbcontrol: Sending Knob: 3 Command: 56 :Value: 253
OK try that now. It wasnāt resetting the knob value to 0 after sending it (among a few other potential issues).
The buttons āshouldā work again now as well!
I recently found a new enclosure with which Iām building a new version of my prototype āsmart control assistantā. The appearance and operation is a little more like an RC-28. It has an optical rotary encoder in addition to 2 mechanical encoders. I looks like Iāll need to redesign the PCB, but that shouldnāt take too long.
That looks fantastic⦠by coincidence I too recently āfoundā the same enclosure at RS Components and Iām modifying an earlier Controller project to fit in the box. Testing the optical rotary encoder - YouTube
../wfview/usbcontroller.cpp: In member function āvoid usbController::run()ā:
../wfview/usbcontroller.cpp:211:72: error: āusbMutexā was not declared in this scope; did you mean āQMutexā?
211 | emit newDevice(usbDevice, buttonList, knobList, commands, &usbMutex); // Let the UI know we have a new controller
| ^~~~~~~~
| QMutex
make: *** [Makefile:1382: usbcontroller.o] Error 1