WheezyE / Winelink

Installation scripts for running Winlink (RMS Express/Trimode & VARA) on non-Windows computers. Wine & Box86 make this project possible.
69 stars 19 forks source link

VARA FM & soundmodem.exe can't find RA Board #10

Open mhnadler opened 2 years ago

mhnadler commented 2 years ago

This issue may be the same root-cause as #9 -- when RA-board is picked in the VARA-FM PTT settings, it reports "RA-Board device not found".

WheezyE commented 2 years ago

I believe you are correct and these both may be the same root issue. See if you can use the same debugging steps I detailed in #9 and possibly report your install method and hardware to Seb if it ends up being a box86 issue.

WheezyE commented 2 years ago

I'm going to close this ticket for now due to inactivity. Please let me know if you have any other questions/ideas/comments/concerns though and I'll re-open this thread.

WheezyE commented 2 years ago

Hey there. Sorry it's been so long, but we just got a new update from the wine-mono dev that fixed USB port connections and I thought if this issue. I'm not sure the new update would fix this, but if you had some time, would you be able to test it again with a new install of the script?

mhnadler commented 2 years ago

I will try it again. It'll take a while to get that set up again.

About the other issue I filed, regarding Soundmodem and PTT.DLL. Do you know how to get Wine to pre-load a DLL? Soundmodem wants to load this PTT.DLL file that is located in the same directory as the Soundmodem executable. To my naive eyes, it looks like Soundmodem can't find the DLL. I'm not sure how to debug it. You suggested trying it out on a standard Linux box. Which I did & it failed, too. Which is why I gave up on that one.

I was hoping that maybe there was some other way to get PTT.DLL loaded.

On Wed, Feb 2, 2022 at 5:15 PM Eric Wiessner (KI7POL) < @.***> wrote:

Hey there. Sorry it's been so long, but we just got a new update from the wine-mono dev that fixed USB port connections and I thought if this issue. I'm not sure the new update would fix this, but if you had some time, would you be able to test it again with a new install of the script?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1028511444, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKJ3DQXEWOP5AAF5TPDUZHJJZANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mhnadler commented 2 years ago

Experimental results are inconsistent. Used Raspberry PI Imager to create a new Bullseye image (their OS build date 1/28/2022). Then ran the wheezy/winelink install script. Everything seemed to go well. The DRA-70 soundcard was detected & reported as USB PNP device in winecfg. I selected it as the default audio.

Experiment #1 -- started VARA-FM. Entered my callsign, et.al., in the VARA setup. Soundcard settings showed the USB PNP selection already chosen. So far so good. PTT settings are default to VOX, I tried to select RA-board & it errored out with RA-board not found. Which is the problem I reported. I set it back to VOX.

-- the DRA-70 has a VOX mode. If one drives audio output enough, it will generate PTT on its own. I decided to test it. Hit the Ping function -- and it transmitted a ping to the remote station & received a weak signal back. This is sort of good.

From here on out results were inconsistent.

Winlink Express 1.6..0.0 comes up & runs. That's good news. Start a VARA FM session. The VARA FM window comes up, but the display is all black; no buttons, dials, or any mechanism for controlling the program. And it doesn't transmit when I hit the Start in the Winlink session. If I try to run VARA FM independently, I can't get Winlink to connect to it -- it says that VARA isn't found.

After giving up on Winlink, I restarted VARA-FM on its own. Now the USB PNP isn't selected in the Sound Setting, nor does it appear in the choices. I checked with winecfg & they don't appear here either. They do appear in the Raspbian Pulse Audio settings.

Tried fooling around with sound settings in VARA & all of a sudden the input dial perked back up. It could transmit, but now the reply wasn't being heard.

Tried winlink again. Now, when I start the VARA session, Winlink says it can't connect to VARA.

Gave up on that tried to run VARA-FM independently again. Now it does PTT and transmits, but doesn't hear the response.

Then, a reboot. Try VARA-FM independently. It PTTs, transmits AND hears response to its ping. Go figure...

This is why I say inconsistent results...

On Thu, Feb 3, 2022 at 9:11 AM Michael Nadler KI7QIB < @.***> wrote:

I will try it again. It'll take a while to get that set up again.

About the other issue I filed, regarding Soundmodem and PTT.DLL. Do you know how to get Wine to pre-load a DLL? Soundmodem wants to load this PTT.DLL file that is located in the same directory as the Soundmodem executable. To my naive eyes, it looks like Soundmodem can't find the DLL. I'm not sure how to debug it. You suggested trying it out on a standard Linux box. Which I did & it failed, too. Which is why I gave up on that one.

I was hoping that maybe there was some other way to get PTT.DLL loaded.

On Wed, Feb 2, 2022 at 5:15 PM Eric Wiessner (KI7POL) < @.***> wrote:

Hey there. Sorry it's been so long, but we just got a new update from the wine-mono dev that fixed USB port connections and I thought if this issue. I'm not sure the new update would fix this, but if you had some time, would you be able to test it again with a new install of the script?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1028511444, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKJ3DQXEWOP5AAF5TPDUZHJJZANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Thank you for experimenting with this again. That's a bummer it's not working yet.

