Keyboard Shortcuts
Likes
- Bpq32
- Messages
Search
Windows Powershell BPQ update script (howto)
#windows
#powershell
#bpq32
Hi folks
I wrote a very basic powershell script to get the latest BPQ beta binaries and DLL from John’s website to help simplify the process of updating. It is not a smart script, its basic but could be the foundation for a more advanced script that does version backups and so forth. However, as I do not run windows myself that is a bit beyond my scope of abilities :-) Here’s a write-up included for the list, but any corrections will be posted here: 73s Red de PE1RRR Simple (Windows) Powershell Script to Update?BPQ32This very VERY basic script was created for a friend to update their Windows 10 install of BPQ32 to the latest beta releases. As beta releases by John G8BPQ don’t have any identifying characteristics other than file server time stamp, the update process is as simple as downloading the latest binaries and zipped DLL from the same locations periodically. To get this script to work on your system you will be required to enable Powershell scripts in the system settings. Follow the below menu path to locate the section containing the security override.? Start Menu -> PC Settings -> Updates & Security -> Developer Options -> Scroll down to Powershell section. Check the box next to ”Change execution policy to allow local Powershell scripts to run” and click Apply. ![]() To create the script, find and run from the start menu: powershell_ise ![]() Clear-Host # Edit paths below to suit your system # Please note that the Upgrade folder is emptied on each script run. $BpqUpgradeFolder = "D:\BPQ32\UPGRADE" $BpqMainFolder = "D:\BPQ32" Write-Host "Updating BPQ DLL and EXE files, please make sure BPQ is shut down first..." pause New-Item -ItemType Directory -Force -Path "$BpqUpgradeFolder" Get-ChildItem -Path $BpqUpgradeFolder -File -Recurse | Remove-Item Invoke-WebRequest -Uri "https://www.cantab.net/users/john.wiseman/Downloads/Beta/bpq32.zip" -OutFile "$BpqUpgradeFolder\bpq32.zip" Invoke-WebRequest -Uri "https://www.cantab.net/users/john.wiseman/Downloads/Beta/BPQChat.exe" -OutFile "$BpqUpgradeFolder\BPQChat.exe" Invoke-WebRequest -Uri "https://www.cantab.net/users/john.wiseman/Downloads/Beta/BPQMail.exe" -OutFile "$BpqUpgradeFolder\BPQMail.exe" Expand-Archive -Path "$BpqUpgradeFolder\bpq32.zip" -DestinationPath "$BpqUpgradeFolder" -Force ForEach($file in Get-Childitem $BpqUpgradeFolder -Recurse -ErrorAction SilentlyContinue ` | Where-Object {$_.Extension -Match "dll" -or $_.Extension -Match "pdb" -or $_.Extension -Match "exe"} ) { Write-Host "Copying file: $file" Copy-Item -Path $file.fullname -Destination $BpqMainFolder -force } Write-Host "Update Complete" pause Copy the contents of the script into the upper part of the PowerShell editor,? Then edit the following lines to match your system: $BpqUpgradeFolder = "D:\BPQ32\UPGRADE" $BpqMainFolder = "D:\BPQ32" The ” ![]() After setting the paths appropriately, use the? Before testing, shut down your BPQ32 application, test the script by using the green Play button in the PowerShell editor. It is necessary to shut down BPQ before running the script from wherever you saved it to. |
Message not read for 10 days Deleted
开云体育John
?
Sent you a detailed email about Messages not being read for 10
days has been deleted.
?
73
?
Mike Melnik-N9PMO
BPQ32 Group Moderator |
Re: Raspberry PI4 trifecta: VARA, ARDOP & Packet on one ... interface
Sparks KK4IB
开云体育Aha, thanks, much better, succinct, explanation.I looked it up and got way too much information (TMI) to weed thru. sparks On Jun 15, 2022, at 10:35 AM, Michael Nadler <ki7qib@...> wrote: Winelink is a GitHub project that installs Wine, then Winlink and VARA for you. You can then point a BPQ port at the VARA interface.?
|
Re: Raspberry PI4 trifecta: VARA, ARDOP & Packet on one ... interface
Sparks KK4IB
开云体育I’m confused. please clarify something here.You mentioned “WineLink" several times, is that a typo for Winlink? or Wine (a tool for Macs) …? . I’m running R-Pi with BPQ via a homebrew interface (similar to SignaLink but with serial PTT). Separately, running Vara FM via SignaLink. I want them both on the same R-Pi. So, I’m very interested. sparks On Jun 14, 2022, at 4:23 AM, Red - PE1RRR - Masochistic Test Pilot <rrrtuby@...> wrote: Hello folks, Thought to contribute to the group with a recent success of getting a RPI to take over doing all of the things at once on one audio interface including VARA running simultaneously as other native Linux modems: The original document with images and a demo video is up here: —- included below for archival —- RPI4 Trifecta: VARA, Packet & ARDOP – One Audio?Interface![]() A Short DemonstrationRequirementsThis document assumes you have already installed the VARA suite of modems and the companion programs via the Winelink project. If not, now is your chance- Word of caution: installing wine is disk intensive, if you have not yet got your home directory on a real physical disk instead of the SD Card- now is the time to consider doing that. The SD Card is also incredibly slow for wine applications. To install Wine and the ARM x86 emulator system, visit the? Or go wild and run it live from the command line: curl -O && \ VARA: dsnoop & dmixPhysical audio interface mapping to the virtual sound devices for playback ( pcm.dsnooped0 { type dsnoop ipc_key 50000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" channels 1 } } pcm.dmix0 { type dmix ipc_key 60000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" rate 44000 } } Both VARA and ARDOP require 48KHz sample rate to be forced (default is 44.1 for system sounds) so two new audio streams are required and this is accomplished using the? Below is a snip showing the previously configured dsnoop0 & dmix0 interfaces, we’re going to call them? pcm.ARDOP2IN {type rate slave {pcm "plug:dsnooped0" rate 48000}} Wine (for VARA) requires these 48KHz audio device streams, but in a slightly different presentation to the system. Wine requires asymmetrical streams that we currently do not have, these are provisioned by combining the two previously configured ARDOP streams into a new virtual device “ pcm.asymwine { The next bit gets hairy as we are now required to edit the Wine Registry- what happens is that ‘ Run from the command line: wine regedit In the registry editor, navigate to: HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv ![]() From within winealsa.drv, create a new “ ![]() Name this key: ALSAOutputDevices Hit enter to save, then create another key and title it: ALSAInputDevices After adding the keys, double-click each newly created key to open it in data entry mode. Insert the device name previously configured in the .asoundrc file –? ![]() ![]() Close the registry editor and relax. Now run “ ![]() Apply, OK and exit? Open up VARA HF and navigate to sound settings to select the? This concludes the VARA part. Download & Resources for QtSoundModem & ARDOPQtSoundModem:? ARDOP:? QtSoundModem (Packet)We are assuming that? To configure QtSoundModem to use the? Edit QtSoundModem.ini: Find and replace the? SndRXDeviceName=:dsnooped0 That concludes the QtSoundModem setup. ARDOPUsing a script to launch? /home/pi/bin/piardopc 8515 ARDOP2IN ARDOP2OUT 8515 is the port ARDOP will listen for TNC connections on (as used when configured in BPQ node suite etc). This concludes the ARDOP setup. Full disclosureThanks and credit due to Matt? Below is the full? @hooks [ { func load files [ { @func concat strings [ { @func datadir } "/alsa.conf.pulse/" ] } ] errors false } ] # Point applications to plughw:dsnooped0 for input and plug:dmix0 for output pcm.dsnooped0 { type dsnoop ipc_key 50000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" channels 1 } } pcm.dmix0 { type dmix ipc_key 60000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" rate 44000 } } # Point ARDOP to ARDOP2IN and ARDOP2OUT for rate conversion pcm.ARDOP2IN {type rate slave {pcm "plug:dsnooped0" rate 48000}} pcm.ARDOP2OUT {type rate slave {pcm "plug:dmix0" rate 48000}} # Wine: combine the capture and playback pcm.asymwine { type asym playback.pcm "ARDOP2OUT" capture.pcm "ARDOP2IN" } # Wine: make a default plug for it pcm.!default { type plug slave.pcm "asymwine" } # Wine: define a plug for /dev/dsp pcm.dsp { type plug slave.pcm "asymwine" } 73 de pe1rrr / red |
Re: PILINBPQ w/Signal Link USB
开云体育Just an update; I now have QTsoundmodem working on PILINBPQ with USB Signalink. Thank you to John G8BPQ and Lee K5DAT Thank you gentlemen; it works very well. Brett KB5YZB On 6/5/2022 10:57 PM, John G8BPQ wrote:
A normal UZ7HO port definition is |
Re: Is this expected behavior on linbpq Version 6.0.22.70?
开云体育The version I’m using (I’m sure which at the moment) does the same Charlie. ?Must be in the code that way now. ? Tim - KF5RLL? On Jun 9, 2022, at 7:12 AM, Charlie Hein <chein@...> wrote:
|
Raspberry PI4 trifecta: VARA, ARDOP & Packet on one audio interface nut cracked.
Hello folks,
Thought to contribute to the group with a recent success of getting a RPI to take over doing all of the things at once on one audio interface including VARA running simultaneously as other native Linux modems: The original document with images and a demo video is up here: —- included below for archival —- RPI4 Trifecta: VARA, Packet & ARDOP – One Audio?Interface![]() A Short DemonstrationRequirementsThis document assumes you have already installed the VARA suite of modems and the companion programs via the Winelink project. If not, now is your chance- Word of caution: installing wine is disk intensive, if you have not yet got your home directory on a real physical disk instead of the SD Card- now is the time to consider doing that. The SD Card is also incredibly slow for wine applications. To install Wine and the ARM x86 emulator system, visit the? Or go wild and run it live from the command line: curl -O https://raw.githubusercontent.com/WheezyE/Winelink/main/install_winelink.sh && \ VARA: dsnoop & dmixPhysical audio interface mapping to the virtual sound devices for playback ( pcm.dsnooped0 { type dsnoop ipc_key 50000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" channels 1 } } pcm.dmix0 { type dmix ipc_key 60000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" rate 44000 } } Both VARA and ARDOP require 48KHz sample rate to be forced (default is 44.1 for system sounds) so two new audio streams are required and this is accomplished using the? Below is a snip showing the previously configured dsnoop0 & dmix0 interfaces, we’re going to call them? pcm.ARDOP2IN {type rate slave {pcm "plug:dsnooped0" rate 48000}} Wine (for VARA) requires these 48KHz audio device streams, but in a slightly different presentation to the system. Wine requires asymmetrical streams that we currently do not have, these are provisioned by combining the two previously configured ARDOP streams into a new virtual device “ pcm.asymwine { The next bit gets hairy as we are now required to edit the Wine Registry- what happens is that ‘ Run from the command line: wine regedit In the registry editor, navigate to: HKEY_CURRENT_USER\Software\Wine\Drivers\winealsa.drv ![]() From within winealsa.drv, create a new “ ![]() Name this key: ALSAOutputDevices Hit enter to save, then create another key and title it: ALSAInputDevices After adding the keys, double-click each newly created key to open it in data entry mode. Insert the device name previously configured in the .asoundrc file –? ![]() ![]() Close the registry editor and relax. Now run “ ![]() Apply, OK and exit? Open up VARA HF and navigate to sound settings to select the? This concludes the VARA part. Download & Resources for QtSoundModem & ARDOPQtSoundModem:? ARDOP:? QtSoundModem (Packet)We are assuming that? To configure QtSoundModem to use the? Edit QtSoundModem.ini: Find and replace the? SndRXDeviceName=:dsnooped0 That concludes the QtSoundModem setup. ARDOPUsing a script to launch? /home/pi/bin/piardopc 8515 ARDOP2IN ARDOP2OUT 8515 is the port ARDOP will listen for TNC connections on (as used when configured in BPQ node suite etc). This concludes the ARDOP setup. Full disclosureThanks and credit due to Matt? Below is the full? @hooks [ { func load files [ { @func concat strings [ { @func datadir } "/alsa.conf.pulse/" ] } ] errors false } ] # Point applications to plughw:dsnooped0 for input and plug:dmix0 for output pcm.dsnooped0 { type dsnoop ipc_key 50000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" channels 1 } } pcm.dmix0 { type dmix ipc_key 60000 ipc_key_add_uid false # let multiple users share ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600) slave { pcm "hw:1,0" rate 44000 } } # Point ARDOP to ARDOP2IN and ARDOP2OUT for rate conversion pcm.ARDOP2IN {type rate slave {pcm "plug:dsnooped0" rate 48000}} pcm.ARDOP2OUT {type rate slave {pcm "plug:dmix0" rate 48000}} # Wine: combine the capture and playback pcm.asymwine { type asym playback.pcm "ARDOP2OUT" capture.pcm "ARDOP2IN" } # Wine: make a default plug for it pcm.!default { type plug slave.pcm "asymwine" } # Wine: define a plug for /dev/dsp pcm.dsp { type plug slave.pcm "asymwine" } 73 de pe1rrr / red |
Re: @G8BPQ -- UZ7HO soundmodem for linux
开云体育Lee, I'im 100% operational. all ports are working. Thank you!!!!
Brett On 6/12/2022 12:39 PM, Lee Bengston
wrote:
|
Re: @G8BPQ -- UZ7HO soundmodem for linux
OK, that's the issue. Given you are using a Signalink, it handles the PTT using its own VOX circuit, so QTSM doesn't need a PTT setting.? If it is set to use USB0 then it is interfering with what I assume is a usb to serial adapter that is used to connect to the KAM.? So set PTT to "None" in QTSM, and you should be good. Lee K5DAT On Sun, Jun 12, 2022 at 1:18 PM Brett Williams <KB5YZB@...> wrote:
|
Re: @G8BPQ -- UZ7HO soundmodem for linux
开云体育Thanks Lee, I think its a USB conflict not a port in BPQ. I did test the RFI theory; as I stsrted the pi adn BPQ and after the QTSM without a transmit, it still block the BPQ from communicating with the KAM I think there is conflict with USB0; as the QTSM now uses USB0 and continues to work......communicate.? Can I change the one of the configs to USB1 to remove the conflicts or does it have to be assigned by the OS? Brett
On 6/12/2022 10:11 AM, Lee Bengston
wrote:
|
Re: Is this expected behavior on linbpq Version 6.0.22.70?
On Fri, Jun 10, 2022 at 12:17 AM, John G8BPQ wrote:
There was a bug which meant that connecting to the application defined by the 4th parameter didn't work with QtTermTCP or the Web Terminal. This was fixed in an early 6.0.22 beta. “ It’s not a bug, its a feature! “ :-D |
Re: @G8BPQ -- UZ7HO soundmodem for linux
Brett, If you are starting QtSoundModem remotely from Windows via PuTTY you will need to use the nogui option e.g. "piQtSoundModem nogui" or "QtSoundModem nogui".? It wasn't clear if you got things working by successfully compiling the source code or by switching to the binary, so I'm not sure how your executable is named. Given you have made multiple attempts, be sure you don't have more than one instance of QtSoundModem running. Generally I have pretty good luck running "top" to see what processes are running and issuing "sudo pkill <process name>" e.g. "sudo pkill QtSoundModem" in order to kill things and start over. If it's a BPQ port conflict, one tip is to remove all port numbering in each port if it exists.? BPQ will automatically number the ports in the order they appear in the configuration, and there won't be any conflicts.
"...until the qt soundmodem executes? a
command to transmit, after that BPQ will not respond for the ports
for the KAMplus"
The fact that it happens after a transmit could be an indication of an RFI problem.? The Direwolf forum seems to have quite a few reports of RFI issues when Raspberry Pi's are in the mix. 73, Lee K5DAT On Sun, Jun 12, 2022 at 10:04 AM Brett Williams <KB5YZB@...> wrote:
|
Re: @G8BPQ -- UZ7HO soundmodem for linux
开云体育The very radio I have too. I do love the radio. Was you very sensitive to noise? I have a TS2000 tight next to it, which is the reason I trying to get the qtsound modem to work, and it very quite....... Looked-up your QRZ; my best friend from Army Signal Officer Basic
Course '90 was a graduate from MTSU. Love the campus....Small
world... Brett KB5YZB
On 6/12/2022 9:50 AM, Perry Ogletree
wrote:
|
Re: @G8BPQ -- UZ7HO soundmodem for linux
开云体育Thanks Perry. Its working now with John's instructions using alsamixer. You're right, I just had to tweak the audio to key the SL-Radio. However now I have a port conflict? with KAM and Signal Link... I will get there; I may not have hair left.; but thats the fun, pulling you hair out.....:)
Brett On 6/12/2022 9:43 AM, Perry Ogletree
wrote:
|
Re: @G8BPQ -- UZ7HO soundmodem for linux
Perry Ogletree
开云体育I had a KAM XL on a TS-480HX many moons back and think I had the audio at 1 or 2 in the menu.
It's been too long to remember exactly though.
Perry K4PWO?
Sent from my T-Mobile 4G LTE Device Get From: [email protected] <[email protected]> on behalf of Brett Williams <KB5YZB@...>
Sent: Sunday, June 12, 2022 11:40:02 AM To: [email protected] <[email protected]> Subject: Re: [bpq32] @G8BPQ -- UZ7HO soundmodem for linux ?
Thanks, the radio is a Kenwood ts480, so you are right the audio levels can be off as the menu allows a rang from 1-8. I think the norm is "3" .
Brett KB5YZB On 6/12/2022 9:19 AM, Perry Ogletree wrote:
|
Re: @G8BPQ -- UZ7HO soundmodem for linux
Perry Ogletree
开云体育The Signalink USB uses internal VOX keying. Your audio level of the Signalink's internal sound device must be set high enough to trigger the VOX. If you have CAT control of the radio, you'd be better off using CAT PTT to key the radio.
Perry K4PWO?
Sent from my T-Mobile 4G LTE Device Get From: [email protected] <[email protected]> on behalf of Brett Williams <KB5YZB@...>
Sent: Sunday, June 12, 2022 12:06:09 AM To: [email protected] <[email protected]> Subject: Re: [bpq32] @G8BPQ -- UZ7HO soundmodem for linux ?
Thanks Lee and John. I have the Program working well and receiving packet. The only issue im having now is transmit. QtSoundModem is receiving the command from QtTerm TCP, however the signallink is not keying. Is there an extra driver for the signal link? On 6/10/2022 12:09 PM, Lee Bengston wrote:
|