Closed WheezyE closed 2 years ago
I tried several things to make the serial ports work, but it failed. Not possible to communicate with my radio and my pactor modem..
Until we find & fix the problem in wine-mono, you might be able to work around this by installing .NET 4.6 (to replace wine-mono).
EDIT: First, upgrade box86 to a newer build
sudo apt-get install cmake git -y
commit="ed8e01e"
echo -e "Building and installing Box86 . . ."
mkdir box86; cd box86
rm -rf box86-builder; mkdir box86-builder && cd box86-builder/
git clone https://github.com/ptitSeb/box86 && cd box86/
git checkout "$commit"
mkdir build; cd build
cmake .. -DRPI4=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j3
sudo make install # copies box86 files into their directories (/usr/local/bin/box86, /usr/lib/i386-linux-gnu/, /etc/binfmt.d/)
cd ..
cd ..
cd ..
cd ..
sudo systemctl restart systemd-binfmt
Then run this command in the terminal: BOX86_NOBANNER=1 BOX86_DYNAREC_BIGBLOCK=0 BOX86_DYNAREC_STRONGMEM=2 winetricks --force dotnet46
You will have to click a few buttons to install a few versions of .NET until .NET 4.6 installation is complete.
If the installation completes but then the terminal gets stuck for more than an hour, open a new terminal window and type wineserver -k
, then re-run the command above. You might have to do that a couple times before dotnet46 is fully installed.
After testing the dotnet46 option a bit more: ARDOP may not work
After many try to install dotnet46, it fails. I'll try again tomorrow.
Thank you for testing things out. I'll try to get an install method for dotnet46 worked into the winelink script pretty soon to make this easier.
This COM port issue is my top priority now that we understand where the HF Channel Selection Browser crash is coming from, but it may take some time to track down and then fix the error (maybe a few weeks or so).
It works now. It takes a long time, but after many Attempts, it works with my Icom IC-7100 and my PTC-II pactor modem. Thank you and I wait for your future install script.
I think my dummy load may take some time to arrive in the mail. I'm new to Denver, but just realized there's an HRO in the city, so I might take a trip down there and play with a Pactor modem for a while if they have any to connect to do some software testing. It may take some time to get an opportunity to make a trip though.
In the meantime, I'll try to see what I can find out without trying CAT PTT on my FT-891. I'll try to see if maybe wine-mono just isn't seeing com ports at all or something like that.
I found a way to install .NET 4.6 silently, so I'm re-implementing the use of .NET instead of wine-mono for now in 16bdc65 until we can fix more bugs in wine-mono. One downside to this is that ARDOP doesn't work yet... but try testing this new version of the install script and see if COM ports work again.
EDIT: The Channel Selection Browser seems to crash again with .NET4.6. My dummy load arrives on the 14th though, so I’ll be able to keep tracking bugs in wine-mono when that comes in. EDIT 12/15/2021: J/k it's arriving on the 21st. I'm excited to test it out though. EDIT 12/23/2021: Dummy load arrived and I confirmed its SWR yesterday. Holiday stuff might delay testing, but I'll post when I have more info
EDIT: If you want to go back to the wine-mono version instead of the .NET4.6 version, you can still download the older winelink script with this terminal command:
wget https://raw.githubusercontent.com/WheezyE/Winelink/09d2927f742de563d0e9fd886816c095b18a0df3/install_winelink.sh
Just a small update: I've re-created the error on my end (in wine-mono) & confirmed that the PTT /channel-selection (CAT control to FT-891) do work on Debian 10 in wine + .NET 4.6 + ARDOP. Next step is to trace the problem in wine-mono and type up a report for Esme (madewokherd).
I think I found the error. This pops up in wine-mono right when Winlink reports that the com port is not accessible:
WINE_MONO_TRACE=x WINE_MONO_HIDETYPES=1 wine RMS\ Express.exe
...
[000001b8:] EXCEPTION handling: System.NotImplementedException: The method or operation is not implemented.
The same COM port works in .NET 4.6 (and I know that this COM port is connected to the radio via checking symlinks in ~/.wine/dosdevices
and due to its disappearance when the radio is not connected)
I'll report this in to Esme to see what they think!
Edit: Here's a picture of the COM port error in wine-mono (doesn't happen in .NET 4.6 - .NET 4.6 can key the radio and change radio frequency over USB aka "CAT control")
Edit: Bugreport submitted to winehq Bugzilla
Esme has fixed the PTT problem with RMS Express in wine-mono. I'll update the Winelink script again soon with the new wine-mono version instead of .NET (for quicker install, and for more testing)
I'm excited to say I've merged Esme's wine-mono fix into Winelink and switched to wine-mono again (instead of .NET 4.6) to speed up install.
@djecom1 & @KD2ROS, would you be able to try re-installing and testing your equipment again? Thank you for your patience!
Edit: I just found some new troubles with running Winelink on Raspberry Pi OS bullseye (I never tried it before now) and am trying to fix that at the moment. I also realized that I need to test to see if ~/.wine/dosdevices
populates properly with USB devices, but I've run out of time for tonight. I'll update this when I double-check to make sure that's working.
Okay....good news is that the channel selection/propagation screen when using VARA HF works completely! However, the one problem I have found is that Winlink cannot open the command port (8300) when starting a session in either VARA FM or VARA HF....Winlink packet works like a champ...
I can open a session in both VARA's and set up the rig, soundcards, ptt, etc...you can successfully ping a Winlink node and autotune in VARA FM and rig control works to select and tune to a channel on VARA HF...the trouble starts when you press "Start" to intiate the communications...I am attaching a pic of the errror message from VARA FM..
.
Thank you for your testing! I really appreciate another set of eyes on all this. Also great to hear that packet is working now.
I did some testing and found out that CAT/PTT are working in VARA, but we're running into two bugs here. One is a known TCP port listening bug that we can get around by just restarting RMS Express. Another bug though is related to using an older version of Wine on the Pi. I'll try to update wine to a newer version that works with VARA and box86.
Strange ... updating to wine-devel-7.1 doesn't fix the connection errors between VARA and RMS Express. I don't think it's a wine-mono problem though since everything works on my Debian 10 VM. I'll keep looking into this.
EDIT3: box86 Jan 01 2021 works! VARA Chat also triggers PTT and sends tones (if I use the FT-991 settings with RTS+DTR for my FT-891). I'll find the latest version of box86 that works, let Seb know, and email the VARA Chat authors to let them know that the FT-991 settings work for the FT-891.
Ok ... I think it's fixed now lol. Maybe give it one more shot with another re-install. The constant reconnecting issue (between RMS & VARA/ARDOP over TCP) can't be helped for now, but hopefully in the future. Try restarting RMS Express if that comes up.
It would be amazing if we could test RMS Express with this new wine-mono fix with lots of different hardware too to see if USB ports are working in general.
Works !!! Test : VARA HF and Pactor (RaspberryPi400, IC-7100, modem pactor Swiss PTC-II) Thank you F4GMU
Thank you for letting us know and for posting your hardware setup!
New import of System.IO.Ports.SerialPort from corefx (in https://github.com/madewokherd/mono/commit/03d7efb1da676fcf29c1446637ea9dfc5c436b2e) has now been merged into https://github.com/madewokherd/wine-mono/commit/31df9194e1647f0e30b764e9dbe3acc1df1e0847
Success with VARA FM, VARA HF and Packet Winlink!!!! Re installed Winelink after the new import of System,IO.Ports.SerialPort…System: RPi 4 8GB, IC7100, native IC7100 sound card for both VARA FM and VARA HF and a bluetooth Mobilink’d TNC3 for Packet Winlink…
Nice work Eric and Esme!!! Thank you!!!!
73 de KD2ROS Kate
On Feb 3, 2022, at 11:41 AM, Eric Wiessner (KI7POL) @.***> wrote:
New import of System.IO.Ports.SerialPort from corefx (in @. https://github.com/madewokherd/mono/commit/03d7efb1da676fcf29c1446637ea9dfc5c436b2e) has now been merged into @. https://github.com/madewokherd/wine-mono/commit/31df9194e1647f0e30b764e9dbe3acc1df1e0847 — Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/17#issuecomment-1029180310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7BOY57GGHWZ5JRZ57K4G3UZKV4BANCNFSM5JSQNHGQ. 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 were mentioned.
Wonderful! Thank you for all of your alpha testing and patience. I really appreciate your help. I’ll close this issue and report some bugs to winehq to try to help the TCP issues (VARA/ARDOP-to-RMS communication)