The inconsistent behavior you're getting with VARA is normal for now - it's the result of VARA having trouble finding RMS Express (it's a TCP port connection bug in Wine that I need to ask Wine about). If VARA isn't connecting to RMS Express, try closing RMS Express and trying it again.

Did these commands from https://github.com/WheezyE/Winelink/issues/9#issuecomment-919357520 help install the dll at all?

mkdir soundmodem && cd soundmodem
wget http://uz7.ho.ua/modem_beta/ptt-dll.zip
wget http://uz7.ho.ua/modem_beta/soundmodem113.zip 
7z x soundmodem113.zip
7z x ptt-dll.zip
cp *.dll ~/.wine/drive_c/windows/system32/
BOX86_NOBANNER=1 winetricks -q vb6run
wine soundmodem.exe

You can also run wine winecfg, go to the "Libraries" tab, and enter "ptt.dll" in the "New override for library" box, then push "Add" to make sure that Wine sees the dll.

EDIT: I just realized that cp line doesn't do anything helpful, but the rest of the commands are still good and should make PTT.DLL visible to soudnmodem.exe

mhnadler commented 2 years ago

Good news & bad news.

First bad news: PTT.DLL still not found by Soundmodem. I didn't try VARA FM, as I didn't want to break something that was working ... see Good News. Also, when VARA FM window opened its window was all black. But it retained the configuration I'd set up yesterday. I guess it means that one would configure VARA independently, close it, then start it again via a Winlink session.

Good news: both VARA FM and Soundmodem hooked up with Winlink Express in Wine to send & receive messages with CMS. That is a first time ever for me.

Knowing that inconsistencies are to be expected gives me hope that there'll be better things to come.

On Fri, Feb 4, 2022 at 10:10 AM Eric Wiessner (KI7POL) < @.***> wrote:

Thank you for experimenting with this again. That's a bummer it's not working yet.

The inconsistent behavior you're getting with VARA is normal for now - it's the result of VARA having trouble finding RMS Express (it's a TCP port connection bug in Wine that I need to ask Wine about). If VARA isn't connecting to RMS Express, try closing RMS Express and trying it again.

Did these commands from #9 (comment) https://github.com/WheezyE/Winelink/issues/9#issuecomment-919357520 help install the dll at all?

mkdir soundmodem && cd soundmodem wget http://uz7.ho.ua/modem_beta/ptt-dll.zip wget http://uz7.ho.ua/modem_beta/soundmodem113.zip 7z x soundmodem113.zip 7z x ptt-dll.zip cp *.dll ~/.wine/drive_c/windows/system32/ BOX86_NOBANNER=1 winetricks -q vb6run wine soundmodem.exe

You can also run wine winecfg, go to the "Libraries" tab, and enter "ptt.dll" in the "New override for library" box, then push "Add" to make sure that Wine sees the dll.

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030229990, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKIA3LTRX6POUTASE43UZQJALANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Hm. Are you getting this error? image

If so, try running sudo apt install p7zip-full -y and the commands from above again.

mhnadler commented 2 years ago

Not at computer right now, but I am pretty sure that is soundmodem's error indication. VARA says RA board not found, when I try to set that in the PTT settings.

On Fri, Feb 4, 2022, 8:06 PM Eric Wiessner (KI7POL) < @.***> wrote:

Hm. Are you getting this error? [image: image] https://user-images.githubusercontent.com/29649598/152628066-1c7a7834-a8a1-4b9f-8bdb-3c22fffe6c40.png

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030517640, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKNBYJIBOMHKMP5VPVTUZSO4RANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Ah ok, hm try this for VARA HF/FM's error messages:

sudo apt install p7zip-full -y
wget http://uz7.ho.ua/modem_beta/ptt-dll.zip
7z x ptt-dll.zip -o"$HOME/.wine/drive_c/VARA/"
7z x ptt-dll.zip -o"$HOME/.wine/drive_c/VARA FM/"
WheezyE commented 2 years ago

EDIT: Don't forget to do the sudo apt install p7zip-full -y too for those last commands (I just edited my last post)

WheezyE commented 2 years ago

I think you can also run these commands to make VARA not a black screen anymore:

        echo 'REGEDIT4'                                      >> override-x11.reg
        echo ''                                              >> override-x11.reg
        echo '[HKEY_CURRENT_USER\Software\Wine\X11 Driver]'  >> override-x11.reg
        echo '"Decorated"="Y"'                               >> override-x11.reg
        echo '"Managed"="N"'                                 >> override-x11.reg
        wine cmd /c regedit /s override-x11.reg
        rm override-x11.reg

I disabled this since I thought it was working in the newer version of Wine, but I think I was just using Debian bullseye instead of Debian buster which is why it appeared to work.

mhnadler commented 2 years ago

I'll try all these soon.

Question: you said something about bullseye and buster. I installed winelink on top of a vanilla bullseye build. Should I have used buster?

On Fri, Feb 4, 2022, 8:42 PM Eric Wiessner (KI7POL) < @.***> wrote:

I think you can also run these commands to make VARA not a black screen anymore:

    echo 'REGEDIT4'                                      >> override-x11.reg
    echo ''                                              >> override-x11.reg
    echo '[HKEY_CURRENT_USER\Software\Wine\X11 Driver]'  >> override-x11.reg
    echo '"Decorated"="Y"'                               >> override-x11.reg
    echo '"Managed"="N"'                                 >> override-x11.reg
    wine cmd /c regedit /s override-x11.reg
    rm override-x11.reg

I disabled this since I thought it was working in the newer version of Wine, but I think I was just using Debian bullseye instead of Debian buster which is why it appeared to work.

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030524765, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKNDBC6E5UO4MGXJUSDUZSTFHANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Oh bullseye is great. I wasn't sure if the newer bullseye might have broken something (since I originally made the script for buster). I'm using bullseye too so our results should be the same.

Also no rush with the testing. I'm heading to bed soon. I'm very curious if soundmodem might work if the PTT.DLL and CAT.dll files are copied to the same folder as soundmodem.exe (that should make the error go away at least), but I'm not feeling confident about VARA HF/FM yet (not sure what the problem might be there) - just kind of guessing.

mhnadler commented 2 years ago

Got a chance this morning to test some. BTW, I already had the latest 7z -- install_winelink.sh takes care of that :)

VARA FM window came up minimized, just the same as standard Windows. Un-minimize & the windows displays the gauges, et.al. Good!

Soundmodem now finds PTT.DLL. Hooray. However, the PTT.DLL doesn't see the PTT HID device, the C-Media chip in the DRA. Nerts. Here is output of lsusb, to show that the DRA is discovered:

@.***:/cloud/Wine $ lsusb Bus 002 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0d8c:013a C-Media Electronics, Inc. USB PnP Sound Device Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I don't have access to PTT.DLL source code to see how it detects things. Perhaps it relies on some Windows method that isn't handled by Wine? I am not very familiar with how Wine does its magic. If you haven't seen this writeup from the DRA creator: https://www.masterscommunications.com/products/radio-adapter/faq/ptt-soundmodem.html, he mentions what PTT.DLL does to toggle PTT -- using GPIO bits.

However, using the DRA VOX mode is working. Both for Soundmodem and VARA FM. This is good for me, as I have a DRA-70 that can do VOX. Other DRAs don't have this option & need PTT to function correctly.

On Fri, Feb 4, 2022 at 9:00 PM Eric Wiessner (KI7POL) < @.***> wrote:

Oh bullseye is great. I wasn't sure if the newer bullseye might have broken something (since I originally made the script for buster). I'm using bullseye too so our results should be the same.

Also no rush with the testing. I'm heading to bed soon. I'm very curious if soundmodem might work if the PTT.DLL and CAT.dll files are copied to the same folder as soundmodem.exe (that should make the error go away at least), but I'm not feeling confident about VARA HF/FM yet (not sure what the problem might be there) - just kind of guessing.

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030527293, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKMATTP5Z4QCHYGQRS3UZSVGDANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Ah ok, I think this might possibly be a problem with wine's reimplementation of hid.dll (hid.so) not being 'wrapped' in box86 yet. I'll ask box86's author, ptitSeb, about it.

Here's the box86_log1 of soundmodem with PTT.DLL ``` pi@raspberrypi:~/soundmodem $ BOX86_LOG=1 wine soundmodem.exe 2>&1 | tee log1.txt Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 46 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wineserver Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/libwine.so.1 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernel32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernel32.so"/0x63840b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernelbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernelbase.so"/0x63848657, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/user32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/user32.so"/0x63851347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/advapi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/advapi32.so"/0x638522ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msvcrt.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msvcrt.so"/0x63852aef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sechost.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sechost.so"/0x638525a7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ucrtbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ucrtbase.so"/0x63850f8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/gdi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/gdi32.so"/0x6385368f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libm.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/setupapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/setupapi.so"/0x63861b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/rpcrt4.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/rpcrt4.so"/0x63853407, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/version.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/version.so"/0x6386261f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oleaut32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oleaut32.so"/0x638626ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ole32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ole32.so"/0x63861cbf, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/combase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/combase.so"/0x63864327, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comctl32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comctl32.so"/0x63864347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/imm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/imm32.so"/0x63864257, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/winspool.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shell32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shell32.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shlwapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shlwapi.so"/0x6386bf37, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shcore.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shcore.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comdlg32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comdlg32.so"/0x638698ef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winmm.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winmm.so"/0x63866687, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msacm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msacm32.so"/0x63866b6f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/wsock32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/wsock32.so"/0x63866b8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/iphlpapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/iphlpapi.so"/0x63866c1f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/dnsapi.so Using native(wrapped) libresolv.so.2 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/nsi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/nsi.so"/0x638654df, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/ws2_32.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oledlg.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oledlg.so"/0x63877ab7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x63899437, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x6389de07, 2) Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/winex11.drv.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winex11.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winex11.so"/0x63973d2f, 2) Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x63a31eff, 2) Using native(wrapped) libcups.so.2 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/riched20.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/riched20.so"/0x63b953af, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/usp10.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/usp10.so"/0x63b9a7bf, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x476f144f, 2) 0048:fixme:imm:ImeSetActiveContext (0x6c6f40, 0): stub 0048:fixme:imm:ImmReleaseContext (00010020, 006C6F40): stub 0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub 0024:fixme:richedit:IRichEditOle_fnSetHostNames stub 002689F0 soundmodem soundmodem 0024:fixme:imm:ImeSetActiveContext (0x26a550, 1): stub 0024:fixme:imm:ImmReleaseContext (00010072, 0026A550): stub Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sxs.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sxs.so"/0x485a635f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/hid.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/hid.so"/0x63bb7a2f, 2) ```

Basically I think that in our situation, soundmodem wants a Windows dll called "hid.dll" to be in ~/.wine/drive_c/windows/system32/ and enabled in the wine winecfg Libraries tab. If you have a Windows PC and can copy it over to your Pi, that might help? But I'm not sure if that will entirely fix the issue.

I assume VARA HF/FM probably also can't detect the DRA-70 PTT?

mhnadler commented 2 years ago

I will try it. And VARA FM (I don't have HF radio) does not detect the DRA either.

On Sat, Feb 5, 2022 at 1:47 PM Eric Wiessner (KI7POL) < @.***> wrote:

Ah ok, I think this might possibly be a problem with wine's reimplementation of hid.dll (hid.so) not being 'wrapped' in box86 yet. I'll ask box86's author, ptitSeb, about it. Here's the box86_log1 of soundmodem with PTT.DLL

@.***:~/soundmodem $ BOX86_LOG=1 wine soundmodem.exe 2>&1 | tee log1.txt

Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 46 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wineserver Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/libwine.so.1

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernel32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernel32.so"/0x63840b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernelbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernelbase.so"/0x63848657, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/user32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/user32.so"/0x63851347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/advapi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/advapi32.so"/0x638522ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msvcrt.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msvcrt.so"/0x63852aef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sechost.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sechost.so"/0x638525a7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ucrtbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ucrtbase.so"/0x63850f8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/gdi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/gdi32.so"/0x6385368f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libm.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/setupapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/setupapi.so"/0x63861b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/rpcrt4.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/rpcrt4.so"/0x63853407, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/version.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/version.so"/0x6386261f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oleaut32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oleaut32.so"/0x638626ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ole32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ole32.so"/0x63861cbf, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/combase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/combase.so"/0x63864327, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comctl32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comctl32.so"/0x63864347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/imm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/imm32.so"/0x63864257, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/winspool.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shell32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shell32.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shlwapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shlwapi.so"/0x6386bf37, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shcore.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shcore.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comdlg32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comdlg32.so"/0x638698ef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winmm.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winmm.so"/0x63866687, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msacm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msacm32.so"/0x63866b6f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/wsock32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/wsock32.so"/0x63866b8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/iphlpapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/iphlpapi.so"/0x63866c1f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/dnsapi.so Using native(wrapped) libresolv.so.2 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/nsi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/nsi.so"/0x638654df, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/ws2_32.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oledlg.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oledlg.so"/0x63877ab7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x63899437, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x6389de07, 2)

Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/winex11.drv.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winex11.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winex11.so"/0x63973d2f, 2) Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x63a31eff, 2)

Using native(wrapped) libcups.so.2

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/riched20.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/riched20.so"/0x63b953af, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/usp10.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/usp10.so"/0x63b9a7bf, 2)

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x476f144f, 2)

