Replies: 36 comments 5 replies
-
How does the radio identify itself after upgrade? Have they changed the vid or pid? |
Beta Was this translation helpful? Give feedback.
-
Cześć dzień dobry Piotr,
Piotr Majkrzak ***@***.***> [03.05.2023 13.28.06 -0700]:
How does the radio identify itself after upgrade? Have they changed the
vid or pid?
I am not sure what they have done. After connecting the radio to my
notebook an starting qdmr afterwards for downloading the codestack I got
these lines of messages:
Debug in ***@***.***: Set icon theme to 'light'.
Debug in ***@***.***: Search for translation in '/usr/local/share/locale/de_DE/LC_MESSAGES'.
Debug in ***@***.***: Search for translation in '/usr/local/share/locale/de/LC_MESSAGES'.
Debug in ***@***.***: Installed translator for locale 'de_DE'.
Debug in ***@***.***: Loaded repeater cache of 0 entries.
Debug in ***@***.***: Loaded user database with 236849 entries from /home/dk8kk/.local/share/DM3MAT/qdmr/user.json.
Debug in ***@***.***: Loaded talk group database with 1652 entries from /home/dk8kk/.local/share/DM3MAT/qdmr/talkgroups.json.
Debug in ***@***.***: Last known position: 49° 42' 42.5" N, 8° 34' 16.6" E
Debug in ***@***.***: Create main window using icon theme 'light'.
Debug in ***@***.***: Last device is invalid, search for new one.
Debug in ***@***.***: Search for serial port with matching VID:PID 28e9:18a.
Debug in ***@***.***: Search for serial port with matching VID:PID 1fc9:94.
Debug in ***@***.***: Search for HID interfaces matching VID:PID 15a2:73.
Debug in ***@***.***: Search for DFU devices matching VID:PID 483:df11.
ERROR in ***@***.***: Kein passendes Gerät gefunden
Thanks for your feedback.
Mit freundlichen Grüßen
Yours sincerely / vy 73 es 55 de Karlheinz, DK8KK
Karlheinz
--
Diese Nachricht wurde mit einer Petroleumlampe in das
offene Ende eines Glasfaserkabels gemorst.
------------------------------------------------------------------------
German Amateur Radio Station DK8KK
/~ LOC JN49HR, DOK K07, CQ-Zone 14, ITU-Zone 28, IARU-Region 1
Q///~ Karlheinz Geyer
(;#) P.O. Box 11 40
/_\ D–64659 Alsbach-Hähnlein
I I –Germany–
E-Mail ━●● ━●━ ━━━●● ━●━ ━●━ @ ━●● ●━ ●━● ━●━● ●━●━●━ ━●● ●
------------------------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
Device Info: |
Beta Was this translation helpful? Give feedback.
-
From the debug output, it looks like, they have changed the devices VID/PID with the minor FW update. You could verify that with I hope, they haven't changed the protocol. This would be very bad. Under windows, the VID/PID does not matter, as the device is addressed via the selected COM port. I, however, use it to identify the anytones automatically. |
Beta Was this translation helpful? Give feedback.
-
Glückauf Hannes,
Hannes Matuschek ***@***.***> [04.05.2023 02.10.02 -0700]:
From the debug output, it looks like, they have changed the devices
VID/PID with the minor FW update. You could verify that with lsusb to
list all connected USB devices. It should have the VID/PID combination:
28e9/018a.
Already done, lsusb shows:
[...]
Bus 001 Device 009: ID 28e9:018a GDMicroelectronics GD32 Virtual ComPort in FS Mode
[...]
Mit freundlichen Grüßen
Yours sincerely / vy 73 es 55 de Karlheinz, DK8KK
Karlheinz
--
Diese Nachricht wurde mit einer Petroleumlampe in das
offene Ende eines Glasfaserkabels gemorst.
------------------------------------------------------------------------
German Amateur Radio Station DK8KK
/~ LOC JN49HR, DOK K07, CQ-Zone 14, ITU-Zone 28, IARU-Region 1
Q///~ Karlheinz Geyer
(;#) P.O. Box 11 40
/_\ D–64659 Alsbach-Hähnlein
I I –Germany–
E-Mail ━●● ━●━ ━━━●● ━●━ ━●━ @ ━●● ●━ ●━● ━●━● ●━●━●━ ━●● ●
------------------------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
I found following change log of 3.02n firmware which may be very releated to the issue:
|
Beta Was this translation helpful? Give feedback.
-
Dear Piotr,
Piotr Majkrzak ***@***.***> [04.05.2023 07.33.58 -0700]:
I found following change log of 3.02n firmware which may be very
releated to the issue:
These firmware releases, D878UV-V3.02N & D878UVII-V3.02N
are to correct these issues in the V3.02 firmware & CPS releases.
1.Digital Monitor double slot not working properly.
2. CPS of the AT-D878UV II PLUS did not read the radio correctly.
Thanks for that hint... I have upgraded my radio to FW Ver. 3.02N the
error still persists unfortunately :-(
qdmr can't find radio D878UVIIPLUS anymore...
Debug in ***@***.***: Set icon theme to 'light'.
Debug in ***@***.***: Search for translation in '/usr/local/share/locale/de_DE/LC_MESSAGES'.
Debug in ***@***.***: Search for translation in '/usr/local/share/locale/de/LC_MESSAGES'.
Debug in ***@***.***: Installed translator for locale 'de_DE'.
Debug in ***@***.***: Loaded repeater cache of 0 entries.
Debug in ***@***.***: Loaded user database with 236849 entries from /home/dk8kk/.local/share/DM3MAT/qdmr/user.json.
Debug in ***@***.***: Loaded talk group database with 1652 entries from /home/dk8kk/.local/share/DM3MAT/qdmr/talkgroups.json.
Debug in ***@***.***: Last known position: 49° 42' 42.5" N, 8° 34' 16.6" E
Debug in ***@***.***: Create main window using icon theme 'light'.
Debug in ***@***.***: Last device is invalid, search for new one.
Debug in ***@***.***: Search for serial port with matching VID:PID 28e9:18a.
Debug in ***@***.***: Search for serial port with matching VID:PID 1fc9:94.
Debug in ***@***.***: Search for HID interfaces matching VID:PID 15a2:73.
Debug in ***@***.***: Search for DFU devices matching VID:PID 483:df11.
ERROR in ***@***.***: Kein passendes Gerät gefunden.
lsusb reports:
[...]
Bus 001 Device 012: ID 28e9:018a GDMicroelectronics GD32 Virtual ComPort in FS Mode
[...]
Mit freundlichen Grüßen
Yours sincerely / vy 73 es 55 de Karlheinz, DK8KK
Karlheinz
--
Diese Nachricht wurde mit einer Petroleumlampe in das
offene Ende eines Glasfaserkabels gemorst.
------------------------------------------------------------------------
German Amateur Radio Station DK8KK
/~ LOC JN49HR, DOK K07, CQ-Zone 14, ITU-Zone 28, IARU-Region 1
Q///~ Karlheinz Geyer
(;#) P.O. Box 11 40
/_\ D–64659 Alsbach-Hähnlein
I I –Germany–
E-Mail ━●● ━●━ ━━━●● ━●━ ━●━ @ ━●● ●━ ●━● ━●━● ●━●━●━ ━●● ●
------------------------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
Ok, the VID/PID matches. So, the only option is, that QSerialPort does not find it. Check |
Beta Was this translation helpful? Give feedback.
-
Guten Abend lieber Hannes,
Hannes Matuschek ***@***.***> [04.05.2023 12.43.31 -0700]:
Ok, the VID/PID matches. So, the only option is, that QSerialPort does
not find it. Check dmsg when plugging the device in, whether the kernel
recognizes it as a serial interface. lsusb only lists the description,
this does not mean, that it is actually handled as a USB CDC-ACM
(serial over USB) device.
I've monitored with dmesg before already of course... here comes the
latest output...
[45481.191172] usb 1-2: new full-speed USB device number 13 using xhci_hcd
[45481.341756] usb 1-2: New USB device found, idVendor=28e9, idProduct=018a, bcdDevice= 1.00
[45481.341769] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[45481.341777] usb 1-2: Product: GD32 Virtual ComPort in FS Mode
[45481.341784] usb 1-2: Manufacturer: GD32Microelectronics
[45481.341790] usb 1-2: SerialNumber: 000000010000
[45481.342119] usb 1-2: Device is not authorized for usage
[45481.346979] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
[45481.347859] usb 1-2: authorized to connect
Mit freundlichen Grüßen
Yours sincerely / vy 73 es 55 de Karlheinz, DK8KK
Karlheinz
--
Diese Nachricht wurde mit einer Petroleumlampe in das
offene Ende eines Glasfaserkabels gemorst.
------------------------------------------------------------------------
German Amateur Radio Station DK8KK
/~ LOC JN49HR, DOK K07, CQ-Zone 14, ITU-Zone 28, IARU-Region 1
Q///~ Karlheinz Geyer
(;#) P.O. Box 11 40
/_\ D–64659 Alsbach-Hähnlein
I I –Germany–
E-Mail ━●● ━●━ ━━━●● ━●━ ━●━ @ ━●● ●━ ●━● ━●━● ●━●━●━ ━●● ●
------------------------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
Is the device /dev/ttyACM0 created? If so, how are the rights set on this device. The line |
Beta Was this translation helpful? Give feedback.
-
Glückauf Hannes,
Hannes Matuschek ***@***.***> [05.05.2023 01.59.40 -0700]:
Is the device /dev/ttyACM0 created? If so, how are the rights set on
this device.
[...]
crw-rw-rw- 1 root tty 5, 0 5. Mai 08:53 tty
drwxrwxrwt 3 root root 80 5. Mai 11:23 shm
crw-rw----+ 1 root dialout 166, 0 5. Mai 11:24 ttyACM0
drwxr-xr-x 3 root root 60 5. Mai 11:24 serial
[...]
The line Device is not authorized for usage puzzles me. According to
[1]https://askubuntu.com/questions/1269595/usb-device-is-not-authorized
-for-usage, this could be usbguard preventing access to the device.
Nop... the last line states clearly the proper authorisation of the
device and its usage.
[63219.937643] usb 1-2: SerialNumber: 000000010000
[63219.938058] usb 1-2: Device is not authorized for usage
[63219.942421] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
[63219.943266] usb 1-2: authorized to connect
The error persits even if I disable usb-guard for testing purposes.
Furthermore all versions of qdmr (0.11.2 and earlier) worked flawlessly
with usb-guard in place since months. So I don't think it has anything
to do with the reported error.
usb-guard list-devices:
[...]
56: allow id 28e9:018a serial "000000010000" name "GD32 Virtual ComPort
in FS Mode" hash "WCj9d/e5iB5iDlye8oLmnxsoNQUvEedzZbzwX5LeeRA="
parent-hash "jEP/6WzviqdJ5VSeTUY8PatCNBKeaREvo2OqdplND/o=" via-port
"1-2" with-interface { 02:02:01 0a:00:00 } with-connect-type "hotplug"
[...]
Mit freundlichen Grüßen
Yours sincerely / vy 73 es 55 de Karlheinz, DK8KK
Karlheinz
--
Diese Nachricht wurde mit einer Petroleumlampe in das
offene Ende eines Glasfaserkabels gemorst.
------------------------------------------------------------------------
German Amateur Radio Station DK8KK
/~ LOC JN49HR, DOK K07, CQ-Zone 14, ITU-Zone 28, IARU-Region 1
Q///~ Karlheinz Geyer
(;#) P.O. Box 11 40
/_\ D–64659 Alsbach-Hähnlein
I I –Germany–
E-Mail ━●● ━●━ ━━━●● ━●━ ━●━ @ ━●● ●━ ●━● ━●━● ●━●━●━ ━●● ●
------------------------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
I can see on the Anytone-878 groups.io group, that some people reports multiple problems with firmware > 3.01. Like high BER for example. I would personally recommend not to upgrade it at this point. |
Beta Was this translation helpful? Give feedback.
-
Note: a fellow ham reported that 3.02N on a 878 Plus (not 878 II Plus) is working ok with qdmr 0.11.2. I have not upgraded my 878 yet, will report when done. (See below, works as expected. Strange.) |
Beta Was this translation helpful? Give feedback.
-
I've freshly build qdmr 0.11.3 (!) from sources. qdmr seems to work afterwards but it still can't connect to the AnyTone D878UVIIPlus-Radio with firmware 3.02N installed. qdmr 0.11.3 with genuine AnyTone FW 3.02 official release works neither. Conclusion: qdmr =>0.11.2 fails to "see"/"connect to" and "read from/write to" AnyTone D878UVIIPlus devices with firmware >3.01 installed. :-( So, the error originally described is still present. Debug in src/application.cc@863: Set icon theme to 'light'. |
Beta Was this translation helpful? Give feedback.
-
Setup here: Distributor ID: Ubuntu qdmr D878UVII Plus (with Bluetooth and analog APRS RX) qdmr output: dmesg output: Works as expected. Strange. What distribution are you using? |
Beta Was this translation helpful? Give feedback.
-
878 UVII Plus bought around Nov. 2022, running FW 3.02n (so should be the same device as DK8KK?), which works like expected (qdmr output in #334 (comment)):
Diff with DK8KK's output:
Diff with the output from Hannes 878 (non-II):
|
Beta Was this translation helpful? Give feedback.
-
Ok, this is weird. It looks like, the port slips by the VID/PID detection via QSerialPort. I've added some debug messages in the |
Beta Was this translation helpful? Give feedback.
-
Glückauf Hannes, thanks for keeping the ball rolling. I've update my qdmr repo and rebuild qdmr afterwards without errors. My AnyTone D878UVIIPLUS still runs firmware 3.02N. Unfortunately the error still persists... qdmr cannot connect to the radio with a firmware >3.01 installed. Debug in src/application.cc@185: Create main window using icon theme 'light'. lsusb: |
Beta Was this translation helpful? Give feedback.
-
I haven't touched the detection yet. I do not know, what is wrong with it. I only added additional debug messages during the detection. These are only present in the |
Beta Was this translation helpful? Give feedback.
-
@DK8KK You can switch to that branch via
Maybe the additional debug messages give a hint what's going wrong. It should look s.th. like this
|
Beta Was this translation helpful? Give feedback.
-
Error persists, debug output: lsusb: |
Beta Was this translation helpful? Give feedback.
-
Random thought: my laptop does not have USB 3.0. The detected 8086:9d2f is a USB 3.0 controller. Do you happen to have a USB 2.0 hub that you can put between laptop and AnyTone to see if that makes any difference? Or does your PC also have USB 2.0 ports? |
Beta Was this translation helpful? Give feedback.
-
Ok, this is strange. Indeed, QSerialPort reports the wrong VID/PID for the device. This way, I cannot detect it. |
Beta Was this translation helpful? Give feedback.
-
I have similar results when trying with 3c7f6ac on my Raspberry Pi:
What kind of config info would you need? |
Beta Was this translation helpful? Give feedback.
-
I use the list of QSerialPortInfo instances to iterate over the present serial ports on all platforms. These objects provide the VID and PID for the device. I then check if they match. If so, I can (usually) be save to talk to a known radio and may request some information from the device. Some radios use generic USB CDC-ACM chips, these devices are marked as unsave e.g., qdmr/lib/dr1801uv_interface.cc Line 295 in 2e0cce6 |
Beta Was this translation helpful? Give feedback.
-
Maybe, it is not even a QSerialPort issue: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1539348 |
Beta Was this translation helpful? Give feedback.
-
1106:3483 is also a USB 3.0 controller, is it? Hm, someone else had the same idea: https://askubuntu.com/questions/343522/usb-to-serial-adapter-doesnt-works Since the AnyTone has just that (USB-to-serial converter) and it is not detected correctly on a USB 3.0 port now, maybe try an USB 2.0 hub between PC and radio? In https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1539348 also XHCI (thus USB 3.0) is involved. Yes, that would only be a workaround, but if USB 3.0 vs. USB 2.0 makes a difference, that's at least a reason why it works in most settings, but not in all? |
Beta Was this translation helpful? Give feedback.
-
I don't believe, that this is the actual issue. In one of these bug reports, they describe, that the USB device re-connects as a different device and udev gets then confused. As this issue appears with a small firmware update on the radio, they might have done something similar. Maybe, the bootloader already initializes the USB interface and then, the firmware does it again, effectively reconnecting the device to the host. This, however, is just guessing around. @DK8KK : Do you switch the radio on, while it is connected to the computer? (likely not) However, this is something, I cannot fix in qdmr. I would therefore move this issue to the discussion. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if that contributes anything in here. I've updated my Anytone D878UV II to 3.0.2n and run qdmr on my Macs (Intel & M1). I have no problems with qdmr 0.11.3 with my Anytone. Here is the excerpt from the USB listing:
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
rhaen ***@***.***> [28.08.2023 00.09.40 -0700]:
I am not sure if that contributes anything in here. I've updated my
Anytone D878UV II to 3.0.2n and run qdmr on my Macs (Intel & M1). I
have no problems with qdmr 0.11.3 with my Anytone.
I've build qdmr 0.11.3 freshly from source after a git pull this morning
on Debian Linux 11.7 Bullseye without errors or warnings. Now I can
connect to my device AnyTone D878UVIIPLUS running firmware 3.0.2N again
and qdmr reads from device flawlessly. I haven't done any further checks
yet but it seems to work (again), though.
I'm going to build qdmr on my Raspi running on Debian 12 Bookworm this
evening.
Thx Hannes for your good work.
Mit freundlichen Grüßen
Yours sincerely / vy 73 es 55 de Karlheinz, DK8KK
Karlheinz
--
Diese Nachricht wurde mit einer Petroleumlampe in das
offene Ende eines Glasfaserkabels gemorst.
------------------------------------------------------------------------
German Amateur Radio Station DK8KK
/~ LOC JN49HR, DOK K07, CQ-Zone 14, ITU-Zone 28, IARU-Region 1
Q///~ Karlheinz Geyer
(;#) P.O. Box 11 40
/_\ D–64659 Alsbach-Hähnlein
I I –Germany–
E-Mail ━●● ━●━ ━━━●● ━●━ ━●━ @ ━●● ●━ ●━● ━●━● ●━●━●━ ━●● ●
------------------------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
-
Since April 23th. a new Firmware (3.02) is available for D878UVII/IIPlus devices.
After FW install qdmr can't find the radio anymore.
Debug in src/application.cc@446: Last device is invalid, search for new one.
Debug in lib/usbserial.cc@162: Search for serial port with matching VID:PID 28e9:18a.
Debug in lib/usbserial.cc@162: Search for serial port with matching VID:PID 1fc9:94.
Debug in lib/hid_libusb.cc@128: Search for HID interfaces matching VID:PID 15a2:73.
Debug in lib/dfu_libusb.cc@156: Search for DFU devices matching VID:PID 483:df11.
ERROR in src/application.cc@450: Kein passendes Gerät gefunden.
Beta Was this translation helpful? Give feedback.
All reactions