portapack-mayhem / mayhem-firmware

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

About the new function: amateur radio #797

Open wzsySRC opened 1 year ago

wzsySRC commented 1 year ago

Hello, I am a loyal user of Mayhem firmware and an amateur radio enthusiast. In my country, the use of radio equipment requires detection and registration. I want to use Hackrf as an amateur radio for inspection and registration, and use it legally and legally. My country requires that the initial frequencies be 144MHz-148MHz and 430.00MHz-440.00MHz. I see that there is a Microphone Transceiver function in Mayhem firmware. Is it possible to add frequency restrictions on the basis of this function to generate a new function for radio lovers to check and register - amateur radio. I look forward to your reply.

eried commented 1 year ago

yeah it is good idea.

You could thinker around how it will work (some non intrusive way to limit) and play with the code. The best way to get it implemented would be to start by yourself: add new checkbox in options with a country selector and limit the microphone app based on that

zackattack710 commented 1 year ago

Hello, my experience with amateur radio is limited. I will look into your question further and see if someone else has done this with the microphone transceiver function. I apologize for not being able to help more and look forward to receiving my portapack so that I can learn more. I think its cool you reached out to me from across the world.

On Tue, Jan 31, 2023 at 2:12 AM 無中声有SRC @.***> wrote:

Hello, I am a loyal user of Mayhem firmware and an amateur radio enthusiast. In my country, the use of radio equipment requires detection and registration. I want to use Hackrf as an amateur radio for inspection and registration, and use it legally and legally. My country requires that the initial frequencies be 144MHz-148MHz and 430.00MHz-440.00MHz. I see that there is a Microphone Transceiver function in Mayhem firmware. Is it possible to add frequency restrictions on the basis of this function to generate a new function for radio lovers to check and register - amateur radio. I look forward to your reply.

— Reply to this email directly, view it on GitHub https://github.com/eried/portapack-mayhem/issues/797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPHGDRR4MKMY3TEI5WS7STWVDCPPANCNFSM6AAAAAAUMDQZAU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TechJeeper commented 1 year ago

As a Ham I really like this idea.

wzsySRC commented 1 year ago

yeah it is good idea.

You could thinker around how it will work (some non intrusive way to limit) and play with the code. The best way to get it implemented would be to start by yourself: add new checkbox in options with a country selector and limit the microphone app based on that

I'm not very good at writing code, but I'm willing to try it. However, I hope the author can provide this new function in the new version, because it is a very important thing for amateur radio lovers in our country.

gullradriel commented 1 year ago

Well. It would be simpler to limit all the apps to some specific ranges than only one, because one can do this in radio model for all the apps. The code itself can be pretty quick to generate, but doing a GUI for it is a pain. I propose a different approach, based on a config file, in which you specify white lists, something like 'radio_frequency_whitelist.cfg' at root of sdcard. We could even have both a whitelist and a blacklist, but I think a whitelist would suffice. If the file exists, it's read at each retune. if a retune is outside the white list, it's cancelled (you stay on previous freq) syntax would be as simple as 'a=startfreq,b=endfreq'. If we limit the number of ranges, we can eventually keep them in memory and prevent a file open /read/close at each retune. That's how I would tackle it, since it's not something you change.

gullradriel commented 4 months ago

I'm not planning on adding it. If anyone is up to it, may he/she/it sends us a PR.

qwqoffice commented 4 months ago

hackrf one应该是没有型号核准码的

gullradriel commented 4 months ago

@qwqoffice there is no code for a 'brand' or 'type' Here we are talking about providing a support for frequency limitations, but it would be up to the user to set them. And please comment in English, as our Chinese is rusty and Google is giving bad translations.