0048:fixme:imm:ImeSetActiveContext (0x6c6f40, 0): stub 0048:fixme:imm:ImmReleaseContext (00010020, 006C6F40): stub

0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub 0024:fixme:richedit:IRichEditOle_fnSetHostNames stub 002689F0 soundmodem soundmodem

0024:fixme:imm:ImeSetActiveContext (0x26a550, 1): stub 0024:fixme:imm:ImmReleaseContext (00010072, 0026A550): stub

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sxs.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sxs.so"/0x485a635f, 2)

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/hid.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/hid.so"/0x63bb7a2f, 2)

Basically I think that in our situation, soundmodem wants a Windows dll called "hid.dll" to be in ~/.wine/drive_c/windows/system32/ and enabled in the wine winecfg Libraries tab. If you have a Windows PC and can copy it over to your Pi, that might help? But I'm not sure if that will entirely fix the issue.

I assume VARA HF/FM probably also can't detect the DRA-70 PTT?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030704435, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKL7SNUY4JQX5UPNVBDUZWLHHANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mhnadler commented 2 years ago

hid.dll is already in ~/.wine/drive_c/windows/system32/ & shows up in the winecfg libraries.

On Sat, Feb 5, 2022 at 1:54 PM Michael Nadler KI7QIB < @.***> wrote:

