portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2
GNU General Public License v3.0
3.22k stars 530 forks source link

Use frequency from .ini file in Audio, Microphone, and Capture apps #1954

Closed NotherNgineer closed 5 months ago

NotherNgineer commented 6 months ago

Description of the feature you're suggesting.

Currently the Audio, Microphone, and Capture apps all use a "Global Target Frequency" stored in pmem, and ignore the frequencies saved in their respective .ini file. This is because these apps may be launched from another app such as Looking Glass, Scanner, or Recon, and it's desirable to stay on the original app's frequency in this case. But it's a little annoying sometimes that the frequencies in the .ini file are ignored.

For example, if I run the Microphone app, then run the ADSB-RX app, and then run the Microphone app again, in this case the Microphone app's RX & TX frequencies are set to 1090 MHz (the frequency used in the ADSB-RX app), instead of the frequencies that were being used in the Microphone app earlier.

To fix this, I propose to only use the "Global Target Frequency" when these apps (Audio, Microphone, and Capture) are launched from another app (from Looking Glass, Scanner, or Recon). Otherwise, I propose that these apps should use the frequencies saved in their respective .ini files.

(@Brumi-2021 FYI)

Anything else?

No response

Brumi-2021 commented 6 months ago

Hi @NotherNgineer , I fully agree with your proposal but as as computerfreek was indicating in discord, as a first step , for his ham repeater usage, he would like to keep saved / restored both independent frequencies . (tx freq, rx_freq) ,

(And as second step he would like also to have saved in some file, a collection of different (tx_freq, rx_freq) , linked to different repeaters that are available in range of his area) . I hope it is clear, otherwise , let's chat together privately.

I think at the moment , doing first step , it will be a big ham user friendly improvement .