I will try it. And VARA FM (I don't have HF radio) does not detect the DRA either.

On Sat, Feb 5, 2022 at 1:47 PM Eric Wiessner (KI7POL) < @.***> wrote:

Ah ok, I think this might possibly be a problem with wine's reimplementation of hid.dll (hid.so) not being 'wrapped' in box86 yet. I'll ask box86's author, ptitSeb, about it. Here's the box86_log1 of soundmodem with PTT.DLL

@.***:~/soundmodem $ BOX86_LOG=1 wine soundmodem.exe 2>&1 | tee log1.txt

Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 46 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wineserver Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/libwine.so.1

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernel32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernel32.so"/0x63840b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernelbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernelbase.so"/0x63848657, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/user32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/user32.so"/0x63851347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/advapi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/advapi32.so"/0x638522ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msvcrt.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msvcrt.so"/0x63852aef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sechost.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sechost.so"/0x638525a7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ucrtbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ucrtbase.so"/0x63850f8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/gdi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/gdi32.so"/0x6385368f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libm.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/setupapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/setupapi.so"/0x63861b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/rpcrt4.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/rpcrt4.so"/0x63853407, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/version.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/version.so"/0x6386261f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oleaut32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oleaut32.so"/0x638626ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ole32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ole32.so"/0x63861cbf, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/combase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/combase.so"/0x63864327, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comctl32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comctl32.so"/0x63864347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/imm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/imm32.so"/0x63864257, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/winspool.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shell32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shell32.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shlwapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shlwapi.so"/0x6386bf37, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shcore.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shcore.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comdlg32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comdlg32.so"/0x638698ef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winmm.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winmm.so"/0x63866687, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msacm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msacm32.so"/0x63866b6f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/wsock32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/wsock32.so"/0x63866b8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/iphlpapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/iphlpapi.so"/0x63866c1f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/dnsapi.so Using native(wrapped) libresolv.so.2 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/nsi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/nsi.so"/0x638654df, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/ws2_32.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oledlg.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oledlg.so"/0x63877ab7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x63899437, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x6389de07, 2)

Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/winex11.drv.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winex11.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winex11.so"/0x63973d2f, 2) Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x63a31eff, 2)

Using native(wrapped) libcups.so.2

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/riched20.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/riched20.so"/0x63b953af, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/usp10.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/usp10.so"/0x63b9a7bf, 2)

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x476f144f, 2)

0048:fixme:imm:ImeSetActiveContext (0x6c6f40, 0): stub 0048:fixme:imm:ImmReleaseContext (00010020, 006C6F40): stub

0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub 0024:fixme:richedit:IRichEditOle_fnSetHostNames stub 002689F0 soundmodem soundmodem

0024:fixme:imm:ImeSetActiveContext (0x26a550, 1): stub 0024:fixme:imm:ImmReleaseContext (00010072, 0026A550): stub

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sxs.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sxs.so"/0x485a635f, 2)

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/hid.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/hid.so"/0x63bb7a2f, 2)

Basically I think that in our situation, soundmodem wants a Windows dll called "hid.dll" to be in ~/.wine/drive_c/windows/system32/ and enabled in the wine winecfg Libraries tab. If you have a Windows PC and can copy it over to your Pi, that might help? But I'm not sure if that will entirely fix the issue.

I assume VARA HF/FM probably also can't detect the DRA-70 PTT?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030704435, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKL7SNUY4JQX5UPNVBDUZWLHHANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Oh yes, the hid.dll from your Windows PC would need to overwrite wine's own hid.dll. Then winecfg Libraries would have to look like this: image

WheezyE commented 2 years ago

(don't mind the "ptt" override in mine, I was just testing some stuff)

mhnadler commented 2 years ago

These are the errors that I see logged when I try to set EXT for the PTT:

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sxs.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sxs.so"/0x498cb68f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/hid.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/hid.so"/0x4a496047, 2)

On Sat, Feb 5, 2022 at 1:59 PM Michael Nadler KI7QIB < @.***> wrote:

hid.dll is already in ~/.wine/drive_c/windows/system32/ & shows up in the winecfg libraries.

On Sat, Feb 5, 2022 at 1:54 PM Michael Nadler KI7QIB < @.***> wrote:

I will try it. And VARA FM (I don't have HF radio) does not detect the DRA either.

On Sat, Feb 5, 2022 at 1:47 PM Eric Wiessner (KI7POL) < @.***> wrote:

Ah ok, I think this might possibly be a problem with wine's reimplementation of hid.dll (hid.so) not being 'wrapped' in box86 yet. I'll ask box86's author, ptitSeb, about it. Here's the box86_log1 of soundmodem with PTT.DLL

@.***:~/soundmodem $ BOX86_LOG=1 wine soundmodem.exe 2>&1 | tee log1.txt

Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 46 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wine argv[1]="soundmodem.exe" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/bin/../lib/wine/i386-unix/ntdll.so Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.5 ed8e01ea built on Dec 10 2021 23:45:16 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 47 Env var Looking for /home/pi/wine/bin/wineserver Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) librt.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/libwine.so.1

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernel32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernel32.so"/0x63840b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/kernelbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/kernelbase.so"/0x63848657, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/user32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/user32.so"/0x63851347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/advapi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/advapi32.so"/0x638522ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msvcrt.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msvcrt.so"/0x63852aef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sechost.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sechost.so"/0x638525a7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ucrtbase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ucrtbase.so"/0x63850f8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/gdi32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/gdi32.so"/0x6385368f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libm.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/setupapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/setupapi.so"/0x63861b47, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/rpcrt4.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/rpcrt4.so"/0x63853407, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/version.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/version.so"/0x6386261f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oleaut32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oleaut32.so"/0x638626ff, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/ole32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/ole32.so"/0x63861cbf, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/combase.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/combase.so"/0x63864327, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comctl32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comctl32.so"/0x63864347, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/imm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/imm32.so"/0x63864257, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/winspool.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shell32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shell32.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shlwapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shlwapi.so"/0x6386bf37, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/shcore.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/shcore.so"/0x6386976f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/comdlg32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/comdlg32.so"/0x638698ef, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winmm.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winmm.so"/0x63866687, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/msacm32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/msacm32.so"/0x63866b6f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/wsock32.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/wsock32.so"/0x63866b8f, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/iphlpapi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/iphlpapi.so"/0x63866c1f, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/dnsapi.so Using native(wrapped) libresolv.so.2 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/nsi.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/nsi.so"/0x638654df, 2) Using emulated /home/pi/wine/lib/wine/i386-unix/ws2_32.so Error loading needed lib /home/pi/wine/lib/wine/i386-unix/oledlg.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/oledlg.so"/0x63877ab7, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x63899437, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/tzres.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/tzres.so"/0x6389de07, 2)

Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/pi/wine/lib/wine/i386-unix/winex11.drv.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Error loading needed lib /home/pi/wine/lib/wine/i386-unix/winex11.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/winex11.so"/0x63973d2f, 2) Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x63a31eff, 2)

Using native(wrapped) libcups.so.2

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/riched20.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/riched20.so"/0x63b953af, 2) Error loading needed lib /home/pi/wine/lib/wine/i386-unix/usp10.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/usp10.so"/0x63b9a7bf, 2)

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/uxtheme.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/uxtheme.so"/0x476f144f, 2)

0048:fixme:imm:ImeSetActiveContext (0x6c6f40, 0): stub 0048:fixme:imm:ImmReleaseContext (00010020, 006C6F40): stub

0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub 0024:fixme:richedit:IRichEditOle_fnSetHostNames stub 002689F0 soundmodem soundmodem

0024:fixme:imm:ImeSetActiveContext (0x26a550, 1): stub 0024:fixme:imm:ImmReleaseContext (00010072, 0026A550): stub

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/sxs.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sxs.so"/0x485a635f, 2)

Error loading needed lib /home/pi/wine/lib/wine/i386-unix/hid.so Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/hid.so"/0x63bb7a2f, 2)

Basically I think that in our situation, soundmodem wants a Windows dll called "hid.dll" to be in ~/.wine/drive_c/windows/system32/ and enabled in the wine winecfg Libraries tab. If you have a Windows PC and can copy it over to your Pi, that might help? But I'm not sure if that will entirely fix the issue.

I assume VARA HF/FM probably also can't detect the DRA-70 PTT?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030704435, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKL7SNUY4JQX5UPNVBDUZWLHHANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Hm, maybe wrapping would be better than overriding. I'll ask Seb about it

WheezyE commented 2 years ago

Oh man... apologies - I didn't think to check to see if the dll was available from winetricks. Try this: BOX86_NOBANNER=1 winetricks -q hid

mhnadler commented 2 years ago

OK. I can try it a bit later tonight.

On Sat, Feb 5, 2022 at 5:14 PM Eric Wiessner (KI7POL) < @.***> wrote:

Oh yes, the hid.dll from your Windows PC would need to overwrite wine's own hid.dll. Then winecfg Libraries would have to look like this: [image: image] https://user-images.githubusercontent.com/29649598/152660407-885831f2-111d-4c19-a7ad-281e01778d62.png

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030706521, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKLEA2IPKEJNATLNAPLUZXDORANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mhnadler commented 2 years ago

Different result -- now it reports a new window -- Invalid Floating Point Operation.

Log doesn't show the previous errors. Got to stop now,..

On Sat, Feb 5, 2022 at 5:14 PM Michael Nadler KI7QIB < @.***> wrote:

OK. I can try it a bit later tonight.

On Sat, Feb 5, 2022 at 5:14 PM Eric Wiessner (KI7POL) < @.***> wrote:

Oh yes, the hid.dll from your Windows PC would need to overwrite wine's own hid.dll. Then winecfg Libraries would have to look like this: [image: image] https://user-images.githubusercontent.com/29649598/152660407-885831f2-111d-4c19-a7ad-281e01778d62.png

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030706521, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKLEA2IPKEJNATLNAPLUZXDORANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Thanks for giving that a shot. Hm.

Maybe try this out next when you get a chance

Does behavior with VARA FM change at all now?

mhnadler commented 2 years ago

VARA FM is not happy today. I may have created the problem by switching DLLs back and forth. The VARA log had said it was having trouble with SXS.DLL, so I brought that over & did the same stuff with winecfg. But it didn't make any difference with detecting RA boards. I switched it back. This was on the 5th.

Today VARA FM was segfaulting in startup. I killed its .ini file & then it started fine. I configured it, soundcard, registration, etc. All except I didn't change PTT settings. This ran ok & it would go out over the radio because DRA's VOX feature. I then went into PTT settings & as soon as I set RA-board, the program faulted. I've attached the log from that execution.

Question: is it important to execute the vb6run command each time after switching DLLs with winecfg? I am not an expert on Wine.

On Sat, Feb 5, 2022 at 6:11 PM Eric Wiessner (KI7POL) < @.***> wrote:

Thanks for giving that a shot. Hm.

Maybe try this out next when you get a chance

  • Go back to the folder where you extracted soundmodem to
  • Type BOX86_LOG=1 wine soundmodem.exe 2>&1 | tee soundmodem_log1.txt (and then run the program until you get the "Invalid Floating Point Operation" message)
  • Then go back to your Linux terminal window and hit CTRL+C (or open a new terminal window and type wineserver -k or use the desktop shortcut to restart wine)
  • Then would you be able to attach the soundmodem_log1.txt file that appears? (don't copy/paste text of the file here, just please attach the file).

Does behavior with VARA FM change at all now?

  • You'll need to also check the box for VARA > Settings > VARA Setup > "RA-Board PTT"
  • If you can post the terminal output of ls ~/.wine/drive_c/VARA\ FM/ that will help me too (just want to make sure the PTT.DLL is in there).

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030736219, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKN6ZYVXVOUC4TQ2XILUZXKGPANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

EDIT by @WheezyE: Pasted box86 log attached as file instead soundmodem_raboard_box86log1.txt

mhnadler commented 2 years ago

I'm going ahead and starting a new SD from scratch. I have the installs done. Tomorrow, I'll fool with testing.

On Mon, Feb 7, 2022 at 4:38 PM Michael Nadler KI7QIB < @.***> wrote:

VARA FM is not happy today. I may have created the problem by switching DLLs back and forth. The VARA log had said it was having trouble with SXS.DLL, so I brought that over & did the same stuff with winecfg. But it didn't make any difference with detecting RA boards. I switched it back. This was on the 5th.

Today VARA FM was segfaulting in startup. I killed its .ini file & then it started fine. I configured it, soundcard, registration, etc. All except I didn't change PTT settings. This ran ok & it would go out over the radio because DRA's VOX feature. I then went into PTT settings & as soon as I set RA-board, the program faulted. I've attached the log from that execution.

Question: is it important to execute the vb6run command each time after switching DLLs with winecfg? I am not an expert on Wine.

On Sat, Feb 5, 2022 at 6:11 PM Eric Wiessner (KI7POL) < @.***> wrote:

Thanks for giving that a shot. Hm.

Maybe try this out next when you get a chance

  • Go back to the folder where you extracted soundmodem to
  • Type BOX86_LOG=1 wine soundmodem.exe 2>&1 | tee soundmodem_log1.txt (and then run the program until you get the "Invalid Floating Point Operation" message)
  • Then go back to your Linux terminal window and hit CTRL+C (or open a new terminal window and type wineserver -k or use the desktop shortcut to restart wine)
  • Then would you be able to attach the soundmodem_log1.txt file that appears? (don't copy/paste text of the file here, just please attach the file).

Does behavior with VARA FM change at all now?

  • You'll need to also check the box for VARA > Settings > VARA Setup

    "RA-Board PTT"

  • If you can post the terminal output of ls ~/.wine/drive_c/VARA\ FM/ that will help me too (just want to make sure the PTT.DLL is in there).

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1030736219, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKN6ZYVXVOUC4TQ2XILUZXKGPANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

I see what you mean about the sxs.so library from your box86 log1: Warning: Cannot dlopen("/home/pi/wine/lib/wine/i386-unix/sxs.so"/0x64584277, 2)

I think this library might comes from vcrun2012 but I’m not entirely sure. You might try installing that with winetricks using BOX86_NOBANNER=1 winetricks-q vcrun2012 though I think I might have even tried that in the past without good results.

You only need to install vb6run with winetricks once (once per wineprefix / once per install of winelink). If you’re worried that the install might be broken, no need to re-flash the Pi with a new operating system - just installing winelink again will make a new wineprefix with all the dll’s back to the way they should be.

WheezyE commented 2 years ago

I’ll try to experiment with this more pretty soon

mhnadler commented 2 years ago

winetricks did install vcrun2012 so it wasn't there already. Other times that I've run winetricks, for example with "hid", it told me that it was already installed & exited.

I didn't mention that in the new install -- the floating-point exception isn't happening. I thought that appeared around the time that you had me look for hid. Several changes were happening at the same time & I did not keep accurate records. I thought bash history would save me, but I don't have that set up like I used to at work, where all my xterms shared the same bash history file.

The vcrun2012 install didn't seem to make any change with finding the DRA box. Now that the FP exception isn't happening, it gets to the select HID device, but it's not populated with the DRA.

I don't know if this helps. I attached a screenshot of winecfg libraries, and the soundmodem log up to where the HID pick list is to be displayed. When I select EXT and click OK is where the sxs.so dlopen fails. The cannot open PTT device window then pops up. I don't about the dlopen error, but the UI runs this same way in Windows. You click Yes to this prompt, which opens the PTT HID selector. In windows, it's populated with the DRA box (USB PNP device, iirc). In wine, there's a blank entry.

On Mon, Feb 7, 2022 at 10:37 PM Eric Wiessner (KI7POL) < @.***> wrote:

I’ll try to experiment with this more pretty soon

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1032260516, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKIGSBYMKO4VSSVZF7LU2C2Y5ANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

EDIT by @WheezyE: Pasted box86 log attached as file instead soundmodem_raboard_box86log1_b.txt

WheezyE commented 2 years ago

I've been experimenting a bit more and am not really sure, but am going to ask Seb about sxs.so and see what he thinks https://github.com/ptitSeb/box86/issues/567

mhnadler commented 2 years ago

Did you get any response?

On Wed, Feb 9, 2022, 2:46 PM Eric Wiessner (KI7POL) < @.***> wrote:

I've been experimenting a bit more and am not really sure, but am going to ask Seb about sxs.so and see what he thinks ptitSeb/box86#567 https://github.com/ptitSeb/box86/issues/567

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1034275504, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKIIP3Z5Y75QAN2E7NTU2LVGBANCNFSM5EARMU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 2 years ago

Doesn't look like Seb has looked into it yet, though I've heard he's been busy. Benjamin, WY2K thought that this might actually be a wine bug instead of box86. I'm considering ordering a DRA-36 (pending XYL approval) to do more testing and see if it works with my FT-891, but I'm not sure yet.

I also found these guides on the DRA-board website's FAQ and might go through my setup again reading through these (ie I might try HidLibrary.dll instead of the SoundModem DLL's for VARA PTT alone).

mhnadler commented 2 years ago

I'm seeing posts from people being able to run VARA-FM on Raspberry PIs. Closer inspection shows that they are all using either DRA boxes that support VOX or SignaLinks. No one is able to run VARA-FM with hardware PTT that I can find.

Is there any progress finding a solution? VOX operation with DRAs can be error-prone as it takes the circuitry some time to drop PTT. During that lag, the remote station could have responded & that response could be missed.

I tried grabbing HidLibrary.dll. It made no difference; the DRA C-Media device is not detected. I think I installed the DLL correctly: downloaded the dll copied the dll to .wine/drive_c/windows/system32/ ran "wine winecfg" and added hidlibrary to the list, along with ptt and hid.

Neither Soundmodem nor VaraFM see the DRA as an RA-Board.

Suggestions?

ve1cwj commented 2 years ago

Following this thread with interest... I'm running VARA FM on a Pi 4 (Bullseye) with PAT using a modified CM108 USB soundcard (same chip as the DRA devices). In Windows, I can use the VARA DRA C-Media device PTT option to key the radio via the CM108's GPIO so would love to have this functionality on the pi also. Would be happy to test and troubleshoot if I can help.

My current workaround is to set VARA FM PTT to VOX, then run a rigctl daemon with "rigctld -p /dev/hidraw0 -P CM108 -C ptt_bitnum=2" and let PAT key the radio using "rigctl -m 2" to connect to the daemon. It seems to work fine, but that method doesn't crossover to Winlink Express so well.

@WheezyE - You could pickup one of these CM108 USB soundcards for a tester as an alternative to the DRA device: https://www.amazon.ca/dp/B086H4J2YG?ref_=cm_sw_r_cp_ud_dp_WXD7PPFP0JAS8A9WC1H1

WheezyE commented 2 years ago

I'm seeing posts from people being able to run VARA-FM on Raspberry PIs. Closer inspection shows that they are all using either DRA boxes that support VOX or SignaLinks. No one is able to run VARA-FM with hardware PTT that I can find.

Yes, that's correct. The VOX-enabled DRA's which don't require PTT are able to work, but PTT is still broken.

Is there any progress finding a solution? VOX operation with DRAs can be error-prone as it takes the circuitry some time to drop PTT. During that lag, the remote station could have responded & that response could be missed. ... Suggestions?

None so far, I'm afraid. Without a DRA board to debug with, and without any input from Seb, I'm a bit dead in the water on this issue. But I'm interested in this CM108 being used as a low-cost stand-in for the DRA board. I actually have a Sabrent USB card which I think has a CM108 chip onboard.

@ve1cwj Is this the PTT mod you're talking about? Or is there an easier one or two solder-point mod?

mhnadler commented 2 years ago

There's a note in John Wisemann's article that is intriguing. That in Linux, all HIDs are owned by root. Could that be why Wine apps can't see them? I'll have to test that udev filter he wrote up. Who knows...

On Thu, Jun 9, 2022, 7:16 PM Eric Wiessner (KI7POL) < @.***> wrote:

I'm seeing posts from people being able to run VARA-FM on Raspberry PIs. Closer inspection shows that they are all using either DRA boxes that support VOX or SignaLinks. No one is able to run VARA-FM with hardware PTT that I can find.

Yes, that's correct. The VOX-enabled DRA's which don't require PTT are able to work, but PTT is still broken.

Is there any progress finding a solution? VOX operation with DRAs can be error-prone as it takes the circuitry some time to drop PTT. During that lag, the remote station could have responded & that response could be missed. ... Suggestions?

None so far, I'm afraid. Without a DRA board to debug with, and without any input from Seb, I'm a bit dead in the water on this issue. But I'm interested in this CM108 being used as a low-cost stand-in for the DRA board. I actually have a Sabrent USB card which I think has a CM108 chip onboard.

@ve1cwj https://github.com/ve1cwj Is this https://www.cantab.net/users/john.wiseman/Documents/CM108_PTT.html the PTT mod you're talking about? Or is there an easier one or two solder-point mod?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1151843469, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKPD6YCQPAGPJTGE5MDVOKQPXANCNFSM5EARMU2A . You are receiving this because you authored the thread.Message ID: @.***>

ve1cwj commented 2 years ago

@ve1cwj Is this the PTT mod you're talking about? Or is there an easier one or two solder-point mod?

Yes, very similar. I did a mod like this one using a transistor connected to the CM108 GPIO for PTT. I think this one also has a COS input for Allstar that isn't necessary for VARA. Any soundcard with the CM108 exposed should work.

mhnadler commented 2 years ago

I made changes recommended by John Wisemann in the BPQ config, plus added UDEV rule changes permissions on the hidraw device to 0666. I made no changes to the VARA configuration. Removed JU7 on the DRA-70 board, which disables VOX.

Preliminary results -- it's working! Even though VARA does NOT have RA-board selected, the station operates as expected.

I'll keep running tests, but this is very promising. I don't have any lower-level DRA models to test with. Maybe someone else out there can do so?

On Thu, Jun 9, 2022 at 7:45 PM ve1cwj @.***> wrote:

@ve1cwj https://github.com/ve1cwj Is this https://www.cantab.net/users/john.wiseman/Documents/CM108_PTT.html the PTT mod you're talking about? Or is there an easier one or two solder-point mod?

Yes, very similar. I did a mod like this one https://allstarsetup.com/modify-a-cm108-sound-fob-for-allstar/ using a transistor connected to the CM108 GPIO for PTT. I think this one also has a COS input for Allstar that isn't necessary for VARA. Any soundcard with the CM108 exposed should work.

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1151863657, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKPSTRSZVGRVJY2C3EDVOKT3LANCNFSM5EARMU2A . You are receiving this because you authored the thread.Message ID: @.***>

WheezyE commented 1 year ago

Just documenting some stuff for future reference.

Sabrent USB soundcard (CM108) internals: https://imgur.com/a/gjE0aZh

CM108 PTT build

Parts list (to test RA-Board PTT)

Info

WheezyE commented 1 year ago

Sorry to bug you with this again, @mhnadler , but there have been some big updates to box86 & my install script. I haven't soldered my fake DRA board together yet, but just curious if the PTT might be fixed yet

WheezyE commented 1 year ago

Sorry one second before any testing - I forgot to update the box86 install file - one moment

WheezyE commented 1 year ago

Ok should be good to try now

mhnadler commented 1 year ago

Finally had some time to run a test. I installed from scratch with clean bullseye OS. Installed all the updates. Made the hidraw change recommended by Wisemann. Then, downloaded and ran install_winelink.sh. That script completed without error.

Tried running VARA-FM, to configure PTT -- and it did not detect RA-board.

Therefore it does not work. Anything else I should change or test? I didn't do any Wine changes like we'd done in the past, assuming that everything would be in this bundle.

On Wed, Oct 12, 2022 at 1:39 PM Eric Wiessner (KI7POL) < @.***> wrote:

Ok should be good to try now

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/10#issuecomment-1276713366, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRJTKNFCBG56O6TXUUYO2LWC4OZRANCNFSM5EARMU2A . You are receiving this because you were mentioned.Message ID: @.***>

coolacid commented 1 year ago

I find myself in the same situation. The main difference here is that I'm running Wine on x86 hardware.

I have VARA FM running, but it is also unable to detect the RA board. I have UDEV rules that ensure the device's /dev/hidraw is 0666 and when adding WINEDEBUG=+hid I can see VARAFM pulling the descriptors for the HID device. Yet, it still isn't able to detect a HID device.

If there's something I can do to help diagnose this, please let me know.

WheezyE commented 1 year ago

@coolacid Apologies for the delay, I was on holiday vacation & then honeymoon.

I'd really like to get this working on x86 hardware like you're running (before migrating to trying box86 - to reduce complexity while we're trying to fix this). I don't own an RA board to test.

Just a guess, but could try these commands to see if they do anything?

sudo usermod -a -G dialout $USERNAME
sudo usermod -a -G tty $USERNAME
sudo usermod -a -G audio $USERNAME

(source)

SpudGunMan commented 1 year ago

I will troubleshoot along with you on this, ran 2023 script and no success yet cm108 utility detects the attached DRA-50

kd4e commented 1 month ago

@WheezyE Sorry for OT but everyone connected to Artemis seems well walled-off to communications. Is there a place I can ask a question about using it on an inovato Quadra ARM mini-pc, please?